So, in the end I spent some times to do more dmesg logs, just producing 6 of them took me multiple hours because of how slow such kind of computer BIOS is to boot, and also because of how complicated it can be to get a shell when everything goes wrong with those bugs. Something I forgot to mention is that when I get the graphic bug when the system tries to switch from low resolution to high resolution, the system hang, and I can unstuck it by doing SysRq+K. After that the boot continues while the display remains broken, and X11 never starts. When I reboot, it stops the reboot sequence after displaying “Reached target System Reboot”, but never reboots by itself, I then have to do SysRq+B to actually reboot. I totally purged rocm, amdgpu-pro and oneapi stuff to do those tests. It happens that radeon driver works with Linux 5.19.0-42-generic if I use it with both GCN1 R7 240 Oland and GCN2 R9 390X Grenada. As soon as amdgpu is used, the display breaks. amdgpu is required for Vulkan and OpenCL with Orca. It looks like what hangs many things is running amdgpu on GCN1, while amdgpu on GCN1 may only break the display given the version but don't stuck other things. So, here are the 6 logs: ## dmesg.linux-5.19.0-42-generic.gcn1-amdgpu-gcn2-amdgpu-extra.txt status: ❌️ broken display ❌️ boot and reboot stuck ❌️ null pointer error in dmesg Linux: 5.19.0-42-generic AMD R7 240 Oland: amdgpu driver AMD R9 R90X Grenada: amdgpu driver cmdline: amdgpu.si_support=1 radeon.si_support=0 amdgpu.cik_support=1 radeon.cik_support=0 amdgpu.exp_hw_support=1 amdgpu.gpu_recovery=1 amdgpu.ppfeaturemask=0xffffffff extra: some extra amdgpu kernel option used symptoms: - no display - stuck boot requiring SysRq+K to continue - errors in dmesg - reboot requiring SysRq+B to continue/ dmesg quote: ``` [ 5.844957] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 5.845594] #PF: supervisor read access in kernel mode [ 5.846002] #PF: error_code(0x0000) - not-present page [ 5.846362] PGD 0 P4D 0 [ 5.846697] Oops: 0000 [#1] PREEMPT SMP NOPTI [ 5.847039] CPU: 3 PID: 365 Comm: systemd-udevd Tainted: G OE 5.19.0-42-generic #43-Ubuntu [ 5.847381] Hardware name: Default string Default string/Default string, BIOS WRX80PRO-F1 08/04/2022 [ 5.847723] RIP: 0010:smu7_enable_dpm_tasks+0xbdf/0x3280 [amdgpu] [ 5.848289] Code: 48 8b 83 a0 01 00 00 c6 80 c8 08 00 00 01 4c 8b ab a0 01 00 00 48 8b 83 f8 00 00 00 4c 8b b3 c0 01 00 00 45 8b a5 bc 02 00 00 <4c> 8b 38 41 83 fc 01 0f 84 2e 0b 00 00 41 8b 85 58 02 00 00 83 e8 [ 5.849015] RSP: 0018:ffffac30ca967888 EFLAGS: 00010246 [ 5.849378] RAX: 0000000000000000 RBX: ffff9caec3fe6400 RCX: 0000000000000000 [ 5.849738] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 5.850092] RBP: ffffac30ca967910 R08: 0000000000000000 R09: 0000000000000000 [ 5.850442] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000002 [ 5.850787] R13: ffff9caec71a8000 R14: ffff9caedc32b240 R15: 0000000000000005 [ 5.851135] FS: 00007f45497e88c0(0000) GS:ffff9cecdd2c0000(0000) knlGS:0000000000000000 [ 5.851487] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 5.851839] CR2: 0000000000000000 CR3: 000000013b2f0000 CR4: 0000000000350ee0 [ 5.852202] Call Trace: [ 5.852554] [ 5.852902] ? cik_smc_rreg+0x56/0x70 [amdgpu] [ 5.853421] phm_enable_dynamic_state_management+0x54/0xc0 [amdgpu] [ 5.853973] hwmgr_hw_init+0x179/0x1b0 [amdgpu] [ 5.854520] pp_hw_init+0x16/0x30 [amdgpu] [ 5.855079] amdgpu_device_init.cold+0x1e4e/0x202f [amdgpu] [ 5.855649] amdgpu_driver_load_kms+0x1a/0x160 [amdgpu] [ 5.856157] amdgpu_pci_probe+0x179/0x3a0 [amdgpu] [ 5.856662] local_pci_probe+0x47/0x90 [ 5.857013] pci_call_probe+0x55/0x190 [ 5.857363] pci_device_probe+0x84/0x120 [ 5.857710] really_probe+0x1df/0x3b0 [ 5.858056] __driver_probe_device+0x12c/0x1b0 [ 5.858397] driver_probe_device+0x24/0xd0 [ 5.858733] __driver_attach+0x10b/0x210 [ 5.859063] ? __device_attach_driver+0x170/0x170 [ 5.859382] bus_for_each_dev+0x90/0xe0 [ 5.859692] driver_attach+0x1e/0x30 [ 5.860000] bus_add_driver+0x187/0x230 [ 5.860309] driver_register+0x8f/0x100 [ 5.860620] __pci_register_driver+0x62/0x70 [ 5.860932] amdgpu_init+0x95/0x1000 [amdgpu] [ 5.861413] ? 0xffffffffc0776000 [ 5.861729] do_one_initcall+0x5e/0x240 [ 5.862049] do_init_module+0x50/0x210 [ 5.862368] load_module+0xb7d/0xcd0 [ 5.862689] __do_sys_finit_module+0xc4/0x140 [ 5.863009] ? __do_sys_finit_module+0xc4/0x140 [ 5.863327] __x64_sys_finit_module+0x18/0x30 [ 5.863644] do_syscall_64+0x5b/0x90 [ 5.863958] ? do_syscall_64+0x67/0x90 [ 5.864267] ? do_syscall_64+0x67/0x90 [ 5.864569] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 5.864870] RIP: 0033:0x7f4549ec9c4d [ 5.865171] Code: 5d c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 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 83 f1 0d 00 f7 d8 64 89 01 48 [ 5.865801] RSP: 002b:00007fffebc3fce8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 5.866125] RAX: ffffffffffffffda RBX: 000055e7f63b20f0 RCX: 00007f4549ec9c4d [ 5.866451] RDX: 0000000000000000 RSI: 000055e7f63b3b90 RDI: 000000000000001a [ 5.866776] RBP: 000055e7f63b3b90 R08: 0000000000000000 R09: 00007f4549fa9c60 [ 5.867108] R10: 000000000000001a R11: 0000000000000246 R12: 0000000000020000 [ 5.867433] R13: 000055e7f63b1390 R14: 0000000000000000 R15: 000055e7f63b76c0 [ 5.867758] [ 5.868082] Modules linked in: hid_generic(+) ib_uverbs ib_core uas usbhid usb_storage hid amdgpu(OE+) bcache amddrm_ttm_helper(OE) amdttm(OE) iommu_v2 amddrm_buddy(OE) amd_sched(OE) amdkcl(OE) radeon drm_display_helper ast drm_vram_helper cec drm_ttm_helper ttm rc_core drm_kms_helper syscopyarea sysfillrect crct10dif_pclmul sysimgblt crc32_pclmul ghash_clmulni_intel ixgbe fb_sys_fops aesni_intel crypto_simd cryptd igb xfrm_algo nvme ahci dca drm mdio libahci i2c_algo_bit nvme_core xhci_pci i2c_piix4 xhci_pci_renesas wmi [ 5.869502] CR2: 0000000000000000 [ 5.869857] ---[ end trace 0000000000000000 ]--- [ 6.090396] RIP: 0010:smu7_enable_dpm_tasks+0xbdf/0x3280 [amdgpu] [ 6.090965] Code: 48 8b 83 a0 01 00 00 c6 80 c8 08 00 00 01 4c 8b ab a0 01 00 00 48 8b 83 f8 00 00 00 4c 8b b3 c0 01 00 00 45 8b a5 bc 02 00 00 <4c> 8b 38 41 83 fc 01 0f 84 2e 0b 00 00 41 8b 85 58 02 00 00 83 e8 [ 6.091687] RSP: 0018:ffffac30ca967888 EFLAGS: 00010246 [ 6.092033] RAX: 0000000000000000 RBX: ffff9caec3fe6400 RCX: 0000000000000000 [ 6.092381] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 6.092730] RBP: ffffac30ca967910 R08: 0000000000000000 R09: 0000000000000000 [ 6.093077] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000002 [ 6.093448] R13: ffff9caec71a8000 R14: ffff9caedc32b240 R15: 0000000000000005 [ 6.093796] FS: 00007f45497e88c0(0000) GS:ffff9cecdd2c0000(0000) knlGS:0000000000000000 [ 6.094149] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 6.094506] CR2: 0000000000000000 CR3: 000000013b2f0000 CR4: 0000000000350ee0 ``` ## dmesg.linux-5.19.0-42-generic.gcn1-amdgpu-gcn2-amdgpu.txt status: ❌️ broken display ❌️ boot and reboot stuck ❌️ null pointer error in dmesg Linux: 5.19.0-42-generic AMD R7 240 Oland: amdgpu driver AMD R9 R90X Grenada: amdgpu driver cmdline: amdgpu.si_support=1 radeon.si_support=0 amdgpu.cik_support=1 radeon.cik_support=0 dmesg quote: ``` [ 5.837096] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 5.837807] #PF: supervisor read access in kernel mode [ 5.838230] #PF: error_code(0x0000) - not-present page [ 5.838608] PGD 0 P4D 0 [ 5.838966] Oops: 0000 [#1] PREEMPT SMP NOPTI [ 5.839318] CPU: 2 PID: 396 Comm: systemd-udevd Tainted: G OE 5.19.0-42-generic #43-Ubuntu [ 5.839673] Hardware name: Default string Default string/Default string, BIOS WRX80PRO-F1 08/04/2022 [ 5.840025] RIP: 0010:smu7_enable_dpm_tasks+0xbdf/0x3280 [amdgpu] [ 5.840598] Code: 48 8b 83 a0 01 00 00 c6 80 c8 08 00 00 01 4c 8b ab a0 01 00 00 48 8b 83 f8 00 00 00 4c 8b b3 c0 01 00 00 45 8b a5 bc 02 00 00 <4c> 8b 38 41 83 fc 01 0f 84 2e 0b 00 00 41 8b 85 58 02 00 00 83 e8 [ 5.841324] RSP: 0018:ffffb3fc883cf878 EFLAGS: 00010246 [ 5.841676] RAX: 0000000000000000 RBX: ffff9e18d4b85800 RCX: 0000000000000000 [ 5.842040] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 5.842395] RBP: ffffb3fc883cf900 R08: 0000000000000000 R09: 0000000000000000 [ 5.842750] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000002 [ 5.843106] R13: ffff9e18810fc000 R14: ffff9e18d8eab9c0 R15: 0000000000000005 [ 5.843459] FS: 00007f0b144f28c0(0000) GS:ffff9e56dd280000(0000) knlGS:0000000000000000 [ 5.843814] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 5.844163] CR2: 0000000000000000 CR3: 00000001420b8000 CR4: 0000000000350ee0 [ 5.844515] Call Trace: [ 5.844863] [ 5.845212] ? cik_smc_rreg+0x56/0x70 [amdgpu] [ 5.845737] phm_enable_dynamic_state_management+0x54/0xc0 [amdgpu] [ 5.846301] hwmgr_hw_init+0x179/0x1b0 [amdgpu] [ 5.846858] pp_hw_init+0x16/0x30 [amdgpu] [ 5.847420] amdgpu_device_init.cold+0x1e4e/0x202f [amdgpu] [ 5.847997] amdgpu_driver_load_kms+0x1a/0x160 [amdgpu] [ 5.848519] amdgpu_pci_probe+0x179/0x3a0 [amdgpu] [ 5.849034] local_pci_probe+0x47/0x90 [ 5.849387] pci_call_probe+0x55/0x190 [ 5.849736] pci_device_probe+0x84/0x120 [ 5.850086] really_probe+0x1df/0x3b0 [ 5.850426] __driver_probe_device+0x12c/0x1b0 [ 5.850766] driver_probe_device+0x24/0xd0 [ 5.851108] __driver_attach+0x10b/0x210 [ 5.851449] ? __device_attach_driver+0x170/0x170 [ 5.851790] bus_for_each_dev+0x90/0xe0 [ 5.852139] driver_attach+0x1e/0x30 [ 5.852481] bus_add_driver+0x187/0x230 [ 5.852826] driver_register+0x8f/0x100 [ 5.853172] __pci_register_driver+0x62/0x70 [ 5.853523] amdgpu_init+0x95/0x1000 [amdgpu] [ 5.854026] ? 0xffffffffc0667000 [ 5.854374] do_one_initcall+0x5e/0x240 [ 5.854720] do_init_module+0x50/0x210 [ 5.855059] load_module+0xb7d/0xcd0 [ 5.855399] __do_sys_finit_module+0xc4/0x140 [ 5.855738] ? __do_sys_finit_module+0xc4/0x140 [ 5.856081] __x64_sys_finit_module+0x18/0x30 [ 5.856418] do_syscall_64+0x5b/0x90 [ 5.856751] ? do_syscall_64+0x67/0x90 [ 5.857077] ? do_syscall_64+0x67/0x90 [ 5.857401] ? do_syscall_64+0x67/0x90 [ 5.857715] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 5.858029] RIP: 0033:0x7f0b14bd3c4d [ 5.858340] Code: 5d c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 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 83 f1 0d 00 f7 d8 64 89 01 48 [ 5.858999] RSP: 002b:00007ffc09bf51c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 5.859337] RAX: ffffffffffffffda RBX: 000055bf8f0e0d40 RCX: 00007f0b14bd3c4d [ 5.859677] RDX: 0000000000000000 RSI: 000055bf8f0ee3a0 RDI: 000000000000001a [ 5.860018] RBP: 000055bf8f0ee3a0 R08: 0000000000000000 R09: 00007f0b14cb3c60 [ 5.860359] R10: 000000000000001a R11: 0000000000000246 R12: 0000000000020000 [ 5.860700] R13: 000055bf8f0e51c0 R14: 0000000000000000 R15: 000055bf8f0dfa10 [ 5.861031] [ 5.861345] Modules linked in: hid_generic(+) ib_uverbs ib_core uas usbhid usb_storage hid amdgpu(OE+) bcache amddrm_ttm_helper(OE) amdttm(OE) iommu_v2 amddrm_buddy(OE) amd_sched(OE) amdkcl(OE) radeon drm_display_helper ast drm_vram_helper cec drm_ttm_helper rc_core ttm crct10dif_pclmul crc32_pclmul ghash_clmulni_intel drm_kms_helper syscopyarea sysfillrect aesni_intel sysimgblt fb_sys_fops crypto_simd ixgbe cryptd igb xfrm_algo ahci nvme drm dca libahci mdio i2c_algo_bit xhci_pci nvme_core i2c_piix4 xhci_pci_renesas wmi [ 5.862742] CR2: 0000000000000000 [ 5.863088] ---[ end trace 0000000000000000 ]--- [ 6.088540] RIP: 0010:smu7_enable_dpm_tasks+0xbdf/0x3280 [amdgpu] [ 6.089515] Code: 48 8b 83 a0 01 00 00 c6 80 c8 08 00 00 01 4c 8b ab a0 01 00 00 48 8b 83 f8 00 00 00 4c 8b b3 c0 01 00 00 45 8b a5 bc 02 00 00 <4c> 8b 38 41 83 fc 01 0f 84 2e 0b 00 00 41 8b 85 58 02 00 00 83 e8 [ 6.090380] RSP: 0018:ffffb3fc883cf878 EFLAGS: 00010246 [ 6.090777] RAX: 0000000000000000 RBX: ffff9e18d4b85800 RCX: 0000000000000000 [ 6.091171] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 6.091561] RBP: ffffb3fc883cf900 R08: 0000000000000000 R09: 0000000000000000 [ 6.091949] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000002 [ 6.092323] R13: ffff9e18810fc000 R14: ffff9e18d8eab9c0 R15: 0000000000000005 [ 6.092702] FS: 00007f0b144f28c0(0000) GS:ffff9e56dd280000(0000) knlGS:0000000000000000 [ 6.093074] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 6.093447] CR2: 0000000000000000 CR3: 00000001420b8000 CR4: 0000000000350ee0 ``` ## dmesg.linux-5.19.0-42-generic.gcn1-radeon-gcn2-radeon.txt status: ✅️ working display ✅️ no error in dmesg Linux: 5.19.0-42-generic AMD R7 240 Oland: radeon driver AMD R9 R90X Grenada: radeon driver cmdline: amdgpu.si_support=0 radeon.si_support=1 amdgpu.cik_support=0 radeon.cik_support=1 ## dmesg.linux-5.19.0-42-generic.gcn1-radeon-gcn2-amdgpu.txt status: ❌️ broken display ❌️ boot and reboot stuck ❌️ null pointer error in dmesg Linux: 5.19.0-42-generic AMD R7 240 Oland: radeon driver AMD R9 R90X Grenada: amdgpu driver cmdline: amdgpu.si_support=0 radeon.si_support=1 amdgpu.cik_support=1 radeon.cik_support=0 dmesg quote: ``` [ 7.613164] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 7.613876] #PF: supervisor read access in kernel mode [ 7.614309] #PF: error_code(0x0000) - not-present page [ 7.614701] PGD 0 P4D 0 [ 7.615072] Oops: 0000 [#1] PREEMPT SMP NOPTI [ 7.615450] CPU: 0 PID: 371 Comm: systemd-udevd Tainted: G OE 5.19.0-42-generic #43-Ubuntu [ 7.615821] Hardware name: Default string Default string/Default string, BIOS WRX80PRO-F1 08/04/2022 [ 7.616193] RIP: 0010:smu7_enable_dpm_tasks+0xbdf/0x3280 [amdgpu] [ 7.616785] Code: 48 8b 83 a0 01 00 00 c6 80 c8 08 00 00 01 4c 8b ab a0 01 00 00 48 8b 83 f8 00 00 00 4c 8b b3 c0 01 00 00 45 8b a5 bc 02 00 00 <4c> 8b 38 41 83 fc 01 0f 84 2e 0b 00 00 41 8b 85 58 02 00 00 83 e8 [ 7.617571] RSP: 0018:ffffb19dca99b858 EFLAGS: 00010246 [ 7.617964] RAX: 0000000000000000 RBX: ffff8af6bac0c800 RCX: 0000000000000000 [ 7.618369] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 7.618764] RBP: ffffb19dca99b8e0 R08: 0000000000000000 R09: 0000000000000000 [ 7.619159] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000002 [ 7.619547] R13: ffff8af68018f000 R14: ffff8af6c2b3ce40 R15: 0000000000000005 [ 7.619934] FS: 00007f308361c8c0(0000) GS:ffff8b34dd200000(0000) knlGS:0000000000000000 [ 7.620323] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 7.620715] CR2: 0000000000000000 CR3: 000000013b2c4000 CR4: 0000000000350ef0 [ 7.621112] Call Trace: [ 7.621509] [ 7.621901] ? cik_smc_rreg+0x56/0x70 [amdgpu] [ 7.622466] phm_enable_dynamic_state_management+0x54/0xc0 [amdgpu] [ 7.623060] hwmgr_hw_init+0x179/0x1b0 [amdgpu] [ 7.623654] pp_hw_init+0x16/0x30 [amdgpu] [ 7.624256] amdgpu_device_init.cold+0x1e4e/0x202f [amdgpu] [ 7.624874] amdgpu_driver_load_kms+0x1a/0x160 [amdgpu] [ 7.625437] amdgpu_pci_probe+0x179/0x3a0 [amdgpu] [ 7.625982] local_pci_probe+0x47/0x90 [ 7.626377] pci_call_probe+0x55/0x190 [ 7.626762] pci_device_probe+0x84/0x120 [ 7.627151] really_probe+0x1df/0x3b0 [ 7.627537] __driver_probe_device+0x12c/0x1b0 [ 7.627921] driver_probe_device+0x24/0xd0 [ 7.628299] __driver_attach+0x10b/0x210 [ 7.628659] ? __device_attach_driver+0x170/0x170 [ 7.629019] bus_for_each_dev+0x90/0xe0 [ 7.629381] driver_attach+0x1e/0x30 [ 7.629744] bus_add_driver+0x187/0x230 [ 7.630106] driver_register+0x8f/0x100 [ 7.630470] __pci_register_driver+0x62/0x70 [ 7.630824] amdgpu_init+0x95/0x1000 [amdgpu] [ 7.631324] ? 0xffffffffc0a72000 [ 7.631666] do_one_initcall+0x5e/0x240 [ 7.632002] do_init_module+0x50/0x210 [ 7.632328] load_module+0xb7d/0xcd0 [ 7.632651] __do_sys_finit_module+0xc4/0x140 [ 7.632970] ? __do_sys_finit_module+0xc4/0x140 [ 7.633290] __x64_sys_finit_module+0x18/0x30 [ 7.633607] do_syscall_64+0x5b/0x90 [ 7.633923] ? syscall_exit_to_user_mode+0x29/0x50 [ 7.634234] ? do_syscall_64+0x67/0x90 [ 7.634541] ? do_syscall_64+0x67/0x90 [ 7.634841] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 7.635142] RIP: 0033:0x7f3083cfdc4d [ 7.635437] Code: 5d c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 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 83 f1 0d 00 f7 d8 64 89 01 48 [ 7.636071] RSP: 002b:00007ffef9320cf8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 7.636398] RAX: ffffffffffffffda RBX: 0000558fb78438d0 RCX: 00007f3083cfdc4d [ 7.636723] RDX: 0000000000000000 RSI: 0000558fb7843e10 RDI: 000000000000001b [ 7.637046] RBP: 0000558fb7843e10 R08: 0000000000000000 R09: 00007f3083dddc60 [ 7.637377] R10: 000000000000001b R11: 0000000000000246 R12: 0000000000020000 [ 7.637700] R13: 0000558fb77e3ff0 R14: 0000000000000000 R15: 0000558fb7849170 [ 7.638040] [ 7.638358] Modules linked in: ib_uverbs ib_core amdgpu(OE+) uas usb_storage amddrm_ttm_helper(OE) amdttm(OE) iommu_v2 amddrm_buddy(OE) amd_sched(OE) amdkcl(OE) hid_generic usbhid hid bcache radeon ast drm_display_helper drm_vram_helper drm_ttm_helper cec ttm rc_core crct10dif_pclmul drm_kms_helper crc32_pclmul ghash_clmulni_intel aesni_intel syscopyarea crypto_simd sysfillrect sysimgblt cryptd ixgbe igb fb_sys_fops xfrm_algo ahci nvme dca drm mdio libahci i2c_algo_bit xhci_pci nvme_core xhci_pci_renesas i2c_piix4 wmi [ 7.639790] CR2: 0000000000000000 [ 7.640144] ---[ end trace 0000000000000000 ]--- [ 7.858317] RIP: 0010:smu7_enable_dpm_tasks+0xbdf/0x3280 [amdgpu] [ 7.858890] Code: 48 8b 83 a0 01 00 00 c6 80 c8 08 00 00 01 4c 8b ab a0 01 00 00 48 8b 83 f8 00 00 00 4c 8b b3 c0 01 00 00 45 8b a5 bc 02 00 00 <4c> 8b 38 41 83 fc 01 0f 84 2e 0b 00 00 41 8b 85 58 02 00 00 83 e8 [ 7.859606] RSP: 0018:ffffb19dca99b858 EFLAGS: 00010246 [ 7.859954] RAX: 0000000000000000 RBX: ffff8af6bac0c800 RCX: 0000000000000000 [ 7.860303] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 7.860655] RBP: ffffb19dca99b8e0 R08: 0000000000000000 R09: 0000000000000000 [ 7.861014] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000002 [ 7.861361] R13: ffff8af68018f000 R14: ffff8af6c2b3ce40 R15: 0000000000000005 [ 7.861708] FS: 00007f308361c8c0(0000) GS:ffff8b34dd200000(0000) knlGS:0000000000000000 [ 7.862057] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 7.862402] CR2: 0000000000000000 CR3: 000000013b2c4000 CR4: 0000000000350ef0 ``` ## dmesg.linux-5.19.0-42-generic.gcn1-amdgpu-gcn2-radeon.txt status: ❌️ broken display ✅️ boot and reboot not stuck ❌️ ubsan error in dmesg Linux: 5.19.0-42-generic AMD R7 240 Oland: amdgpu driver AMD R9 R90X Grenada: radeon driver cmdline: amdgpu.si_support=1 radeon.si_support=0 amdgpu.cik_support=0 radeon.cik_support=1 dmesg quote: ``` [ 13.362208] ================================================================================ [ 13.363084] UBSAN: invalid-load in /var/lib/dkms/amdgpu/6.0.5-1581431.22.04/build/amd/amdgpu/../pm/amdgpu_dpm.c:1463:37 [ 13.363968] load of value 160 is not a valid value for type '_Bool' [ 13.364836] CPU: 0 PID: 370 Comm: systemd-udevd Tainted: G OE 5.19.0-42-generic #43-Ubuntu [ 13.365666] Hardware name: Default string Default string/Default string, BIOS WRX80PRO-F1 08/04/2022 [ 13.366494] Call Trace: [ 13.367324] [ 13.368144] show_stack+0x4e/0x61 [ 13.368970] dump_stack_lvl+0x4a/0x6f [ 13.369802] dump_stack+0x10/0x18 [ 13.370628] ubsan_epilogue+0x9/0x3a [ 13.371455] __ubsan_handle_load_invalid_value.cold+0x42/0x47 [ 13.372284] amdgpu_dpm_is_overdrive_supported.cold+0x12/0x45 [amdgpu] [ 13.373484] default_attr_update+0x332/0x520 [amdgpu] [ 13.374670] amdgpu_pm_sysfs_init+0x16b/0x1e0 [amdgpu] [ 13.375848] amdgpu_device_init.cold+0x13ea/0x202f [amdgpu] [ 13.377043] amdgpu_driver_load_kms+0x1a/0x160 [amdgpu] [ 13.378191] amdgpu_pci_probe+0x179/0x3a0 [amdgpu] [ 13.379321] local_pci_probe+0x47/0x90 [ 13.380160] pci_call_probe+0x55/0x190 [ 13.381002] pci_device_probe+0x84/0x120 [ 13.381840] really_probe+0x1df/0x3b0 [ 13.382692] __driver_probe_device+0x12c/0x1b0 [ 13.383540] driver_probe_device+0x24/0xd0 [ 13.384384] __driver_attach+0x10b/0x210 [ 13.385216] ? __device_attach_driver+0x170/0x170 [ 13.386048] bus_for_each_dev+0x90/0xe0 [ 13.386883] driver_attach+0x1e/0x30 [ 13.387718] bus_add_driver+0x187/0x230 [ 13.388544] driver_register+0x8f/0x100 [ 13.389374] __pci_register_driver+0x62/0x70 [ 13.390200] amdgpu_init+0x95/0x1000 [amdgpu] [ 13.391322] ? 0xffffffffc07e8000 [ 13.392156] do_one_initcall+0x5e/0x240 [ 13.392992] do_init_module+0x50/0x210 [ 13.393818] load_module+0xb7d/0xcd0 [ 13.394653] __do_sys_finit_module+0xc4/0x140 [ 13.395489] ? __do_sys_finit_module+0xc4/0x140 [ 13.396323] __x64_sys_finit_module+0x18/0x30 [ 13.397153] do_syscall_64+0x5b/0x90 [ 13.397982] ? exit_to_user_mode_prepare+0x30/0xb0 [ 13.398819] ? syscall_exit_to_user_mode+0x29/0x50 [ 13.399653] ? do_syscall_64+0x67/0x90 [ 13.400482] ? do_syscall_64+0x67/0x90 [ 13.401312] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 13.402145] RIP: 0033:0x7fa35f7ebc4d [ 13.402988] Code: 5d c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 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 83 f1 0d 00 f7 d8 64 89 01 48 [ 13.403859] RSP: 002b:00007ffcad72a068 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 13.404731] RAX: ffffffffffffffda RBX: 000055c1041ee310 RCX: 00007fa35f7ebc4d [ 13.405611] RDX: 0000000000000000 RSI: 000055c1041789a0 RDI: 000000000000001b [ 13.406496] RBP: 000055c1041789a0 R08: 0000000000000000 R09: 00007fa35f8cbc60 [ 13.407387] R10: 000000000000001b R11: 0000000000000246 R12: 0000000000020000 [ 13.408275] R13: 000055c1041f1230 R14: 0000000000000000 R15: 000055c1041f7b60 [ 13.409160] [ 13.410041] ================================================================================ ``` ## dmesg.linux-5.19.0-23-generic.gcn1-amdgpu-gcn2-amdgpu-extra.txt status: ✅️ display working ✅️ boot and reboot not stuck ❌️ ubsan error in dmesg Linux: 5.19.0-42-generic AMD R7 240 Oland: amdgpu driver AMD R9 R90X Grenada: amdgpu driver cmdline: amdgpu.si_support=1 radeon.si_support=0 amdgpu.cik_support=1 radeon.cik_support=0 amdgpu.exp_hw_support=1 amdgpu.gpu_recovery=1 amdgpu.ppfeaturemask=0xffffffff extra: some extra amdgpu kernel option used dmesg quote: ``` [ 8.460664] [drm] UVD initialized successfully. [ 8.461920] amdgpu 0000:82:00.0: amdgpu: SE 1, SH per SE 1, CU per SH 6, active_cu_number 5 [ 8.462916] ================================================================================ [ 8.463729] UBSAN: invalid-load in /build/linux-3Zc9YS/linux-5.19.0/drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_dpm.c:1363:37 [ 8.464548] load of value 8 is not a valid value for type '_Bool' [ 8.465365] CPU: 3 PID: 372 Comm: systemd-udevd Not tainted 5.19.0-23-generic #24-Ubuntu [ 8.466187] Hardware name: Default string Default string/Default string, BIOS WRX80PRO-F1 08/04/2022 [ 8.467015] Call Trace: [ 8.467848] [ 8.468671] show_stack+0x4e/0x61 [ 8.469494] dump_stack_lvl+0x4a/0x6d [ 8.470312] dump_stack+0x10/0x18 [ 8.471132] ubsan_epilogue+0x9/0x43 [ 8.471960] __ubsan_handle_load_invalid_value.cold+0x42/0x47 [ 8.472788] amdgpu_dpm_is_overdrive_supported.cold+0x12/0x45 [amdgpu] [ 8.473997] default_attr_update+0x332/0x500 [amdgpu] [ 8.475176] amdgpu_pm_sysfs_init+0x16f/0x1e0 [amdgpu] [ 8.476338] amdgpu_device_init.cold+0x39c/0x7ef [amdgpu] [ 8.477510] amdgpu_driver_load_kms+0x1c/0x170 [amdgpu] [ 8.478608] amdgpu_pci_probe+0x16d/0x3b0 [amdgpu] [ 8.479718] local_pci_probe+0x47/0x90 [ 8.480527] pci_call_probe+0x55/0x190 [ 8.481336] pci_device_probe+0x84/0x120 [ 8.482143] really_probe+0x1df/0x3b0 [ 8.482951] __driver_probe_device+0x12c/0x1b0 [ 8.483747] driver_probe_device+0x24/0xd0 [ 8.484534] __driver_attach+0xe0/0x210 [ 8.485311] ? __device_attach_driver+0x130/0x130 [ 8.486082] bus_for_each_dev+0x90/0xe0 [ 8.486857] driver_attach+0x1e/0x30 [ 8.487625] bus_add_driver+0x187/0x230 [ 8.488392] driver_register+0x8f/0x100 [ 8.489157] __pci_register_driver+0x62/0x70 [ 8.489929] amdgpu_init+0x6a/0x1000 [amdgpu] [ 8.491014] ? 0xffffffffc11de000 [ 8.491784] do_one_initcall+0x5e/0x240 [ 8.492546] do_init_module+0x50/0x210 [ 8.493316] load_module+0xb7d/0xcd0 [ 8.494076] __do_sys_finit_module+0xc4/0x140 [ 8.494838] ? __do_sys_finit_module+0xc4/0x140 [ 8.495600] __x64_sys_finit_module+0x18/0x30 [ 8.496356] do_syscall_64+0x5b/0x90 [ 8.497110] ? syscall_exit_to_user_mode+0x26/0x50 [ 8.497865] ? __x64_sys_mmap+0x33/0x70 [ 8.498618] ? do_syscall_64+0x67/0x90 [ 8.499376] ? exit_to_user_mode_prepare+0x30/0xb0 [ 8.500134] ? syscall_exit_to_user_mode+0x26/0x50 [ 8.500889] ? __x64_sys_newfstatat+0x1c/0x30 [ 8.501636] ? do_syscall_64+0x67/0x90 [ 8.502380] ? do_syscall_64+0x67/0x90 [ 8.503120] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 8.503859] RIP: 0033:0x7f0a0bbb0c4d [ 8.504593] Code: 5d c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 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 83 f1 0d 00 f7 d8 64 89 01 48 [ 8.505360] RSP: 002b:00007ffe21ed3d98 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 8.506133] RAX: ffffffffffffffda RBX: 0000557fb9ee4850 RCX: 00007f0a0bbb0c4d [ 8.506913] RDX: 0000000000000000 RSI: 0000557fb9ee4040 RDI: 0000000000000017 [ 8.507691] RBP: 0000557fb9ee4040 R08: 0000000000000000 R09: 00007f0a0bc90c60 [ 8.508467] R10: 0000000000000017 R11: 0000000000000246 R12: 0000000000020000 [ 8.509257] R13: 0000557fb9ec8f10 R14: 0000000000000000 R15: 0000557fb9f49c60 [ 8.510044] [ 8.510842] ================================================================================ ``` There is also this but that's about an experimental feature (kfd) disabled by default even when amdgpu is used, that's less important: ``` [ 5.984785] kfd kfd: amdgpu: Allocated 3969056 bytes on gart [ 5.988643] amdgpu: sdma_bitmap: f [ 5.997858] ================================================================================ [ 6.007130] UBSAN: shift-out-of-bounds in /build/linux-3Zc9YS/linux-5.19.0/drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device_queue_manager.c:1267:32 [ 6.016707] shift exponent 64 is too large for 64-bit type 'long long unsigned int' [ 6.028734] CPU: 1 PID: 372 Comm: systemd-udevd Not tainted 5.19.0-23-generic #24-Ubuntu [ 6.038231] Hardware name: Default string Default string/Default string, BIOS WRX80PRO-F1 08/04/2022 [ 6.048182] Call Trace: [ 6.058110] [ 6.069649] show_stack+0x4e/0x61 [ 6.079321] dump_stack_lvl+0x4a/0x6d [ 6.088770] dump_stack+0x10/0x18 [ 6.098629] ubsan_epilogue+0x9/0x43 [ 6.107248] __ubsan_handle_shift_out_of_bounds.cold+0x61/0xef [ 6.116693] initialize_nocpsch.cold+0x81/0xb8 [amdgpu] [ 6.130113] device_queue_manager_init+0x21f/0x400 [amdgpu] [ 6.142753] kgd2kfd_device_init.cold+0x224/0x50b [amdgpu] [ 6.155893] amdgpu_amdkfd_device_init+0x164/0x1d0 [amdgpu] [ 6.169241] amdgpu_device_ip_init+0x7ae/0x7f7 [amdgpu] [ 6.182140] amdgpu_device_init.cold+0x2ea/0x7ef [amdgpu] [ 6.195336] amdgpu_driver_load_kms+0x1c/0x170 [amdgpu] [ 6.208647] amdgpu_pci_probe+0x16d/0x3b0 [amdgpu] [ 6.222014] local_pci_probe+0x47/0x90 [ 6.230746] pci_call_probe+0x55/0x190 [ 6.239883] pci_device_probe+0x84/0x120 [ 6.249314] really_probe+0x1df/0x3b0 [ 6.257577] __driver_probe_device+0x12c/0x1b0 [ 6.266864] driver_probe_device+0x24/0xd0 [ 6.276565] __driver_attach+0xe0/0x210 [ 6.284772] ? __device_attach_driver+0x130/0x130 [ 6.293702] bus_for_each_dev+0x90/0xe0 [ 6.303052] driver_attach+0x1e/0x30 [ 6.310878] bus_add_driver+0x187/0x230 [ 6.319813] driver_register+0x8f/0x100 [ 6.330265] __pci_register_driver+0x62/0x70 [ 6.338986] amdgpu_init+0x6a/0x1000 [amdgpu] [ 6.351597] ? 0xffffffffc11de000 [ 6.360641] do_one_initcall+0x5e/0x240 [ 6.367998] do_init_module+0x50/0x210 [ 6.376316] load_module+0xb7d/0xcd0 [ 6.385344] __do_sys_finit_module+0xc4/0x140 [ 6.395205] ? __do_sys_finit_module+0xc4/0x140 [ 6.405422] __x64_sys_finit_module+0x18/0x30 [ 6.413615] do_syscall_64+0x5b/0x90 [ 6.422257] ? syscall_exit_to_user_mode+0x26/0x50 [ 6.429604] ? __x64_sys_mmap+0x33/0x70 [ 6.438137] ? do_syscall_64+0x67/0x90 [ 6.447129] ? exit_to_user_mode_prepare+0x30/0xb0 [ 6.454608] ? syscall_exit_to_user_mode+0x26/0x50 [ 6.462439] ? __x64_sys_newfstatat+0x1c/0x30 [ 6.469569] ? do_syscall_64+0x67/0x90 [ 6.477198] ? do_syscall_64+0x67/0x90 [ 6.484095] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 6.492403] RIP: 0033:0x7f0a0bbb0c4d [ 6.500007] Code: 5d c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 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 83 f1 0d 00 f7 d8 64 89 01 48 [ 6.515725] RSP: 002b:00007ffe21ed3d98 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 6.523327] RAX: ffffffffffffffda RBX: 0000557fb9ee4850 RCX: 00007f0a0bbb0c4d [ 6.530264] RDX: 0000000000000000 RSI: 0000557fb9ee4040 RDI: 0000000000000017 [ 6.537165] RBP: 0000557fb9ee4040 R08: 0000000000000000 R09: 00007f0a0bc90c60 [ 6.543715] R10: 0000000000000017 R11: 0000000000000246 R12: 0000000000020000 [ 6.550260] R13: 0000557fb9ec8f10 R14: 0000000000000000 R15: 0000557fb9f49c60 [ 6.556654] [ 6.563332] ================================================================================ ```