Public bug reported:

## Summary
On Linux Mint 22.3 (Ubuntu 24.04 noble base), the shutdown/reboot hang is a 
persistent regression carrying over across the kernel 7.0 series (first widely 
observed on 7.0.0-28, persisting on 7.0.0-29, and still present on 
7.0.0-30-generic [7.0.0-30.30~24.04.1]).

After normal desktop usage involving media playback and web browsing,
initiating shutdown proceeds cleanly through systemd targets until
poweroff.target is reached. The monitors turn off / enter standby, but
the chassis fans keep spinning and the power LEDs remain on
indefinitely. The system becomes unresponsive and requires a forced
power-off or SysRq (REISUB) to reboot.

## Regression Continuity & Progression
- Kernel 6.17.0-42-generic: WORKS (clean power-off / reboot every time).
- Kernel 7.0.0-28-generic: FAILS (widespread shutdown/reboot hangs reported 
across AMD hardware).
- Kernel 7.0.0-29-generic: FAILS (issue remains unresolved).
- Kernel 7.0.0-30-generic: FAILS (tested; hangs consistently after active 
session).

## Steps to Reproduce
1. Boot into kernel 7.0.0-30-generic.
2. Run standard user workloads (e.g., Firefox browsing, YouTube video/audio 
streaming) for a normal session.
3. Attempt to shutdown or reboot via desktop UI or terminal (`systemctl 
poweroff`).
4. Result: Systemd completes teardown, monitors enter power saving mode, but 
the machine hangs in a powered-on state.

## Key Observations
- Session Dependent: Performing an immediate shutdown or reboot right after a 
clean boot works fine. The deadlock consistently manifests only after the 
system has run graphical/multimedia workloads.
- Systemd Completion: Logs from the preceding failed boot (journalctl -b -1) 
confirm that all userspace services, filesystems (/boot/efi, swap), and targets 
down to systemd-poweroff.service and poweroff.target deactivate cleanly before 
systemd-journald stops.
- Workaround: Rolling back to kernel 6.17.0-42-generic completely resolves the 
issue on the exact same hardware.

## Technical Assessment / Root Cause Hypothesis
- Clean teardown by systemd-shutdown confirms the deadlock happens strictly at 
the kernel/ACPI hardware power-down boundary (transition to S5 state).
- Because the issue is workload-dependent (triggered after video decode / web 
rendering) and affects systems utilizing AMD graphics, this points to an amdgpu 
driver regression in the 7.0.0 branch related to runtime power management (BACO 
/ D3cold state transitions) or unreleased hardware rings (VCN/SDMA) on 
power-off.

## Package & Kernel Details
- Package: linux-image-7.0.0-30-generic (7.0.0-30.30~24.04.1)
- Affected series: 7.0.0-28, 7.0.0-29, 7.0.0-30
- Working series: 6.17.0-42-generic

## System Information (inxi -Fxxxz)
System:
  Kernel: 6.17.0-42-generic arch: x86_64 bits: 64 compiler: gcc v: 13.3.0 
clocksource: tsc
  Desktop: Cinnamon v: 6.6.9 tk: GTK v: 3.24.41 wm: Muffin v: 6.6.3 vt: 7 dm: 
LightDM v: 1.30.0 Distro: Linux Mint 22.3 Zena base: Ubuntu 24.04 noble
Machine:
  Type: Desktop Mobo: ASUSTeK model: ROG STRIX B350-F GAMING v: Rev X.0x 
serial: <superuser required> part-nu: SKU uuid: <superuser required> UEFI: 
American Megatrends v: 6042 date: 04/28/2022
CPU:
  Info: 8-core model: AMD Ryzen 7 5800X3D bits: 64 type: MT MCP smt: enabled 
arch: Zen 3+ rev: 2 cache: L1: 512 KiB L2: 4 MiB L3: 96 MiB
  Speed (MHz): avg: 2214 high: 3593 min/max: 576/4553 boost: enabled cores: 1: 
1755 2: 3593 3: 3593 4: 1755 5: 1755 6: 1755 7: 1755 8: 3593 9: 3593 10: 1755 
11: 1755 12: 1755 13: 1755 14: 1755 15: 1755 16: 1755 bogomips: 108591
Graphics:
  Device-1: AMD Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] vendor: 
Sapphire driver: amdgpu v: kernel arch: RDNA-1 pcie: speed: 16 GT/s lanes: 16 
ports: active: DP-1,DP-2 empty: DP-3,HDMI-A-1 bus-ID: 09:00.0 chip-ID: 
1002:731f class-ID: 0300
  Display: x11 server: X.Org v: 21.1.11 with: Xwayland v: 23.2.6 driver: X: 
loaded: amdgpu dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
  Monitor-1: DP-1 mapped: DisplayPort-0 pos: primary,right model: ASUS VP249 
serial: <filter> res: 1920x1080 dpi: 93 size: 527x296mm (20.75x11.65") diag: 
604mm (23.8")
  Monitor-2: DP-2 mapped: DisplayPort-1 pos: left model: Dell U2412M serial: 
<filter> res: 1920x1200 hz: 60 dpi: 94 size: 518x324mm (20.39x12.76") diag: 
611mm (24.1")

## Relevant Shutdown Logs (journalctl -b -1 -n 25 --no-pager)
systemd[1]: Reached target umount.target - Unmount All Filesystems.
systemd[1]: Stopping lvm2-monitor.service - Monitoring of LVM2 mirrors, 
snapshots etc. using dmeventd or progress polling...
systemd[1]: systemd-remount-fs.service: Deactivated successfully.
systemd[1]: Stopped systemd-remount-fs.service - Remount Root and Kernel File 
Systems.
systemd[1]: lvm2-monitor.service: Deactivated successfully.
systemd[1]: Stopped lvm2-monitor.service - Monitoring of LVM2 mirrors, 
snapshots etc. using dmeventd or progress polling.
systemd[1]: Reached target shutdown.target - System Shutdown.
systemd[1]: Starting casper.service - Shuts down the "live" preinstalled system 
cleanly...
systemd[1]: casper.service: Deactivated successfully.
systemd[1]: Finished casper.service - Shuts down the "live" preinstalled system 
cleanly.
systemd[1]: Reached target final.target - Late Shutdown Services.
systemd[1]: systemd-poweroff.service: Deactivated successfully.
systemd[1]: Finished systemd-poweroff.service - System Power Off.
systemd[1]: Reached target poweroff.target - System Power Off.
systemd[1]: Shutting down.
systemd-shutdown[1]: Syncing filesystems and block devices.
systemd-shutdown[1]: Sending SIGTERM to remaining processes...
systemd-journald[424]: Received SIGTERM from PID 1 (systemd-shutdow).
systemd-journald[424]: Journal stopped

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2165664

Title:
  Regression: System hangs on shutdown/reboot on kernel 7.0.0-30-generic
  after active workload (persists across 7.0.0-28, -29, -30)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2165664/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to