This may be related to the fact that I was running two different AMD video cards, one with amdgpu and the other with radeon drivers. That is how they were automatically installed.
I have since moved one card over to a vfio driver for pci passthrough, so effectively it's not doing much with the kernel anymore, and the issue has gone away. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1873548 Title: [amdgpu] hangs at shutdown Status in linux package in Ubuntu: Confirmed Bug description: I am getting some kind of hang/lockup/deadlock at shutdown with repeated stack trace dumps being displayed. Note that I have 2 AMD gpus installed in this machine. This may be related to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1873547 It may also be bad hardware. All of this displayed output occurs after syslog has shutdown, so I had to take a picture of the screen. Here is an OCR conversion to text. (Please excuse the bad conversion, which is truncated on the top, bottom, and right hand side.) [ 1781.035942] tick_sched_handle+0x29/0x60 [ 1781.039238] tick_sched_timer+0x3d/0x80 [ 1781.042516] _hrtimer run_queues+Oxf7/0x270 [ 1781.045775] ? tick_sched_do_timer+0x60/0x60 [ 1781.049038] hrtimer interrupt+0x109/0x220 [ 1781.052280] smp_apic_timer interrupt+0x71/0x140 [ 1781.055529] apic_timer_interrupt+Oxf/0x20 [ 1781.058800] </IRQ> [ 1781.062073] RIP: 0010: amdgpu_mm_rreg+Oxf0/0x110 [amdgpu] [ 1781.865338] Code: ea 89 de es e2 e5 30 42 49 85 84 24 48 85 cũ 75 e1 5 56 03 00 5b 41 50 41 89 c6 41 50 44 89 f0 41 5e 41 5f [ 1781.072306] RSP: 0018:ffffaee200037bbo EFLAGS: 00000282 ORIG_RAX: ffff [ 1781.075879] RAX: ffffaee 200180254 RBX: 0000000000000254 RCX: 0000000001 [ 1781.079504] RDX: 0000000000000000 RSI: 0000000000000095 RDI: ffff90ff15 [ 1781.083132] RBP: ffffaee200037bd8 R08: 00000000ffffffff ROS: 000000000 [ 1781.086769] R10: 0000000000000002 R11: 00000000000000f0 R12: ffff90ff15 [ 1781.090419] R13: 0000000000000095 R14: 0000000000000000 R15: 0000000000 [ 1781.094141] amdgpu_cas_read_register+0x14/0x20 [amdgpu] [ 1781.097893] phm_wait_for_register_unequal.part.0+0x58/0x90 [amdgpu] [ 1781.101693] phm_wait_for_register_unequal+0x1a/0x30 [amdgpu] [ 1781.105471] smu7_send_msg_to_smc_with_parameter+0x27/0x60 [amdgpu] [ 1781.109297] smum_send_msg_to_smc_with_parameter+0x26/0x30 [amdgpu] [ 1781.113098] smu7_update_clock_gatings+Ox3d2/0x410 [amdgpu] [ 1781.116922] pp_set_clockgating_by_smu+0x37/0x60 [amdgpu] [ 1781. 120731] vi_common_set_clockgating_state+Ox1f8/0x3d0 [amdgpu] [ 1781. 124557] amdgpu_device_set_cg_state.part.0+0x80/Oxel [amdgpu] [ 1781.128273] amdgpu_device_ip_suspend_phase1+0x3e/Oxfo [amdgpu] [ 1781. 131858] amdgpu_device_ip_suspend+0x21/0x70 [amdgpu] [ 1781.135367] amdgpu_pci_shutdown+0x27/0x40 [amdgpu] [ 1781. 138793] pci_device_shutdown+0x3a/0x60 [ 1781.142180] device_shutdown+0x110/0x190 [ 1781.145553] kernel_power_off+0x35/0x70 [ 1781.148909] __do_sys_reboot+0x121/0x210 [ 1781. 152274] ? vfs_writev+Oxc3/Oxfo [ 1781 , 155578] ? do_user_addr_fault+0x216/0x450 [ 1781. 158816] ? do_writev+0x71/0x120 [ 1781. 161961] __x64_sys_reboot+0x1e/0x20 [ 1781 . 165108] do_syscall_64+0x57/0x190 [ 1781 . 168186] entry_SYSCALL_64_after_huframe+Ox44/0xa9 [ 1781. 171201] RIP: 0033:0x7fdb07cc92f7 [ 1781.174113] Code: 64 89 01 48 83 c8 ff c3 66 2e Of if 84 00 00 00 00 00 9 ff ff 77 01 c3 48 8b 15 69 2b Od 00 f7 d8 64 89 02 b8 [ 1781. 180561] RSP: 002b:00007fff935d9048 EFLAGS: 00000206 ORIG_RAX: 0000000 [ 1781. 183886] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fdb07cc! [ 1781 .187232] RDX: 000000004321 fedc RSI: 0000000028121969 RDI: 00000000 feel [ 1781. 190588] RBP: 0000000000000000 ROB: 0000000000000000 RO9: 00007fff935de [ 1781.193948] R10: 00007fdb6e1d900 R11: 0000000000000206 R12: 0000000000000 [ 1781. 197300] R13: 0000000000000000 R14: 0000001000000004 R15: 0000000000000 ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: linux-image-5.4.0-24-generic 5.4.0-24.28 ProcVersionSignature: Ubuntu 5.4.0-24.28-generic 5.4.30 Uname: Linux 5.4.0-24-generic x86_64 ApportVersion: 2.20.11-0ubuntu27 Architecture: amd64 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC2: judson 1879 F.... pulseaudio /dev/snd/controlC0: judson 1879 F.... pulseaudio /dev/snd/controlC1: judson 1879 F.... pulseaudio CasperMD5CheckResult: skip CurrentDesktop: ubuntu:GNOME Date: Sat Apr 18 00:00:42 2020 InstallationDate: Installed on 2020-04-17 (1 days ago) InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Beta amd64 (20200402) IwConfig: lo no wireless extensions. enp34s0 no wireless extensions. MachineType: Micro-Star International Co., Ltd. MS-7B79 ProcEnviron: TERM=xterm-256color PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash ProcFB: 0 radeondrmfb 1 amdgpudrmfb ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.4.0-24-generic root=/dev/mapper/vgubuntu-root ro quiet splash vt.handoff=7 RelatedPackageVersions: linux-restricted-modules-5.4.0-24-generic N/A linux-backports-modules-5.4.0-24-generic N/A linux-firmware 1.187 RfKill: SourcePackage: linux UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 11/11/2019 dmi.bios.vendor: American Megatrends Inc. dmi.bios.version: A.G0 dmi.board.asset.tag: To be filled by O.E.M. dmi.board.name: X470 GAMING PLUS (MS-7B79) dmi.board.vendor: Micro-Star International Co., Ltd. dmi.board.version: 2.0 dmi.chassis.asset.tag: To be filled by O.E.M. dmi.chassis.type: 3 dmi.chassis.vendor: Micro-Star International Co., Ltd. dmi.chassis.version: 2.0 dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrA.G0:bd11/11/2019:svnMicro-StarInternationalCo.,Ltd.:pnMS-7B79:pvr2.0:rvnMicro-StarInternationalCo.,Ltd.:rnX470GAMINGPLUS(MS-7B79):rvr2.0:cvnMicro-StarInternationalCo.,Ltd.:ct3:cvr2.0: dmi.product.family: To be filled by O.E.M. dmi.product.name: MS-7B79 dmi.product.sku: To be filled by O.E.M. dmi.product.version: 2.0 dmi.sys.vendor: Micro-Star International Co., Ltd. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1873548/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp