Linux 5.19 amdgpu: NULL pointer on GCN2 (R9 390X Hawaii/Grenada)
See https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2018470 for details
- Distribution: Ubuntu 22.10
- Linux: 5.19.0-42-generic
- GPU: AMD R9 390X Grenada (amdgpu module)
[ 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] <TASK>
[ 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] </TASK>
[ 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
Edited by Thomas Debesse