]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/display: Do not re-enable PSR after it was marked as not reliable
authorJosé Roberto de Souza <jose.souza@intel.com>
Fri, 11 Mar 2022 18:51:49 +0000 (10:51 -0800)
committerJosé Roberto de Souza <jose.souza@intel.com>
Tue, 15 Mar 2022 15:41:30 +0000 (08:41 -0700)
commitf9ef5fae9ed517ea12f67341fe935caea7ce1355
treec94f012ce9ebabf2f9cc524bc5278dd622c456da
parent8701d6ad261eeee835eb32d6aac4dfaa11d870b2
drm/i915/display: Do not re-enable PSR after it was marked as not reliable

If a error happens and sink_not_reliable is set, PSR should be disabled
for good but that is not happening.
It would be disabled by the function handling the PSR error but then
on the next fastset it would be enabled again in
_intel_psr_post_plane_update().
It would only be disabled for good in the next modeset where has_psr
will be set false.

v2:
- release psr lock before continue

Fixes: d7a1eaee1a3c ("drm/i915/display: Only keep PSR enabled if there is active planes")
Reported-by: Khaled Almahallawy <khaled.almahallawy@intel.com>
Reported-by: Charlton Lin <charlton.lin@intel.com>
Cc: Jouni Högander <jouni.hogander@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/20220311185149.110527-2-jose.souza@intel.com
drivers/gpu/drm/i915/display/intel_psr.c