]> www.infradead.org Git - users/hch/misc.git/commitdiff
drm/i915/psr: Check pause counter before continuing to PSR activation
authorJouni Högander <jouni.hogander@intel.com>
Fri, 15 Aug 2025 08:45:34 +0000 (11:45 +0300)
committerJouni Högander <jouni.hogander@intel.com>
Thu, 21 Aug 2025 10:40:31 +0000 (13:40 +0300)
Currently intel_psr_work is re-activating PSR even when pause_counter > 0
which is incorrect. Fix this by checking pause_counter before re-activating
PSR.

Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/14822
Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Link: https://lore.kernel.org/r/20250815084534.1637030-4-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_psr.c

index 86836aa614136b8de1eaa53a46b0c959c888e8e8..465f12c39330df21382c78553191eefce9faa072 100644 (file)
@@ -3216,6 +3216,9 @@ static void intel_psr_work(struct work_struct *work)
                goto unlock;
        }
 
+       if (intel_dp->psr.pause_counter)
+               goto unlock;
+
        /*
         * We have to make sure PSR is ready for re-enable
         * otherwise it keeps disabled until next full enable/disable cycle.