Skip to contentSkip to conversation

PTL eDP PSR2 SU / Panel Replay: engine parks in SU_STANDBY, panel never refreshed (Dell XPS 16 DA16260)

BUG Jake Steinman 2 participants 7 messages Sep 3 – Sep 23

lore
Share & tools
lore
#0 lore raw

Post as a drm/xe gitlab issue (component: display), then a short note to intel-gfx / intel-xe with the link.

Summary

Dell XPS 16 DA16260: Panther Lake, display ver 30.00 B0, xe driver, 8086:b080 / subsystem 1028:0dba, BIOS 1.8.2.
Panel: LG (sink OUI 00:22:b9), eDP 1.5 (DPCD 0x700 = 0x06), PSR cap 0x70 = 0x04 / 0x71 = 0x7b, PR cap 0xb0 = 0x07, ALPM cap 0x2e = 0x05, Y granularity 4. Mode 3200x2000@120, 858.01 MHz, htotal 3360, vtotal 2128, DSC 2 slices / 2 VDSC streams, 4 lanes x 2.7 Gbps.

PSR1 works. PSR2 selective update and eDP Panel Replay (every variant) leave the panel showing a stale frame while the compositor keeps committing at 120 Hz. This is the machine behind the eDP Panel Replay quirk in intel_quirks.c (XPS 14 DA14260 / XPS 16 DA16260); the quirk hides it for PR only, PSR2 has the same problem.

Windows on the same hardware uses PSR2/Panel Replay normally, so panel and link are capable.

Two separate findings

1. (fixed, patch posted) ALPM extended fast wake == IO buffer wake (11 == 11 lines on this mode) makes every link wake fail on this panel: DP_PSR_ERROR_STATUS Link CRC error relatches within ~25 ms for as long as PSR2 is active. Fast wake strictly greater than IO buffer wake fixes the CRC errors. Patch: "drm/i915/alpm: Keep the extended fast wake ahead of the IO buffer wake" (posted separately). The error-status ack patch "drm/i915/psr: clear the Panel Replay error status register" is already in drm-intel-next.

2. (this report) With the wake fixed, the PSR2/PR engine stops transmitting selective updates.

Observation (instrumented kernel)

EDP_PSR2_STATUS is sampled at every TRANS_PUSH frame-change request and printed as a histogram in i915_psr_status; the sink is polled over /dev/drm_dp_aux0.

Typical 30 s PSR2 run with animated content, ~4000 push requests:

PSR2 state at each push request: IDLE=18 CAPTURE=2 SLEEP=2 SU_STANDBY=4061
sink 0x2008 = 0x02 (active, display from RFB), 0x200a = 0x01 (last SDP: PSR_STATE only, never SU_VALID) sink 0x2006 / 0x2020 = 0 (no errors), EDP_PSR2_STATUS = 0x68200011, PSR2_CTL = 0x8a00c399 PSR2_MAN_TRK_CTL = 0x800007cf (partial frame, region 0..1999), LNL_SFF_CTL = 0
TRANS_PUSH = 0x80010000 between commits (PUSH_EN | PSR_PR_EN), SEND consumed every frame TRANS_VRR_CTL = 0xa400003c: fixed RR, vmin = vmax = flipline = 2128, guardband 60, crtc_vblank_start 2068, SCL 1

So the engine performs exactly the two captures after enable (frames before SU), then sits in SU_STANDBY for every following frame change. Panel Replay: same picture (additionally, with DSB enabled the commit rate drops to ~35/s; with xe.enable_dsb=0 commits run at 120/s and the panel is still frozen). Nothing is logged.

Ruled out by direct A/B on this machine (panel frozen every time, identical histogram)

Feature configuration:
- Early Transport off; SDP-prior-scanline indication off; PR without selective update (continuous full frame); PR with and without ALPM; PSR2 with ALPM disabled entirely (no ALPM_CTL, no DPCD 0x116)
- link rate 2.43 vs 2.7 Gbps; DSC 8 vs 10 bpc input; psr_safest_params; aux-less wake 20..58 lines
- DSB on and off; CURSURFLIVE frame change instead of TRANS_PUSH (sink then never enters PSR at all)
- AS SDP advertised-vs-transmitted mismatch fix for PR (DPCD 0x107 bit 6 vs PR_ALPM_CTL)
- all sink CRC / error config bits; DC states untouched (PR holds DC_OFF while vblank is enabled)

Timing generator / push (display 30 fixed-RR VRR TG), each verified in the registers before the run:
- TRANS_PUSH_EN cleared in fixed RR so the PSR push is a SW strobe as on LNL (TRANS_PUSH = 0x40010000): no change
- guardband forced to the full vblank, 127 lines (TRANS_VRR_CTL = 0xa400007f, delayed vblank == real vblank): no change
- push request scanline / SEND-still-pending / PUSH_EN instrumentation: SEND is never still pending at the next request, PUSH_EN always set

Sink / EDID:
- sink MSA_TIMING_PAR_IGNORE (DPCD 0x107 bit 7) cleared before PSR2 enable: no change (sink then reports 0x2008 = 0x04 instead of 0x02, still no SU_VALID)
- cold boot with the panel's native EDID (no VRR range, vrr.in_range = false), PSR2 enabled first thing after boot with no prior PSR2/PR history: frozen, so this is not register contamination from mode switches
- (an EDID override adding a 20-120 Hz block-0 range descriptor was in use in earlier runs; native and override timings are byte-identical, the panel carries the same range only in its DisplayID adaptive-sync block)

Code review against drm-tip 2026-09-02: no upstream change touches the PSR2/PR SU, TRANS_PUSH or VRR-TG path after 7.3-rc1; every per-commit register value (PSR2_MAN_TRK_CTL, PIPE_SRCSZ_ERLY_TPT, DSC SU params, SEL_FETCH_*, PSR2_CTL, ALPM_CTL) matches what the driver writes on LNL for the same geometry.

Same signature elsewhere

drm/xe #8924 (PTL PR without sel-fetch parks in SLEEP), #8930 (WCL XPS 13, same LG OUI 00:22:b9, PR SU stutter), #7682 (this machine), and the DA16260 report on intel-gfx with LG OUI 00:aa:01 (~5 fps, SLEEP / SU_STANDBY).

Recovery

PSR1 + modeset is often not enough; PSR fully off + DPMS cycle + output disable/enable + link retrain is.

What would help

Bspec guidance on what the PSR2/PR engine on Xe3 LPD needs to leave SU_STANDBY and start a selective update after a frame change in fixed-refresh VRR-TG mode with DSC (two VDSC streams): any ordering or timing requirement between PSR2_MAN_TRK_CTL / PIPE_SRCSZ_ERLY_TPT / plane SEL_FETCH writes and the push, any register the driver does not program on display 30, or a known Xe3 W/A. The engine ignores frame changes from both TRANS_PUSH and CURSURFLIVE, in every feature configuration and at every timing reachable from the driver, so this looks like a missing programming step rather than a wrong value.

Kernel: 7.3.0-rc1 (CachyOS) with the two patches above, the Dell PR quirk entry removed, and local debugfs instrumentation (histogram, push diagnostics, timing knobs). Scripts, logs and the instrumentation patch are available on request. The 30 s PSR2 log is appended below.

Appendix: 30 s PSR2 run on 7.3.0-rc1 (local instrumentation), no EDID override, cold boot

=== knob_step baseline [] PSR2 11:51:12
knobs: vrr_no_push_en_fixed_rr=N vrr_guardband_override=0 psr_msa_ignore_fix=N psr_no_alpm=N psr_no_trans_push=N
### STARTED: baseline for 30 s. Use the desktop now. 11:51:20
11:51:20 mode: PSR2 enabled (Early Transport) | 107=00 170=f1 1b0=00 116=03 2006=01 2020=00 2008=02 200a=01 PSR2_STATUS=0x68200011 TRANS_PUSH=0x80010000 | +5s 2006=00 2020=00 2008=02 200a=01 PSR2_STATUS=0x68202411 TRANS_PUSH=0x80010000
PSR2 state at each push request: IDLE=24 CAPTURE=3 SLEEP=7 SU_STANDBY=1004 DEEP_SLEEP=1
Push phase (active/vblank-before-delayed/after-delayed): 1039/0/0, SEND still pending: 0, PUSH_EN seen: 1039
+10s 2006=00 2020=00 2008=02 200a=01 PSR2_STATUS=0x68200011 TRANS_PUSH=0x80010000
PSR2 state at each push request: IDLE=24 CAPTURE=3 SLEEP=7 SU_STANDBY=1608 DEEP_SLEEP=1
Push phase (active/vblank-before-delayed/after-delayed): 1643/0/0, SEND still pending: 0, PUSH_EN seen: 1643
+15s 2006=00 2020=00 2008=02 200a=01 PSR2_STATUS=0x68200011 TRANS_PUSH=0x80010000
PSR2 state at each push request: IDLE=24 CAPTURE=3 SLEEP=7 SU_STANDBY=2211 DEEP_SLEEP=1
Push phase (active/vblank-before-delayed/after-delayed): 2246/0/0, SEND still pending: 0, PUSH_EN seen: 2246
+20s 2006=00 2020=00 2008=02 200a=01 PSR2_STATUS=0x68200011 TRANS_PUSH=0x80010000
PSR2 state at each push request: IDLE=24 CAPTURE=3 SLEEP=8 SU_STANDBY=2813 DEEP_SLEEP=1
Push phase (active/vblank-before-delayed/after-delayed): 2849/0/0, SEND still pending: 0, PUSH_EN seen: 2849
+25s 2006=00 2020=00 2008=02 200a=01 PSR2_STATUS=0x68200011 TRANS_PUSH=0x80010000
PSR2 state at each push request: IDLE=24 CAPTURE=3 SLEEP=8 SU_STANDBY=3415 DEEP_SLEEP=1
Push phase (active/vblank-before-delayed/after-delayed): 3451/0/0, SEND still pending: 0, PUSH_EN seen: 3451
+30s 2006=00 2020=00 2008=02 200a=01 PSR2_STATUS=0x68200011 TRANS_PUSH=0x80010000
PSR2 state at each push request: IDLE=24 CAPTURE=3 SLEEP=8 SU_STANDBY=4017 DEEP_SLEEP=1
Push phase (active/vblank-before-delayed/after-delayed): 4053/0/0, SEND still pending: 0, PUSH_EN seen: 4053
11:51:51 mode: PSR2 enabled (Early Transport) | 107=00 170=f1 1b0=00 116=03 2006=00 2020=00 2008=02 200a=01 PSR2_STATUS=0x30202411 TRANS_PUSH=0x80010000 |
knobs: vrr_no_push_en_fixed_rr=N vrr_guardband_override=0 psr_msa_ignore_fix=N psr_no_alpm=N psr_no_trans_push=N
11:51:59 mode: PSR1 enabled | 107=00 170=05 1b0=00 116=00 2006=00 2020=00 2008=00 200a=00 PSR2_STATUS=0x04000010 TRANS_PUSH=0x80010000 |
### ENDED: baseline. Back on PSR1. 11:51:59
=== done 11:51:59

#1 lore raw

Follow-up after a day of A/B runs, all negative, each verified in the registers before the run:

- TRANS_VBLANK.VBLANK_START programmed with the real vblank start instead of 0
- guardband forced to the full vblank (127 lines)
- PSR2_MAN_TRK_CTL in the pre-ADL-P layout (4-line units)
- ALPM_CTL with ALPM enable / keep FEC / AUX wake sleep hold set for PSR2
- IO buffer wake at the 5-line minimum
- PSR_DEBUG masking MEMUP only
- no PIPE_SRCSZ_ERLY_TPT / DSC SU parameter writes
- frames-before-SU 2, idle frames 6
- SW VSC DIP disabled with VSC_SELECT = 3
- sink: CRC verification bit set, MSA timing ignore cleared

Individually and all together: two captures after enable, then SU_STANDBY at every frame change, sink 0x200a never reports SU_VALID. Manual TRANS_PUSH SEND, CURSURFLIVE and LNL_SFF_CTL writes with the desktop idle are ignored as well, and PSR2_SU_STATUS stays at the block counts of the two entry captures.

I have exhausted what can be derived from the driver source. What would settle this is a register dump from a Panther Lake machine where PSR2 SU or Panel Replay works, taken while it is active: 0x60000-0x610ff, 0x70000-0x707ff, 0x420c0-0x420cf and 0x16fa00-0x16fa7f, plus DPCD 0x2008/0x200a. If anyone at Intel with a PTL eDP system (Windows or Linux) can share such a dump, or point at the Bspec condition the PSR2 engine needs to leave SU_STANDBY on Xe3 LPD with two VDSC streams, I will do the rest.

Instrumented kernel, scripts and all run logs are available on request.

#2 lore raw
Quoted 40 lines · Jake Steinman

Follow-up after a day of A/B runs, all negative, each verified in the registers
before the run:

- TRANS_VBLANK.VBLANK_START programmed with the real vblank start instead of 0
- guardband forced to the full vblank (127 lines)
- PSR2_MAN_TRK_CTL in the pre-ADL-P layout (4-line units)
- ALPM_CTL with ALPM enable / keep FEC / AUX wake sleep hold set for PSR2
- IO buffer wake at the 5-line minimum
- PSR_DEBUG masking MEMUP only
- no PIPE_SRCSZ_ERLY_TPT / DSC SU parameter writes
- frames-before-SU 2, idle frames 6
- SW VSC DIP disabled with VSC_SELECT = 3
- sink: CRC verification bit set, MSA timing ignore cleared

Individually and all together: two captures after enable, then SU_STANDBY at
every frame change, sink 0x200a never reports SU_VALID. Manual TRANS_PUSH
SEND, CURSURFLIVE and LNL_SFF_CTL writes with the desktop idle are ignored as
well, and PSR2_SU_STATUS stays at the block counts of the two entry captures.

I have exhausted what can be derived from the driver source. What would settle
this is a register dump from a Panther Lake machine where PSR2 SU or Panel
Replay works, taken while it is active: 0x60000-0x610ff, 0x70000- 0x707ff,
0x420c0-0x420cf and 0x16fa00-0x16fa7f, plus DPCD 0x2008/0x200a. If anyone at
Intel with a PTL eDP system (Windows or Linux) can share such a dump, or point
at the Bspec condition the PSR2 engine needs to leave SU_STANDBY on Xe3 LPD
with two VDSC streams, I will do the rest.

Quoted 2 lines

Instrumented kernel, scripts and all run logs are available on request.

Best to report this :
https://drm.pages.freedesktop.org/intel-docs/how-to-file-i915-bugs.html

BR,
Jouni Högander

#5 lore raw

Update, details and files on the gitlab issue:
https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/9119

Jouni posted an xe_reg_rw trace from a PTL system where Panel Replay works (1920x1200 panel, no DSC). I captured the same trace here and diffed the two. The PR enable sequence and every PSR, ALPM, VRR and push register match, apart from fields derived from the panel timing and link rate. What is left: this panel needs DSC (2 VDSC engines, 10 bpc input), his does not; DC6 is allowed on his system and blocked here by the compositor keeping vblank enabled; PSR_IMR.

Second finding: in Panel Replay, which uses the aux-less ALPM wake here, the sink latches the Link CRC error in DP_PANEL_REPLAY_ERROR_STATUS on every compositor commit (about 40 of 86 polls over 20 s, tracking a blinking cursor). It does not depend on the aux-less wake lines, the PORT_ALPM_CTL silence period, the LFPS half cycle or cycle count, PHY swing hold, sleep hold, or the sink's CRC verification bits. PSR1 polled the same way stays clean. So PR here is the same failed-wake resync loop PSR2 had before the fast wake patch, and PSR2 with that patch is the other half: clean link, no SU_VALID ever, engine parked in SU_STANDBY, frozen panel.

One driver observation: enabling PR through the i915_edp_psr_debug fastset does not program PORT_ALPM_CTL / PORT_ALPM_LFPS_CTL, since intel_alpm_port_configure() only runs from the DDI enable path.

Open question: is there a PTL system with a DSC eDP panel where PR or PSR2 selective update is confirmed working? The other two PTL reports (#8924, #8930) are 2880x1800 and 2560x1600 at 120 Hz panels.

Jake

#6 lore raw

This thread did not age well. I spent a week chasing a freeze that my own patch created, so please file most of what I wrote above under "learning experience". Here is what holds up.

Short version: PSR2 works here at stock, and Panel Replay works too once one bit is fixed (patch below).

PSR2: the SU_STANDBY park was self-inflicted. My fast wake patch (fast wake 12 lines, above the IO buffer wake of 11) stops every selective update after entry. Jouni was right that io >= fast is required. An unpatched CachyOS 7.3-rc4 kernel with xe.enable_psr=2 works fine here:
after each update the sink goes 2 -> 3 -> 2 with last SDP 0x29 (SU_VALID), a damage band at y=600..799 gets per-frame selective updates at ~120 and ~24 fps (one Link CRC flag and one SU per update), the sink test CRC is deterministic per image, and 15 s of desktop use gave 291 captures and no resync. The fast wake series is withdrawn in its own thread.

Panel Replay: my early "PR freezes in every variant" came from turning PR on through a psr_debug fastset, which never programs PORT_ALPM_CTL, so the sink was never woken. That was my test method, not the driver.

Also retracted: "PR is the same failed-wake resync loop". The Link CRC flag does not mean a failed wake: the sink stays in PR active (0x2022 = 0x02 in every poll) and never resyncs.

With the DA16260 quirk removed locally and PR entered by a full modeset, PR SU with Early Transport delivers every update: sink test CRC at ~120/s, CRCs identical to PSR2 for the same 125 images. The desktop stutters though. Not a freeze, just a low-framerate feel much like the original quirk reports, while the source flips at a steady 8.33 ms (1434 of 1437 intervals over 12 s).

The cause is one bit that source and sink disagree on. The sink supports async video timing in PR (0xb1 = 0x20), so the driver sets PR_ALPM_CTL[AS SDP Transmission in Active Disable] (PR_ALPM_CTL = 0x11) and stops sending the AS SDP in PR Active. Link training still sets FIXED_VTOTAL_AS_SDP_EN_IN_PR_ACTIVE (DPCD 0x107 = 0xc0; bit 7 is MSA_TIMING_PAR_IGNORE_EN, set because I run an EDID override with a 20-120 Hz range). So the sink is promised AS SDPs that never arrive. As far as I can tell nobody had spotted it: Panel Replay on these machines was quirked off before that bit was ever set (38a7e9bf69bd, v7.2), so the combination never ran here. It also means I can't say it explains the original quirk reports, only that today's symptom looks the same.

I tested both ways of making them agree, with a local debug switch and a full modeset each time:

- keep the AS SDP on (0x01 / 0xc0): smooth, but 0 DC5 entries in 30 s on a static VT (no compositor, 1 update/s)
- stop promising it (0x11 / 0x80): smooth (but see the PR entry issue below), 550 DC5 entries in the same test

On the KDE desktop neither mode reached DC5, because the compositor keeps vblank interrupts enabled; that is a separate issue.

The patch does the second, rebased on drm-tip including the AS SDP skip frames case:
https://lore.kernel.org/r/[email protected]

What is left on PTL: with the AS SDP off, the sink can come out of a PR enable locked to a bad phase. Here it showed up after the screen blanked on idle and came back (DPMS off/on, so a fresh PR enable):
straight from smooth to stuttery, no gradual drift. A manual 1 s AS SDP burst (PR_ALPM_CTL 0x11 -> 0x01 -> 0x11, written live) made it smooth again right away, and it stayed smooth with the AS SDP off again. My guess (not proven) is that without any AS SDP in PR Active the sink picks its refresh phase at entry and never re-aligns.

Xe3p_LPD (display version 35, Nova Lake) has a hardware way to keep a periodic AS SDP going: AS SDP skip frames, PR_ALPM_CTL bits 27:16, one AS SDP then N skipped frames. Upstream added it to reach the panel's minimum refresh, and it is behind a debugfs switch for now. It would also cover this case. My manual burst is a hand-rolled version of the same idea, and it worked. I also checked whether PTL has the field:
writing 0x0fff0001 and 0x00050001 to PR_ALPM_CTL both read back 0x00000001, so those bits appear not to be implemented on display version 30.

So a question for Intel: how would you like PTL handled? A short software AS SDP burst after each PR enable (and optionally now and then while PR is active), keeping the AS SDP on for such sinks (which costs DC5/DC6), or something else? Locally I'm about to test a burst about 2 s after every PR enable. I'm happy to implement and test whichever you prefer. The DA16260 quirk removal will follow once that is settled and tested.

One thing I still can't explain: in PSR2 and PR (never in PSR1), the sink sets the Link CRC error bit once per update (DP_PSR_ERROR_STATUS in PSR2, DP_PANEL_REPLAY_ERROR_STATUS in PR). Under PSR2 it latches even with no AUX traffic from me for 10 s. PSR stays enabled, so the driver evidently gets no IRQ_HPD for it, the sink never resyncs, and nothing is visible on screen. Is that expected for this TCON?

The gitlab issue has the same summary:
https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/9119

Thanks Jouni for the patience and the reference trace.

Jake