AMDGPU oops on 5.14.8 riscv64 during module initialization
Linux 5.14.8 on riscv64 (HiFive Unmatched)
Advanced Micro Devices, Inc. [AMD/ATI] Baffin [Radeon RX 550 640SP / RX 560/560X] (rev ff)
cc @equan, who was recently in this function
[ 34.854760] Oops [#1]
[ 34.856265] Modules linked in: amdgpu(+) mfd_core gpu_sched i2c_algo_bit drm_ttm_helper ttm drm_kms_helper cfbfillrect syscopyarea cfbimgblt sysfillrect sysimgblt fb_sys_fops cfbcopyarea drm drm_panel_orientation_quirks ofpart spi_nor mtd mscc macb phylink efivarfs xhci_pci xhci_hcd nvme nvme_core hwmon loop usb_storage usbcore usb_common
[ 34.886245] CPU: 1 PID: 1038 Comm: modprobe Not tainted 5.14.8-1-edge #2-Alpine
[ 34.893523] Hardware name: SiFive HiFive Unmatched A00 (DT)
[ 34.899082] epc : __memcpy+0x3c/0xf8
[ 34.902640] ra : amdgpu_uvd_suspend+0x15a/0x186 [amdgpu]
[ 34.920534] epc : ffffffff8031fd7c ra : ffffffff013177b0 sp : ffffffd0042d3870
[ 34.927739] gp : ffffffff80f3b2c0 tp : ffffffe0827e8ac0 t0 : ffffffe086a00000
[ 34.934948] t1 : ffffffff80f8ef70 t2 : 000000000000b05c s0 : ffffffd0042d3900
[ 34.942157] s1 : ffffffe0856e0000 a0 : ffffffe086600000 a1 : ffffffd115654000
[ 34.949367] a2 : 00000000002c2000 a3 : ffffffd115916000 a4 : 00000000002c2000
[ 34.956576] a5 : 0000000000000000 a6 : 0000000200000022 a7 : ffffffff80e0a370
[ 34.963795] s2 : ffffffe0856ef000 s3 : ffffffe0856f0000 s4 : 000000000000f000
[ 34.971003] s5 : 0000000000000910 s6 : 00000000ffffffff s7 : 0000000000001000
[ 34.978212] s8 : ffffffe0856ef000 s9 : 0000000000000000 s10: 00000000002c2000
[ 34.985421] s11: ffffffd115654000 t3 : 0000000000000030 t4 : 0000000000000000
[ 34.992630] t5 : 0000000002c186a0 t6 : ffffffe086600000
[ 34.997923] status: 0000000200000120 badaddr: ffffffd115654000 cause: 000000000000000d
[ 35.005834] [<ffffffff8031fd7c>] __memcpy+0x3c/0xf8
[ 35.010694] [<ffffffff0131a9b8>] uvd_v6_0_sw_fini+0x1c/0x8c [amdgpu]
[ 35.024313] [<ffffffff0125cbca>] amdgpu_device_fini_sw+0xc8/0x2c0 [amdgpu]
[ 35.037523] [<ffffffff01261ece>] amdgpu_driver_release_kms+0x16/0x28 [amdgpu]
[ 35.050630] [<ffffffff01124cbe>] devm_drm_dev_init_release+0x40/0x6c [drm]
[ 35.057627] [<ffffffff803a759e>] devm_action_release+0xe/0x16
[ 35.063355] [<ffffffff803a8714>] devres_release_all+0x88/0xce
[ 35.069087] [<ffffffff803a41ca>] really_probe.part.0+0xc2/0x224
[ 35.074994] [<ffffffff803a439c>] __driver_probe_device+0x70/0xde
[ 35.080987] [<ffffffff803a4438>] driver_probe_device+0x2e/0xf6
[ 35.086806] [<ffffffff803a4a50>] __driver_attach+0x88/0x142
[ 35.092365] [<ffffffff803a2690>] bus_for_each_dev+0x52/0x8c
[ 35.097924] [<ffffffff803a3bbe>] driver_attach+0x1a/0x22
[ 35.103222] [<ffffffff803a36de>] bus_add_driver+0xca/0x17c
[ 35.108694] [<ffffffff803a507a>] driver_register+0x48/0xd8
[ 35.114166] [<ffffffff80337402>] __pci_register_driver+0x40/0x48
[ 35.120161] [<ffffffff01760082>] amdgpu_init+0x82/0x1000 [amdgpu]
[ 35.133177] [<ffffffff800020ea>] do_one_initcall+0x3e/0x168
[ 35.138727] [<ffffffff80077f06>] do_init_module+0x46/0x208
[ 35.144199] [<ffffffff80079c64>] load_module+0x1af4/0x2050
[ 35.149670] [<ffffffff8007a37a>] __do_sys_finit_module+0x8a/0xb6
[ 35.155663] [<ffffffff8007a3ca>] sys_finit_module+0x10/0x18
[ 35.161222] [<ffffffff8000304e>] ret_from_syscall+0x0/0x2
[ 35.166703] ---[ end trace 799a431749fc53bc ]---