Skip to content

Fix stale selective fetch enable bit

Nemesa Garg intel-gfx intel-xe sashiko-reviews stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Revert "drm/i915/display: Clear SEL_FETCH_PLANE_CTL on plane disable"drivers/gpu/drm/i915/display/intel_cursor.c drivers/gpu/drm/i915/display/skl_universal_plane.c+10 -200 replies
2/2drm/i915/psr: Clear stale sel fetch enable bits on sel fetch disabledrivers/gpu/drm/i915/display/intel_cursor.c drivers/gpu/drm/i915/display/intel_display_types.h drivers/gpu/drm/i915/display/intel_psr.c +1 more+26 -72 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchJouni Högander
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] Fix stale selective fetch enable bit

Selective fetch is dropped while pipe CRC is active, but the per-plane SEL_FETCH_PLANE_CTL()/SEL_FETCH_CUR_CTL() enable bits stay set in hardware. A plane disabled during that window never gets its bit cleared, since the disable path is guarded by enable_psr2_sel_fetch. When selective fetch returns, hardware keeps fetching for a plane that is gone and holds its DDB range.

Commit 7f1172a2ac0d ("drm/i915/display: Clear SEL_FETCH_PLANE_CTL on plane disable") fixed that by swapping the guard for HAS_PSR2_SEL_FETCH(), but that caused unclaimed register access on pipes driving HDMI.

Patch 1 reverts it. Patch 2 clears the bits at the point selective fetch is turned off instead. Atomic check has both the old and the new crtc state, so record the transition there and let the plane and cursor arm paths write the registers to 0 for that commit.

Nemesa Garg (2):
Revert "drm/i915/display: Clear SEL_FETCH_PLANE_CTL on plane disable" drm/i915/psr: Clear stale sel fetch enable bits on sel fetch disable

 drivers/gpu/drm/i915/display/intel_cursor.c   | 20 ++++++++---------
 .../drm/i915/display/intel_display_types.h    |  2 ++
 drivers/gpu/drm/i915/display/intel_psr.c      | 15 +++++++++++++
 .../drm/i915/display/skl_universal_plane.c    | 22 +++++++------------
 4 files changed, 34 insertions(+), 25 deletions(-)
Signature · 1 line
2.25.1