]> git.itanic.dy.fi Git - linux-stable/commit
drm/i915/psr: Disable PSR before disable pipe
authorJosé Roberto de Souza <jose.souza@intel.com>
Thu, 14 Jul 2022 15:07:55 +0000 (08:07 -0700)
committerJosé Roberto de Souza <jose.souza@intel.com>
Mon, 18 Jul 2022 13:53:38 +0000 (06:53 -0700)
commit031a2fea0482965175ad20adea44bdfe6ed817aa
treee900414df1aa8a15cfac823fff28c273f52c9397
parentad444123a4a1d2944bd72fc877af9aabef01b889
drm/i915/psr: Disable PSR before disable pipe

The issue here was on for_each_intel_encoder_mask_with_psr() over the
new_crtc_state encoder mask, so if the CRTC was being disabled mask
would be zero and it would not have any chance to disable PSR.

So here doing for_each_intel_encoder_mask_with_psr() over the
old_crtc_state encoder mask and then using the new_crtc_state to
check if PSR needs to be disabled.

Cc: Jouni Högander <jouni.hogander@intel.com>
Cc: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220714150755.154985-2-jose.souza@intel.com
drivers/gpu/drm/i915/display/intel_psr.c