]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/alpm: Stop writing ALPM registers when PSR is enabled
authorJouni Högander <jouni.hogander@intel.com>
Tue, 13 May 2025 05:48:14 +0000 (08:48 +0300)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Wed, 14 May 2025 12:22:23 +0000 (15:22 +0300)
commiteff82fb0d266eeaea26f99780c5d8987974df2e9
tree154fa14c161a79fc2070573a864bff9a02d84adb
parent411c869ab8e46a7d51e65ad570376349b92a88f5
drm/i915/alpm: Stop writing ALPM registers when PSR is enabled

Currently we are seeing these on PTL:

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

These seem to be caused by writing ALPM registers while Panel Replay is
enabled.

Fix this by writing ALPM registers only when Panel Replay is about to be
enabled.

v4: improve comment on intel_psr_panel_replay_enable_sink call
v3: enable/disable ALPM from PSR code

Fixes: 172757acd6f6 ("drm/i915/lobf: Add lobf enablement in post plane update")
Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://lore.kernel.org/r/20250513054814.3702977-3-jouni.hogander@intel.com
(cherry picked from commit a8eb102ce0944a9de2a62aa9d195861b7f26668a)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/display/intel_alpm.c
drivers/gpu/drm/i915/display/intel_psr.c