Skip to content

ALPM rework and fixes

Jouni Högander intel-gfx intel-xe 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 4 repliesIn review
  2. v32 patches 5 repliesSuperseded
  3. v23 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches0 repliesSuperseded

Changes in v4 from the cover letter

- do not add kerneldoc comments
- improve comment on intel_psr_panel_replay_enable_sink call

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/i915/alpm: Make intel_alpm_enable_sink available for PSRdrivers/gpu/drm/i915/display/intel_alpm.c drivers/gpu/drm/i915/display/intel_alpm.h+4 -20 replies
2/2drm/i915/alpm: Stop writing ALPM registers when PSR is enableddrivers/gpu/drm/i915/display/intel_alpm.c drivers/gpu/drm/i915/display/intel_psr.c+12 -52 replies

Reviews trailers per patch

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

PatchSuraj Kandpal
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 v4 thread

Cover letter [PATCH v4 0/2] ALPM rework and fixes

Currently there are couple of problems in ALPM implelementation:

1. ALPM registers are written while PSR/ Panel Replay is kept enabled. This is causing following error messages on PTL:

"xe 0000:00:02.0: [drm] *ERROR* Timeout waiting for DDI BUF A to get active".

This is fixed by enabling ALPM only once when needed.

2. ALPM is never disabled when used by PSR/Panel Replay. I.e. if PSR is once enabled ALPM is left enabled for good when PSR is disabled. This is fixed by using intel_alpm_disable and calling it for both cases: LOBF disable and PSR disable.

This patch set is addressing these.

v4:
- do not add kerneldoc comments
- improve comment on intel_psr_panel_replay_enable_sink call
v3:
- enable/disable ALPM from PSR code
v2:
- continue using rmw when disabling ALPM
- take into account disabled hw in old_crtc_state

Jouni Högander (2):
drm/i915/alpm: Make intel_alpm_enable_sink available for PSR drm/i915/alpm: Stop writing ALPM registers when PSR is enabled

 drivers/gpu/drm/i915/display/intel_alpm.c |  8 ++++----
 drivers/gpu/drm/i915/display/intel_alpm.h |  2 ++
 drivers/gpu/drm/i915/display/intel_psr.c  | 13 ++++++++++---
 3 files changed, 16 insertions(+), 7 deletions(-)
Signature · 1 line
2.43.0