Linux 5.19 amdgpu: invalid load on GCN1 (R7 240 Oland)
See https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2018470 for details
- Distribution: Ubuntu 22.10
- Linux: 5.19.0-42-generic
- GPU: AMD R7 240 Oland (amdgpu module)
[ 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] <TASK>
[ 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] </TASK>
[ 13.410041] ================================================================================
Edited by Thomas Debesse