`WARNING: CPU: 11 PID: 1055 at drivers/gpu/drm/i915/display/intel_bios.c:2689 intel_bios_init+0x14a2/0x1d20 [i915]` (maybe due to `exc_invalid_op()`)
On a Supermicro Super Server/X13SAE running Linux 6.1.52 booting Linux 6.9-rc5+ (i915 unrelated patches on top of Linux commit c942a0cd3603e)
$ git log --oneline --no-decorate -10 86ff9a9ae0e8
86ff9a9ae0e88 i2c: smbus: Add (LP)DDR5 types to `i2c_register_spd()`
e9df988ae3558 drm/amdkfd: demote unsupported device messages to dev_info
[…]
c942a0cd3603e Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
with kexec, i915 shows the WARNING
below:
[ 0.000000] Linux version 6.9.0-rc5.mx64.461-00167-g86ff9a9ae0e8 (pmenzel@holidayincambodia.molgen.mpg.de) (gcc (GCC) 12.3.0, GNU ld (GNU Binutils) 2.41) #20 SMP PREEMPT_DYNAMIC Fri Apr 26 12:49:10 CEST 2024
[…]
[ 20.665302] i915 0000:00:02.0: [drm] VT-d active for gfx access
[ 20.671225] i915 0000:00:02.0: vgaarb: deactivate vga console
[ 20.676998] i915 0000:00:02.0: [drm] Using Transparent Hugepages
[ 20.683263] ------------[ cut here ]------------
[ 20.687883] i915 0000:00:02.0: Port A asks to use VBT vswing/preemph tables
[ 20.694847] WARNING: CPU: 11 PID: 1055 at drivers/gpu/drm/i915/display/intel_bios.c:2689 intel_bios_init+0x14a2/0x1d20 [i915]
[ 20.706237] Modules linked in: i915(+) xt_iprange xt_set iptable_filter iptable_mangle xt_tcpudp xt_NFLOG xt_nat xt_conntrack iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 iptable_raw ip_set_hash_ip af_packet nfnetlink_log ip_set nfnetlink 8021q garp stp mrp llc x86_pkg_temp_thermal coretemp snd_hda_intel snd_intel_dspcfg iosf_mbi snd_hda_codec i2c_algo_bit snd_hda_core drm_buddy kvm_intel snd_pcm drm_display_helper ttm efi_pstore snd_timer kvm nfsd i40e auth_rpcgss e1000e intel_gtt snd pstore wmi_bmof crc32c_intel iTCO_wdt video oid_registry nfs_acl lockd iTCO_vendor_support soundcore grace wmi sunrpc efivarfs ip_tables x_tables ipv6 autofs4
[ 20.764366] CPU: 11 PID: 1055 Comm: modprobe Not tainted 6.9.0-rc5.mx64.461-00167-g86ff9a9ae0e8 #20
[ 20.773402] Hardware name: Supermicro Super Server/X13SAE, BIOS 2.0 10/17/2022
[ 20.780609] RIP: 0010:intel_bios_init+0x14a2/0x1d20 [i915]
[ 20.786181] Code: 48 8b 7d 08 48 8b 5f 50 48 85 db 75 03 48 8b 1f e8 a3 3e f9 e0 44 89 e1 48 89 da 48 c7 c7 68 34 a6 a0 48 89 c6 e8 ce fc 82 e0 <0f> 0b e9 a3 fd ff ff 89 d1 c1 e1 1f 85 d1 0f 88 a0 fe ff ff 4c 89
[ 20.804900] RSP: 0018:ffffc90003a6ba48 EFLAGS: 00010286
[ 20.810119] RAX: 0000000000000000 RBX: ffff888101d92d40 RCX: 0000000000000000
[ 20.817240] RDX: ffff889ffbce9dc0 RSI: ffff889ffbcdc940 RDI: ffff889ffbcdc940
[ 20.824363] RBP: ffff88812fc40000 R08: 0000000000013ffb R09: 00000000ffffbfff
[ 20.831489] R10: 00000000ffffbfff R11: ffffffff82661340 R12: 0000000000000041
[ 20.838609] R13: 0000000000000000 R14: ffff888110b08d20 R15: 0000000000000000
[ 20.845733] FS: 00007fa9ff044740(0000) GS:ffff889ffbcc0000(0000) knlGS:0000000000000000
[ 20.853807] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 20.859546] CR2: 00007f81a5086418 CR3: 00000001062dc000 CR4: 0000000000f50ef0
[ 20.866666] PKRU: 55555554
[ 20.869375] Call Trace:
[ 20.871826] <TASK>
[ 20.873929] ? __warn+0x80/0x130
[ 20.877165] ? intel_bios_init+0x14a2/0x1d20 [i915]
[ 20.882122] ? report_bug+0x164/0x190
[ 20.885785] ? handle_bug+0x3c/0x70
[ 20.889273] ? exc_invalid_op+0x17/0x70
[ 20.893104] ? asm_exc_invalid_op+0x1a/0x20
[ 20.897288] ? intel_bios_init+0x14a2/0x1d20 [i915]
[ 20.902246] ? intel_bios_init+0x14a2/0x1d20 [i915]
[ 20.907203] ? drm_vblank_worker_init+0x6b/0x80
[ 20.911729] intel_display_driver_probe_noirq+0x39/0x230 [i915]
[ 20.917733] i915_driver_probe+0x625/0xba0 [i915]
[ 20.922514] local_pci_probe+0x3f/0x90
[ 20.926267] pci_device_probe+0xc4/0x230
[ 20.930187] ? sysfs_do_create_link_sd+0x6e/0xe0
[ 20.934802] really_probe+0xc9/0x3b0
[ 20.938376] ? __pfx___driver_attach+0x10/0x10
[ 20.942816] __driver_probe_device+0x80/0x150
[ 20.947170] driver_probe_device+0x1f/0x90
[ 20.951263] __driver_attach+0xf8/0x1c0
[ 20.955096] bus_for_each_dev+0x85/0xd0
[ 20.958930] bus_add_driver+0xf9/0x220
[ 20.962677] driver_register+0x59/0x100
[ 20.966511] i915_init+0x22/0xc0 [i915]
[ 20.970412] ? __pfx_i915_init+0x10/0x10 [i915]
[ 20.975008] do_one_initcall+0x61/0x240
[ 20.978841] do_init_module+0x60/0x230
[ 20.982589] init_module_from_file+0x86/0xc0
[ 20.986854] idempotent_init_module+0x120/0x2b0
[ 20.991383] __x64_sys_finit_module+0x65/0xc0
[ 20.995736] do_syscall_64+0x56/0x110
[ 20.999397] entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 21.004444] RIP: 0033:0x7fa9ff143d09
[ 21.008017] Code: 08 44 89 e0 5b 41 5c c3 66 0f 1f 84 00 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d c7 20 0d 00 f7 d8 64 89 01 48
[ 21.019785] pci 0000:00:1f.3: deferred probe pending: snd_hda_intel: couldn't bind with audio component
[ 21.026736] RSP: 002b:00007fff6f7c61c8 EFLAGS: 00000202 ORIG_RAX: 0000000000000139
[ 21.043664] RAX: ffffffffffffffda RBX: 0000000000622db0 RCX: 00007fa9ff143d09
[ 21.050783] RDX: 0000000000000000 RSI: 0000000000418984 RDI: 0000000000000003
[ 21.057907] RBP: 0000000000418984 R08: 0000000000000000 R09: 0000000000000000
[ 21.065031] R10: 0000000000000003 R11: 0000000000000202 R12: 0000000000000000
[ 21.072152] R13: 0000000000622ec0 R14: 0000000000040000 R15: 0000000000040000
[ 21.079275] </TASK>
[ 21.081466] ---[ end trace 0000000000000000 ]---
[ 21.086619] i915 0000:00:02.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=io+mem:owns=io+mem
[ 21.098593] i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/adls_dmc_ver2_01.bin (v2.1)
[ 21.261032] i915 0000:00:02.0: [drm] GT0: GuC firmware i915/tgl_guc_70.bin (70.12.1) is recommended, but only i915/tgl_guc_70.bin (70.5.1) was found
[ 21.274323] i915 0000:00:02.0: [drm] GT0: Consider updating your linux-firmware pkg or downloading from https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/i915
[ 21.296875] i915 0000:00:02.0: [drm] GT0: GuC firmware i915/tgl_guc_70.bin version 70.5.1
[ 21.305054] i915 0000:00:02.0: [drm] GT0: HuC firmware i915/tgl_huc.bin version 7.9.3
[ 21.315299] i915 0000:00:02.0: [drm] GT0: HuC: authenticated for all workloads
[ 21.323369] i915 0000:00:02.0: [drm] GT0: GUC: submission enabled
[ 21.329456] i915 0000:00:02.0: [drm] GT0: GUC: SLPC enabled
[ 21.335586] i915 0000:00:02.0: [drm] GT0: GUC: RC enabled
[ 21.343784] [drm] Initialized i915 1.6.0 20230929 for 0000:00:02.0 on minor 0
[ 21.351368] ACPI: video: Video Device [GFX0] (multi-head: yes rom: no post: no)
[ 21.359058] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input3
[ 21.397513] i915 0000:00:02.0: [drm] Cannot find any crtc or sizes
[ 21.397525] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[ 21.418538] i915 0000:00:02.0: [drm] Cannot find any crtc or sizes
$ ./scripts/decodecode < code.txt
[ 21.008017] Code: 08 44 89 e0 5b 41 5c c3 66 0f 1f 84 00 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d c7 20 0d 00 f7 d8 64 89 01 48
All code
========
0: 08 44 89 e0 or %al,-0x20(%rcx,%rcx,4)
4: 5b pop %rbx
5: 41 5c pop %r12
7: c3 ret
8: 66 0f 1f 84 00 00 00 nopw 0x0(%rax,%rax,1)
f: 00 00
11: 48 89 f8 mov %rdi,%rax
14: 48 89 f7 mov %rsi,%rdi
17: 48 89 d6 mov %rdx,%rsi
1a: 48 89 ca mov %rcx,%rdx
1d: 4d 89 c2 mov %r8,%r10
20: 4d 89 c8 mov %r9,%r8
23: 4c 8b 4c 24 08 mov 0x8(%rsp),%r9
28: 0f 05 syscall
2a:* 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax <-- trapping instruction
30: 73 01 jae 0x33
32: c3 ret
33: 48 8b 0d c7 20 0d 00 mov 0xd20c7(%rip),%rcx # 0xd2101
3a: f7 d8 neg %eax
3c: 64 89 01 mov %eax,%fs:(%rcx)
3f: 48 rex.W
Code starting with the faulting instruction
===========================================
0: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax
6: 73 01 jae 0x9
8: c3 ret
9: 48 8b 0d c7 20 0d 00 mov 0xd20c7(%rip),%rcx # 0xd20d7
10: f7 d8 neg %eax
12: 64 89 01 mov %eax,%fs:(%rcx)
15: 48 rex.W