mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
drm/i915/psr: drm_WARN_ON when activating disabled PSR
Add drm_WARN_ON for scenario where PSR is activated while it is disabled. 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-2-jouni.hogander@intel.com
This commit is contained in:
@@ -1787,6 +1787,8 @@ static void intel_psr_activate(struct intel_dp *intel_dp)
|
||||
|
||||
drm_WARN_ON(display->drm, intel_dp->psr.active);
|
||||
|
||||
drm_WARN_ON(display->drm, !intel_dp->psr.enabled);
|
||||
|
||||
lockdep_assert_held(&intel_dp->psr.lock);
|
||||
|
||||
/* psr1, psr2 and panel-replay are mutually exclusive.*/
|
||||
|
||||
Reference in New Issue
Block a user