]> Gentwo Git Trees - linux/.git/commit
drm/i915/psr: Check PSR pause counter in __psr_wait_for_idle_locked
authorJouni Högander <jouni.hogander@intel.com>
Tue, 26 Aug 2025 07:44:57 +0000 (10:44 +0300)
committerJouni Högander <jouni.hogander@intel.com>
Wed, 27 Aug 2025 06:48:54 +0000 (09:48 +0300)
commit61a0ef5921d603e64beef12f4a3bf7bfde409f18
tree968e31da7b4bb94d5ed1b8f0a95f8f189c2b55af
parentc65ee1b1ffc68e274d6c1cebdf9df09407d180fd
drm/i915/psr: Check PSR pause counter in __psr_wait_for_idle_locked

PSR work is using __psr_wait_for_idle_locked to ensure PSR exit is
completed before continuing to PSR activation. __psr_wait_for_idle_locked
is unlocking PSR mutex which allows PSR disable/enable and PSR
pause/resume while PSR idle is being wait. PSR enable status is already
checked after locking again PSR mutex but PSR pause counter check is
missing. Due to this PSR work may continue to PSR activation even PSR is
paused.

Fix this by checking PSR pause counter in __psr_wait_for_idle_locked after
PSR mutex is locked again.

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Jeevan B <jeevan.b@intel.com>
Link: https://lore.kernel.org/r/20250826074457.1992524-1-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_psr.c