summaryrefslogtreecommitdiff
path: root/rust/helpers/task.c
diff options
context:
space:
mode:
authorJouni Högander <jouni.hogander@intel.com>2025-08-26 10:44:57 +0300
committerJouni Högander <jouni.hogander@intel.com>2025-08-27 09:48:54 +0300
commit61a0ef5921d603e64beef12f4a3bf7bfde409f18 (patch)
tree968e31da7b4bb94d5ed1b8f0a95f8f189c2b55af /rust/helpers/task.c
parentc65ee1b1ffc68e274d6c1cebdf9df09407d180fd (diff)
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
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions