]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/i915/psr: Block DC states on vblank enable when Panel Replay supported
authorJouni Högander <jouni.hogander@intel.com>
Wed, 20 May 2026 10:49:43 +0000 (13:49 +0300)
committerTvrtko Ursulin <tursulin@ursulin.net>
Tue, 26 May 2026 08:31:46 +0000 (09:31 +0100)
commit8bb9093df555f9e89fdbe1405118b11384c03e04
tree1847096fdf3e41bc194ec1da95dadcbe18ab71ed
parentd196136a988051173f68f91de0b5a1bd32122dd7
drm/i915/psr: Block DC states on vblank enable when Panel Replay supported

Currently we are blocking DC states only when Panel Replay is enabled on
vblank enable. It may happen that Panel Replay is getting enabled when
vblank is already enabled. Fix this by blocking DC states always if Panel
Replay is supported.

While at it take care of possible dual eDP case by looping all encoders
supporting PSR.

Fixes: 0c427ac78a1d ("drm/i915/psr: Add interface to notify PSR of vblank enable/disable")
Cc: <stable@vger.kernel.org> # v6.16+
Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Michał Grzelak <michal.grzelak@intel.com>
Link: https://patch.msgid.link/20260520104944.239797-1-jouni.hogander@intel.com
(cherry picked from commit eb5911f990554f7ce947dd53df00c114362e4465)
Signed-off-by: Tvrtko Ursulin <tursulin@ursulin.net>
drivers/gpu/drm/i915/display/intel_psr.c