Skip to content

drm/amd/display: fix Panel Replay artifacts on DCN 3.14 (Phoenix/Hawk Point)

Sbenazar amd-gfx stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest4 patches 0 repliesNew

Changes since v1 from the cover letter

- Patch 1: expanded commit message to mention PSR impact too (code unchanged).
- Patch 2: rewritten. Instead of piggybacking on psr_dirty_rects_change _timestamp_ns, add a dedicated replay_disabled_timestamp_ns field to struct replay_settings. The re-enable guard in amdgpu_dm_enable_self_refresh() now checks the replay timestamp separately from the PSR timestamp, so neither feature can interfere with the other's timing.
- Patch 3: drop redundant NULL check on stream — the caller already guarantees it is non-NULL (code simplified).
- Patch 4: new. Add the same 500ms timestamp guard to the vblank_control_worker path (amdgpu_dm_crtc_set_panel_sr_feature), which was unprotected and could re-enable Replay too soon when vblank events were toggled during animations.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drm/amd/display: reset sr_skip_count on non-fast updatesdrivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c+6 -00 replies
2/4drm/amd/display: add replay-specific timestamp for re-enable guarddrivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c drivers/gpu/drm/amd/display/dc/dc_types.h+13 -30 replies
3/4drm/amd/display: force full frame updates for Replay on DCN 3.14drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c+10 -00 replies
4/4drm/amd/display: add timestamp guard to vblank_control_worker for Replaydrivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c+8 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/4] drm/amd/display: fix Panel Replay artifacts on DCN 3.14 (Phoenix/Hawk Point)

Changes since v1:
- Patch 1: expanded commit message to mention PSR impact too (code unchanged).
- Patch 2: rewritten. Instead of piggybacking on psr_dirty_rects_change _timestamp_ns, add a dedicated replay_disabled_timestamp_ns field to struct replay_settings. The re-enable guard in amdgpu_dm_enable_self_refresh() now checks the replay timestamp separately from the PSR timestamp, so neither feature can interfere with the other's timing.
- Patch 3: drop redundant NULL check on stream — the caller already guarantees it is non-NULL (code simplified).
- Patch 4: new. Add the same 500ms timestamp guard to the vblank_control_worker path (amdgpu_dm_crtc_set_panel_sr_feature), which was unprotected and could re-enable Replay too soon when vblank events were toggled during animations.

This series fixes visual artifacts caused by Panel Replay on AMD Phoenix APUs (Radeon 780M, DCN 3.14). The artifacts appear as brief green/purple horizontal bands during screen updates — workspace switches, browser scrolling, window management. They are widely reported across vendors (Framework 16, Lenovo T14, HONOR MagicBook) and tracked as drm/amd#5087.

Root cause analysis identified two driver bugs, one missing guard, and one firmware issue:

1. sr_skip_count is never reset after non-fast updates, allowing Panel Replay (and PSR) to be re-enabled on the very first fast commit following a full-frame update that disabled it. During compositor animations (e.g., GNOME workspace switch), this causes Replay to reactivate mid-animation.

2. The 500ms re-enable guard in amdgpu_dm_enable_self_refresh() uses psr_dirty_rects_change_timestamp_ns, which is only updated in the PSR-SU code path. For Panel Replay, this timestamp is never set, so the guard always passes — making it ineffective.

3. The vblank_control_worker path (amdgpu_dm_crtc_set_panel_sr_feature) can re-enable Panel Replay without any timestamp guard at all.

4. The DMCUB firmware on DCN 3.14 produces corruption during selective updates within FreeSync Replay.

Patches 1–2 fix the timing bugs, patch 4 closes the vblank worker re-enable hole, and patch 3 works around the firmware issue by forcing full-frame dirty rects on DCN 3.14.

With all four patches, Phoenix/Hawk Point systems can use Panel Replay without artifacts and without the amdgpu.dcdebugmask=0x410 workaround that currently disables Replay entirely.

Tested-on: HONOR MagicBook Art 14 (FMI-XX), AMD Ryzen 7 8845HS,

           Radeon 780M, Fedora 43, kernel 6.19.9

Sbenazar (4):
drm/amd/display: reset sr_skip_count on non-fast updates drm/amd/display: add replay-specific timestamp for re-enable guard drm/amd/display: force full frame updates for Replay on DCN 3.14 drm/amd/display: add timestamp guard to vblank_control_worker for
Replay

 .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c     | 32 +++++++++++++++++++--
 .../drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c    |  8 ++++++
 drivers/gpu/drm/amd/display/dc/dc_types.h          |  2 ++
 3 files changed, 40 insertions(+), 2 deletions(-)

--
2.48.1