omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Crash and restart after omarchy-system-lock

Open filip-spaldon opened this issue 4 months ago • 29 comments

System details

Omarchy 3.8.3

What's wrong?

System details

  • PC: Framework Desktop (AMD Ryzen AI Max 300 Series)
  • CPU/APU: AMD Ryzen AI Max 385 w/ Radeon 8050S (Strix Halo, gfx11)
  • GPU: amdgpu 0000:c2:00.0, VRAM 16384M (UMA), ATOM BIOS 113-STRXLGEN-001
  • SMU firmware: 0x0a640600 (100.6.0)
  • Omarchy: 3.8.3
  • Kernel: 7.1.3-arch1-2 (broken) — 7.0.10-arch1-1 confirmed working (rollback tested)
  • linux-firmware-amdgpu: 20260622-1 (broken) — 20260519-1 confirmed working
  • mesa: 1:26.1.4-1 (broken) — 1:26.1.1-2 confirmed working
  • Hyprland: 0.55.4-1

What's wrong

Since upgrading to Omarchy 3.8.3 (bumps linux 7.0.10→7.1.3, linux-firmware-amdgpu 20260519→20260622, mesa 26.1.1→26.1.4, hyprland 0.55.2→0.55.4), the system immediately hard-freezes and force-reboots as soon as the display is turned off via DPMS — whether triggered by omarchy-system-lock, a custom hyprctl dispatch dpms off keybind, or automatically via hypridle's idle timeout. No delay — the reboot happens right at the point the screen goes dark.

There is no clean shutdown in the journal (no unmounting sequence, no kernel panic, no amdgpu reset/timeout messages) — the journal just stops, consistent with a hard hang forcing an external/hardware reset.

Reproduction steps

hyprlock &
sleep 3
hyprctl dispatch dpms off

→ Display turns off → system force-reboots immediately. Reproduced consistently (4/4 attempts) via both manual and hypridle-automatic triggering.

Key log evidence

Journal simply ends mid-stream, no error, no shutdown sequence:

Jul 14 21:08:40 omarchy kernel: [UFW BLOCK] IN=enp191s0 ... (normal traffic)
Jul 14 21:08:42 omarchy kernel: [UFW BLOCK] IN=enp191s0 ...
--- journal ends, next boot starts ~1 min later, no panic/reset/coredump anywhere ---

Key findings

  • Rolling back kernel + linux-firmware-amdgpu + mesa to pre-3.8.3 versions (via btrfs/limine snapshot) completely fixes it — same hardware, same repro steps, zero crashes. Strongly points to a regression in one of these three packages between the given versions.
  • Locking without triggering DPMS off (OMARCHY_LOCK_ONLY=true omarchy-system-lock) does not crash by itself — confirms DPMS off specifically is the trigger, not hyprlock rendering.
  • No amdgpu/SMU/VPE error is ever logged before the crash

Happy to provide more logs if useful.

filip-spaldon avatar Jul 14 '26 20:07 filip-spaldon

Hmm. I haven't been able to replicate this on my 385 Framework Desktop. Wonder where it differs. You might want to try to pin it down further by downgrading either mesa or linux-firmware-amdgpu packages. Then if we have a clear fix on where it's going wrong, it'll be easier to get it sorted upstream.

dhh avatar Jul 14 '26 22:07 dhh

Bisect results — the culprit is linux 7.1.3

I've narrowed it down by downgrading each package individually and testing the repro after each step. Here's what I found:

Package Downgraded to Result
mesa 1:26.1.1-2 (keeping kernel 7.1.3 + firmware 20260622) Still crashes
linux-firmware-amdgpu 20260519-1 (keeping kernel 7.1.3 + mesa 26.1.4) Still crashes
linux 7.0.10-arch1-1 (keeping mesa 26.1.4 + firmware 20260622) Fixed — no crash

So the regression is specifically in linux 7.1.3-arch1-2 (or 7.1.x in general). Neither mesa 26.1.1→26.1.4 nor linux-firmware-amdgpu 20260519→20260622 are contributing factors.

Happy to help with further testing... Thank you

filip-spaldon avatar Jul 15 '26 06:07 filip-spaldon

Running the exact same software stack you flagged, but DPMS-off does not freeze here:

  • APU: AMD Ryzen AI Max+ 395 w/ Radeon 8060S (Strix Halo) — note: 395, not the 385/8050S in the report
  • Form factor: Desktop (board "AMD Ryzen AI Max 300 Series"), BIOS 03.05 (2026-01-21)
  • Kernel: 7.1.3-arch1-2 · mesa: 1:26.1.4-1 · linux-firmware-amdgpu: 20260622 · Omarchy: 3.8.3 (all matching the affected versions)
  • amd_pstate: active hyprctl dispatch dpms off fired for real today via the 15-min idle auto-lock (Omarchy's lock path calls dpms off after a 3s delay) and via the standalone hypridle DPMS listener. No hard freeze, no reboot — uptime has been continuous. Display powered off and woke normally. So on this hardware the regression does not trigger, which suggests the crash may be specific to the 385/8050S variant (or a mobile/mini form factor, BIOS, or panel/VRR setup) rather than to the kernel/mesa/firmware bump alone. Happy to provide logs or run a controlled test if useful.

SmartALB avatar Jul 15 '26 08:07 SmartALB

Update: bisected to linux 7.1.3 + dual-monitor boot dependency found

Thanks for the input — that's very helpful data points. I've made significant progress narrowing this down.

Dual-monitor boot dependency

I've also discovered a critical reproduction condition that explains why it may not trigger for others:

The crash only occurs when both monitors are connected during boot. My setup:

  • HDMI-A-1: LG SDQHD 2560x2880@60
  • DP-3: GIGA-BYTE M27Q 2560x1440@170
Scenario Result
Both monitors connected during boot → DPMS off Crash
HDMI disconnected during boot, then hotplugged after login → DPMS off No crash
Only DP-3 connected during boot → DPMS off No crash

This strongly suggests the issue is in amdgpu's DCN 3.5.1 dual-CRTC initialization path during boot on kernel 7.1.x. When both CRTC pipelines are initialized at boot time, something leaves the GPU in a state where a subsequent dpms off (which calls optc35_disable_crtc / link_set_dpms_off internally) hangs the SMU/DMUB and hard-resets the system. When only one CRTC is initialized at boot, DPMS off works fine — and hotplugging the second monitor after boot takes a different code path that doesn't trigger the bug.

No amdgpu/SMU/VPE/CRTC error is ever logged before the crash — the journal just stops mid-stream, consistent with a silent hard hang before the driver can emit a timeout message.

Happy to test kernel parameters (amdgpu.dcdebugmask=0x10, amdgpu.gpu_recovery=1, amdgpu.sg_display=0) on 7.1.3 with dual monitors if that would help narrow down the root cause further.

filip-spaldon avatar Jul 15 '26 09:07 filip-spaldon

I've tried to reach out to AMD to see if we can get some eyes on this.

dhh avatar Jul 19 '26 15:07 dhh

I can definitely reproduce the issue on my Framework Desktop, As indicated a simple kernel downgrade solved the problem. I have three displays and if active at boot the condition is definitely always present.

❯ fastfetch --logo none --structure host:cpu:gpu:memory:disk:battery
Host: Desktop (AMD Ryzen AI Max 300 Series) (A6)
CPU: AMD RYZEN AI MAX+ 395 (32) @ 5.19 GHz
GPU: AMD Radeon 8060S Graphics [Integrated]
Memory: 15.98 GiB / 125.08 GiB (13%)
Disk (/): 744.79 GiB / 3.64 TiB (20%) - btrfs
❯ omarchy version
3.8.3

grhoades avatar Jul 19 '26 20:07 grhoades

I can reproduce this too

Framework Desktop (AMD Ryzen AI Max 300 / Strix Halo):

Hardware:

  • GPU: AMD Radeon 8050S / Strix Halo, PCI ID 1002:1586 (amdgpu)
  • BIOS: 03.03 (+ 03.04 + 03.05 - no change)
  • Kernel cmdline includes amd_iommu=off (this predates the regression)

Affected package set:

  • linux 7.1.3-arch1-2
  • linux-firmware-amdgpu 20260622-1
  • mesa 1:26.1.4-1
  • hyprland 0.55.4-1
  • amd-ucode 20260622-1

Observed behaviour:

  • DPMS-off is the final persistent journal event before the unclean reboot.
  • This occurred with normal locking/idle and DPMS-off requests.
  • No preceding kernel panic, amdgpu timeout/reset, AER/DPC, or thermal-fatal message.
  • Firmware records 0x08000800 “uncorrected data-fabric sync flood” after the reset.

Display topology:

  • Dell S2721DGF — 2560×1440 @ ~60 Hz — connected via DisplayPort (DP-3)
  • Dell U2715H — 2560×1440 @ ~60 Hz — connected via HDMI (HDMI-A-1) - this one is via a dock / usb-c
  • Both displays are connected when the DPMS-off hard reset occurs.

Control:

  • A retained 7.0.9-era snapshot was stable overnight.
  • I am testing 7.1.3 separately from the later 7.1.4/Mesa 26.1.5 upgrade.

nickkaltner avatar Jul 26 '26 00:07 nickkaltner

Having this issue myself after the last Omarchy update as well. I should note one of my monitors is also a Gigabyte. I believe I've had some trouble around this monitor with a few other things as well. Spotify for example seems to always freeze the machine and the crash reports seem to indicate that monitor is involved. Just another data point I thought worth noting._

mrispoli24 avatar Jul 28 '26 00:07 mrispoli24

This issue still persists on Omarchy Quattro (Linux 7.1.8-arch1-3).

@dhh Any updates on this, please? Thanks!

filip-spaldon avatar Aug 18 '26 20:08 filip-spaldon

Hey @filip-spaldon, there was a series of kernel patches related to display idle state management that went in early into the 7.1.x cycle which are likely the culprit here. The complete set of changes is present in 7.1.8 so if the hard hangs/forced reboots are still occuring, it'll be worth narrowing this down to a faulting commit. I haven't had much luck reproducing this on my end with the following config,

  • Corsair AI Workstation 300 w/ AMD Radeon 8060S / Strix Halo
  • Omarchy: 4.0.0
  • Kernel: 7.1.8-arch1-3 or 7.1.3-arch1-2
  • Mesa: 1:26.1.7-1
  • hyprland: 0.56.2-1
  • Display Topology: DP-9 (BenQ EW2880U 3840×2160@60) + DP-11 (Dell UP2718Q 3840×2160@60) -> Swapped to HDMI + DP no real difference

Neither pure dpms off or dpms off + omarchy-system-lock triggered the hang. Couple things for you to try out on your end,

  • A kernel bisect between 7.0.10 -> 7.1.3 would help isolate the faulty commit, see here for guidance on how to do this.
  • As you suggested, a test with amdgpu.dcdebugmask=0x10 would be helpful in narrowing this down to the idle state management path.
  • Try out the passing SW config above.

harkgill-amd avatar Aug 19 '26 19:08 harkgill-amd

amdgpu.dcdebugmask=0x800 (DC_DISABLE_IPS) prevents the hang

@harkgill-amd Your idle-state hypothesis looks right, but the bit you suggested isn't the one that controls it. Full A/B today, one reboot per row, dpms off fired the same way each time:

dcdebugmask flag result
(none) baseline hard reset
0x800 DC_DISABLE_IPS survives — 3 runs, no reset
0x2000 DC_DISABLE_IPS2_DYNAMIC hard reset
0x10 DC_DISABLE_PSR hard reset

Baseline and the 0x800 runs are from the same session, so this is a clean A/B rather than a comparison across days.

About 0x10

0x10 is DC_DISABLE_PSR, not an idle-state bit. Per drivers/gpu/drm/amd/include/amd_shared.h @ v7.1, the IPS controls are DC_DISABLE_IPS = 0x800, DC_DISABLE_IPS_DYNAMIC = 0x1000, DC_DISABLE_IPS2_DYNAMIC = 0x2000. I tested 0x10 anyway since you asked for it — it does not help.

About 0x2000 — it does not isolate IPS1

DC_DISABLE_IPS2_DYNAMIC is documented as "disable IPS2 (IPS1 allowed) if there is an enabled display. Otherwise, enable all IPS." During dpms off there is no enabled display, so this flag re-enables all IPS in exactly the scenario under test. Its crash therefore says nothing about IPS1 vs IPS2, and as far as I can tell these flags can't separate the two for this code path — "all IPS off" is the only real control here.

What is established: entering IPS during the dpms off teardown is what kills the machine, and disabling IPS entirely is the only thing that avoids it.

A second workaround, and what it implies

Before finding the dcdebugmask switch I had been avoiding this by disabling the HDMI output first (hl.monitor({ output = "HDMI-A-1", disabled = true })), waiting until it reports disabled, and only then blanking. That has been reliable for me and is what I actually run day to day.

Worth noting for diagnosis: a full modeset that removes the pipe is safe, while dpms off with both pipes still active is what kills the machine. So this looks specific to the DPMS-off path rather than to display teardown in general.

Why there are no logs in this thread

Worth stating explicitly, because it constrains how a bisect can be run. On this machine the failure cannot be captured in software at all:

  • The last journal entry is ~5 s before the reset and is unrelated to DPMS — journald never flushes. The test's own marker line is lost too.
  • No oops, no NMI backtrace, no amdgpu/DRM/SMU/DMUB warning of any kind beforehand.
  • This firmware exposes no BERT and no HEST ACPI table, so APEI records aren't readable from Linux.
  • Arch's kernel has CONFIG_PSTORE_CONSOLE unset, so ramoops can only dump on panic/oops — and there is no panic.
  • netconsole can't help either: the CPU dies in the same instruction, so there is nothing left to transmit.

That is consistent with @nickkaltner's firmware-side 0x08000800 "uncorrected data-fabric sync flood" — an unanswered fabric transaction, i.e. the driver touching a display power domain that IPS has already gated. Instant hardware reset, nothing left to log.

Practically: a bisect here has to be driven by a boolean "did the box reset", not by logs.

System

  • AMD Ryzen AI Max 385 w/ Radeon 8050S (Strix Halo, 1002:1586) — DCN 3.5.1, DC v3.2.378, DMUB 0x09004E00, SMU v14.0.0
  • Framework Desktop (FRANMFCP02), BIOS 03.06 (2026-07-13)
  • 32 GB RAM with a 16 GB UMA carveout to VRAM (15 GiB left to the system)
  • linux 7.1.8.arch1-3, mesa 1:26.1.7-1, hyprland 0.56.2-1, linux-firmware-amdgpu 20260810-1, Omarchy 4.0.0
  • Displays, both connected at boot, both VRR off:

Compared with your passing config (395/8060S, two DP panels at 3840x2160@60): the mixed refresh rate (170 Hz alongside 60 Hz) and the non-standard 2560x2880 mode are the things none of the people who can't reproduce seem to have. Since whether DC permits IPS entry is computed from the display configuration, that looks like a plausible reason it reproduces here and not on your bench — a high-refresh panel next to a 60 Hz one might be worth a try.

It also fits the boot-time dependency I reported earlier: the crash only happens when both monitors are present at boot, i.e. when the pipe topology that decides the idle state is set up that way from the start.

On the bisect

I can't run one — I don't have the capacity for a kernel bisect, and on this machine it would also mean a hard reset per step on the only box I work on.

What I can do cheaply, if any of it is useful:

  • More dcdebugmask / module parameter tests. Each one is a single reboot and a yes/no answer; the four rows above took about half an hour. Name any combination and I'll run it.
  • Testing a specific kernel version from the Arch archive — e.g. 7.1.0 vs 7.1.3, to establish whether this came in with the 7.1 merge window or with a stable backport. That's one boot per version, no compiling.
  • Testing a patch or a revert you provide, if you can point at a specific commit you suspect.

Given that DC_DISABLE_IPS is a clean on/off switch for the failure, a candidate commit in the IPS entry/exit path for DCN 3.5.1 might be quicker to spot by inspection than by bisect anyway.

filip-spaldon avatar Aug 20 '26 10:08 filip-spaldon

Another reproducible case – Intel HD 520 / Dell Latitude 7480

I can reproduce what appears to be the same issue on a Dell Latitude 7480 using Intel HD Graphics 520 (i915).

Environment

  • Omarchy: 4.0.0-1
  • Kernel: 7.1.8-arch1-3
  • Hyprland: 0.56.2 (efb50993780079460b0cbed1363e2166a2de1d9f)
  • GPU: Intel Skylake-U GT2 / HD Graphics 520 [8086:1916]
  • Driver: i915
  • Machine: Dell Latitude 7480
  • BIOS: 1.41.3, dated 02/09/2025

Symptoms

Locking the machine and leaving it at the lock screen causes a hard crash shortly after the display is blanked.

The journal simply stops. I found no kernel panic, GPU hang/reset, OOM, thermal event or orderly shutdown corresponding to the failure.

Recovery was unusually difficult after one occurrence. The laptop would not initially power back on normally. I had to unplug the power supply and reconnect it before trying again, and I had to repeat this unplug/replug cycle twice before the machine finally allowed me to restart it.

Reproduction and isolation

I traced the current lock path in:

/usr/share/omarchy/shell/plugins/lock/Service.qml

idleBlankTimer has an interval of 5000 ms. Its blankProcess runs:

omarchy-brightness-keyboard off; omarchy-brightness-display off

omarchy-brightness-display off ultimately executes:

hyprctl dispatch 'hl.dsp.dpms({ action = "disable" })'

There was also an interesting behavioural clue. If I locked the machine and left it untouched, it crashed. On another test I reached the lock screen, deliberately entered two incorrect passwords and then the correct password, spending no more than about five seconds on each attempt. It did not crash.

This seems consistent with the lock service deliberately preventing runBlank() while authenticatingPassword is true.

Workaround

I changed only blankProcess in Service.qml from:

command: ["bash", "-c", "omarchy-brightness-keyboard off; omarchy-brightness-display off"]

to:

command: ["bash", "-c", "omarchy-brightness-keyboard off"]

I then logged out and back in so that the modified service would be loaded.

I locked the machine again and left it completely untouched for a couple of minutes. It remained stable. The lock screen continued to work normally; only automatic display power-off was removed.

Before this change the same test caused the machine to crash shortly after the display was blanked.

This therefore seems to isolate the failure quite strongly to the DPMS disable operation, rather than session locking or authentication itself.

Given that this occurs on Intel HD 520/i915, this also appears not to be specific to AMD GPUs.

aledeniz avatar Aug 20 '26 22:08 aledeniz

@filip-spaldon, thanks for sharing the debug matrix. I spoke to some folks on the DC side and they pointed out that IPS doesn't get enabled when running on only external displays. This conflicts with the results of your testing as disabling IPS (DC_DISABLE_IPS) seems to resolve the hang+reboot failures.

What I'd like to confirm now is whether your system is actually ever entering IPS in both the single monitor case (passing) and the base dual monitor case (failing). Can you share the output of sudo sh -c 'cat /sys/kernel/debug/dri/0000:*/amdgpu_dm_ips_status' before and after setting dpms off in both cases? For reference, our test systems never actually entered IPS despite multiple cycles of dpms on/off (expected behaviour) which may be why weren't able to reproduce the failures reported.

sudo sh -c 'cat /sys/kernel/debug/dri/0000:*/amdgpu_dm_ips_status'
IPS config: 6
Idle optimization: 0
Idle workqueue - enabled: 0
Idle workqueue - running: 0
entry counts: rcg=0 ips1=0 ips2=0
exit counts: rcg=0 ips1=0 ips2=0

Worth mentioning that we also tried the mixed refresh rate config (180hz + 60hz). Testing with kernel 7.1.0, or the earliest possible 7.1.X kernel available would also be helpful in narrowing down the window in which the failures were introduced.

@aledeniz, this does look similiar but I'd like to root out the amdgpu ISM/IPS path before lumping these two together.

harkgill-amd avatar Aug 21 '26 17:08 harkgill-amd

@harkgill-amd — I captured amdgpu_dm_ips_status across all three cases. The system does enter IPS on external-only, and in the failing case it enters IPS2 and never exits.

For reference, this box has no internal panel at all: DP-3 @ 2560x1440@170 and HDMI-A-1 @ 2560x2880@60, kernel 7.1.8.arch1-3, no dcdebugmask set for any of the runs below.

1. Idle, dual monitor, no dpms involved

After 13h51m of normal desktop use:

IPS config: 6
Idle optimization: 0
Idle workqueue - enabled: 0
Idle workqueue - running: 0
entry counts: rcg=0 ips1=1 ips2=1
exit counts: rcg=0 ips1=1 ips2=1

Not zero. One balanced IPS1/IPS2 cycle happened at some point during that boot. The counters carry no timestamp, so I can't say when — it may well have been during driver init.

2. Single monitor (HDMI-A-1 disabled first), dpms off — survives

Held for 120s, sampled every 5s. Idle workqueue - enabled goes to 1 on dpms off and stays there for the full two minutes, but running never leaves 0 and the counters never move off 1/1. So the idle path is armed and simply never fires.

3. Both monitors enabled, dpms off — hard reset

Polled every 50ms with an fsync per sample, so the last line was already on disk when the box went down. Collapsed to state changes:

10:31:29.603   dpms off issued
10:31:33.070   +3.47s   Idle workqueue - enabled: 1   entry 1/1  exit 1/1
10:31:33.126   +56ms    entry ips1=2 ips2=2           exit ips1=2 ips2=2
10:31:33.184   +58ms    entry ips1=3 ips2=3           exit ips1=2 ips2=2
               ... 2.42s in this state, samples still landing ...
10:31:35.602   log ends — hard reset

entry ips2=3 against exit ips2=2. It enters IPS2 a third time and never comes back out. The reset follows 2.4 seconds later.

What this changes

  • IPS is not staying disabled on an external-only configuration here, contrary to what the DC folks expect.
  • The difference between the surviving and failing case is not whether IPS gets armed — it is armed in both. It is whether the entry actually fires. Single monitor: armed, never fires in 120s. Dual monitor: fires within 60ms of arming, twice, and the second entry never returns.
  • The reset is not instantaneous with the IPS2 entry. The box sat in the unbalanced state for 2.4s, and debugfs reads kept succeeding throughout, so whatever ultimately trips the fabric happens after entry, not during it.
  • This gives the earlier DC_DISABLE_IPS result a mechanism: with 0x800 there is no entry to get stuck in.

On the kernel version

I can't do a bisect on this machine. On the Arch package archive the earliest 7.1.x available is 7.1.2.arch1-1 — 7.1.0 and 7.1.1 were never packaged. Happy to test 7.1.2 as a single downgrade if that data point is useful; just say the word.

Test harness and the raw logs are reproducible on request.

filip-spaldon avatar Aug 22 '26 08:08 filip-spaldon

Retested on 7.1.9.arch1-2: same failure, and this run is a cleaner data point than the one above because the counters started at zero.

Same box, no internal panel, DP-3 @ 2560x1440@170 + HDMI-A-1 @ 2560x2880@60, no dcdebugmask. Poller sampling amdgpu_dm_ips_status every 50ms with an fsync per line, collapsed to state changes:

19:19:38.135   baseline: entry rcg=0 ips1=0 ips2=0   exit rcg=0 ips1=0 ips2=0
                         Idle workqueue - enabled: 0
19:19:39.150   dpms off issued
19:19:42.618   +3.468s   Idle workqueue - enabled: 1   counters still 0/0
19:19:42.675   +57ms     entry ips1=2 ips2=1   exit ips1=1 ips2=1
19:19:42.733   +58ms     entry ips1=2 ips2=2   exit ips1=1 ips2=1
               ... 1.50s in this state, samples still landing ...
19:19:44.233   log ends — hard reset

The baseline was 0/0 after 16 minutes of normal dual-monitor desktop use. Not a single IPS entry. Then dpms off, and three entries inside 120ms. That removes the one caveat from my previous comment — the earlier ips1=1 ips2=1 could conceivably have come from driver init, but there is no such ambiguity here. On this boot, every IPS entry that ever happened was caused by dpms off.

Both counters end unbalanced: ips1 2 entries / 1 exit, ips2 2 entries / 1 exit. It enters and does not come back out.

Two things reproduce exactly against the 7.1.8 run:

  • the delay from dpms off to the idle workqueue arming is 3.468s here, 3.47s there;
  • once armed, the first entry follows within ~57ms, and the entry that never returns follows ~58ms after that.

The dwell in the stuck state before the reset varies — 1.50s here, 2.42s on 7.1.8 — and debugfs reads keep succeeding for its full duration in both.

So nothing changed between 7.1.8 and 7.1.9 for this bug.

filip-spaldon avatar Aug 25 '26 17:08 filip-spaldon

Thanks for the logs, the dpms off -> IPS enable -> IPS entry -> IPS exit failure pattern is clear. We've been able to repro the IPS enablement post dpms off locally but still haven't seen any clear IPS entry to reproduce your exact failure.

Right now, there are two main points which we're focusing on

  1. Whether IPS should be enabled at all post dpms off.
  2. Assuming IPS should be enabled, dmub fw should be blocking external displays from IPS entry

Both of these point to the same resolution for your hangs/reboots which is to prevent IPS entry in an external monitor only configuration. I'll keep this thread posted with our findings and share any relevant patches that might need to be tested. In the meantime, can you try to reproduce the issue on amd-staging-drm-next with your current DMUB FW 0x09004E00? This isn't far off of your 7.1.9 test but will help close out the gap between latest and confirm that we aren't fighting a backport.

harkgill-amd avatar Aug 25 '26 18:08 harkgill-amd

Tested on amd-staging-drm-next (HEAD 232bf7d54, 2026-08-06), DMUB FW unchanged at 0x09004E00. Kernel built from that tree with the config of my running Arch 7.1.9.

The hang/reset still reproduces. But the IPS behaviour around it is different, and I think the difference matters.

First run used my usual 50ms poll and caught almost nothing — the box was gone within one sample of the idle workqueue arming, counters still 0/0. So I re-ran with the sleep removed entirely, giving ~6ms resolution:

22:08:10.074   dpms off issued
22:08:13.520   +3.446s   Idle optimization: 1   Idle workqueue - enabled: 1
22:08:13.526   +6ms      Idle optimization: 0
22:08:13.559   +33ms     entry ips1=1 ips2=1   exit ips1=0 ips2=0
22:08:13.565   +6ms      entry ips1=1 ips2=1   exit ips1=1 ips2=1
22:08:13.611   +46ms     entry ips1=2 ips2=2   exit ips1=1 ips2=1
22:08:13.642   +31ms     entry ips1=2 ips2=2   exit ips1=2 ips2=2
22:08:13.681   +39ms     log ends — hard reset

Two complete, balanced IPS2 cycles. Entry and exit both counted, counters end at 2/2 and 2/2 — and the machine resets anyway, ~39ms after a successful exit.

Compare 7.1.9, where the counters ended unbalanced (entry ips2=2 / exit ips2=1) and stayed that way across dozens of samples for 1.5–2.4s before the reset. That was not a sampling artifact at 59ms; the exit genuinely never happened there.

So on this tree IPS exit appears to work, and the reset survives it. The unbalanced counters I reported earlier look like a symptom rather than the cause.

Two other things from this run:

  • Idle optimization: 1 is visible for the first time, for a single ~6ms sample right as the workqueue arms. My earlier polls were too coarse to ever catch it.
  • The delay from dpms off to the idle workqueue arming is 3.446s here, against 3.468s and 3.47s on 7.1.9/7.1.8. Three kernels, same number.

Caveat I want to state rather than have you infer: at this poll rate I am reading amdgpu_dm_ips_status essentially continuously, and I can't rule out that this perturbs the IPS path itself. The 7.1.9 numbers above were taken at the coarser 59ms rate, so the two are not a perfectly controlled comparison. If a fine-grained re-run on stock 7.1.9 would be useful for that comparison, say so and I'll do it — it is one more crash on my side, which is fine.

filip-spaldon avatar Aug 25 '26 20:08 filip-spaldon

@filip-spaldon, ISM timing parameters are managed by the amdgpu_dm_ism_config default_ism_config see here. With your setup consistently allowing IPS entry, we'd like to get some additional datapoints by tuning the parameters here. Could you please test for IPS entry with the same dpms off flow

filter_num_frames activation_num_delay_frames sso_num_frames
4 0 11
4 4 0
4 0 0

For each of the three cases/rows, we're looking to answer,

  1. Does the hard reset still happen?
  2. Is IPS enabled/entry count rising?

Whether IPS should be enabled at all w/ external displays in a dpms off case is still under discussion. In the meantime, this exercise will help provide valuable inputs there.

harkgill-amd avatar Aug 27 '26 14:08 harkgill-amd

Ran all three rows on amd-staging-drm-next (HEAD 232bf7d54), DMUB FW unchanged at 0x09004E00, plus the stock 4/4/11 baseline as a control. Dual external displays, no internal panel.

I also enabled the amdgpu_dm_ism_event / amdgpu_dm_ism_commit tracepoints and streamed trace_pipe to /var/tmp with an fsync per line, alongside the existing amdgpu_dm_ips_status poller at ~6 ms. That gives the ISM state transitions right up to the reset, since nothing buffered survives the fabric sync flood.

From the 11-frame SSO timer I can also label the CRTCs: CRTC 0 = HDMI-A-1 [email protected] (184.0 ms) and CRTC 1 = DP-3 2560x1440@170 (72.3 ms).

Results

row filter / delay / sso runs resets IPS entries dpms off → workqueue
baseline 4 / 4 / 11 1 1 2 entry / 2 exit 3.447 s
A 4 / 0 / 11 1 1 3 entry / 2 exit 3.440 s
B 4 / 4 / 0 3 1 only in the run that reset 3.438 – 3.449 s
C 4 / 0 / 0 5 0 none, in any run 3.430 – 3.451 s

Your two questions, per row:

  • A — reset yes. IPS enabled and entry count rising yes (3 entries, one more than baseline).
  • B — reset in 1 of 3. IPS entry only in the run that reset; the two survivors held dpms off with counters flat at 0.
  • C — reset in 0 of 5. IPS entry count stayed 0 in all five, all on one boot.

I want to be explicit that row B is why I repeated everything. Its first run survived with counters at zero, and reported alone it would have read as a fix. The third run reset. Row C's 5/5 is a stronger sample, not a proof.

The one correlation that holds everywhere

Across all 10 runs and 4 configurations:

IPS entry count  > 0  ->  hard reset   3 of 3
IPS entry count == 0  ->  survives     7 of 7

No run has reset without an IPS entry, and no run has entered IPS and survived. That also matches the single-monitor case, where the workqueue arms but never fires and the box has never reset. So the ISM knobs are affecting whether entry happens, not what happens once it does.

The ~3.44 s constant does not move

dpms off → Idle workqueue - enabled: 1 is 3.430 – 3.451 s in every run here, and was 3.468 s / 3.470 s on stock 7.1.9 and 7.1.8. None of the three knobs shift it. Whatever sets that delay is not ISM timing.

A hypothesis I formed and then falsified

Worth reporting because it was clean and it was wrong. After baseline, A and B (5 runs) the outcome was perfectly predicted by whether the idle workqueue armed before or after CRTC 1 reached OPTIMIZED_IDLE_SSO:

workqueue arms first  (-4, -4, -10 ms)  ->  entry -> reset   3/3
CRTC 1 gets there first     (+69 ms)    ->  no entry         2/2

Row C kills it. In all five row C runs the workqueue armed 197–260 ms before CRTC 1 reached OPTIMIZED_IDLE_SSO — the ordering that reset every time in the earlier configs — and nothing entered IPS.

What survives as description rather than mechanism: the three resets all had CRTC 1 arriving at OPTIMIZED_IDLE_SSO within ~10 ms of the workqueue arming. The seven survivals had it either 69 ms early (row B) or ~250 ms late (row C). With three resets that is a pattern, not a mechanism, and I am not claiming it as one.

The dpms'd CRTC ignores the knobs entirely

This one may be the most useful part. In every run and every configuration, the CRTC that was dpms'd off takes

FULL_POWER_RUNNING -> HYSTERESIS_WAITING -> OPTIMIZED_IDLE -> OPTIMIZED_IDLE_SSO

in a single microsecond, all on IMMEDIATE — including with activation_num_delay_frames = 4 and sso_num_frames = 11, where the same CRTC had honoured both timers to within 0.6 ms three seconds earlier (184.0 ms measured vs 183.4 ms for 11 frames at 59.97 Hz).

With no frames being scanned out there is nothing for frame-based timers to count, so they collapse to immediate. Only CRTC 1, still driving frames, honours them. That is why row A changed almost nothing: activation_num_delay_frames cannot affect a CRTC that is already taking the immediate path.

Baseline, dpms off at t=0:

+3.021  CRTC 1  OPTIMIZED_IDLE_SSO -> FULL_POWER_RUNNING  EXIT_IDLE_REQUESTED
+3.022  CRTC 0  OPTIMIZED_IDLE_SSO -> FULL_POWER_RUNNING  EXIT_IDLE_REQUESTED
+3.328  CRTC 1  FULL_POWER_RUNNING -> HYSTERESIS_WAITING
+3.337  CRTC 0  FULL_POWER_RUNNING -> HYSTERESIS_WAITING -> OPTIMIZED_IDLE -> OPTIMIZED_IDLE_SSO   (all IMMEDIATE, same us)
+3.379  CRTC 1  HYSTERESIS_WAITING -> OPTIMIZED_IDLE      TIMER_ELAPSED
+3.447  idle workqueue arms
+3.451  CRTC 1  OPTIMIZED_IDLE -> OPTIMIZED_IDLE_SSO      SSO_TIMER_ELAPSED
+3.489  entry ips1=1 ips2=1
+3.575  exit  ips1=2 ips2=2
+3.607  hard reset

After the workqueue arms, no further ISM events occur. The state machine is quiescent for the whole fatal window; the two IPS cycles run underneath it and then the box is gone.

Where that leaves it

Consistent with your own two focus points, and with your read that the resolution is to prevent IPS entry in an external-monitor-only configuration. Nothing here suggests ISM timing is the bug — it only changes how often the dc layer gets the chance to enter. Row B reset on its third run despite two clean ones, so I would not treat any timing-based change as a mitigation.

Happy to run more repeats of C, take C past 5 runs, re-run any row with a different hold duration, or test a patch whenever you have one. Each reset costs me a reboot and nothing else.

filip-spaldon avatar Aug 27 '26 19:08 filip-spaldon

@filip-spaldon, thanks again with the help testing!

Could you please try out the below patch? It introduces a flushing mechanism for ISM timers prior to DPMS off tearing down their respective streams preventing the streamless IPS path that was previously being executed.

ism-flush-fix.patch

harkgill-amd avatar Sep 03 '26 15:09 harkgill-amd