]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/display/psr: Unset enable_psr2_sel_fetch if other checks in intel_psr2_confi...
authorJosé Roberto de Souza <jose.souza@intel.com>
Thu, 14 Apr 2022 15:11:17 +0000 (08:11 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Apr 2022 12:38:54 +0000 (14:38 +0200)
commit4275db6a824305b4e72eefd23391e268bf05cd8c
tree7c831ca695a0d6e4893fa09eac55fa300de5bb30
parent2d727962bdbc4ff96cb5e4f28e8d40a7d356a59e
drm/i915/display/psr: Unset enable_psr2_sel_fetch if other checks in intel_psr2_config_valid() fails

[ Upstream commit 3df13ef08f089e8f3209de5f9f6b16f60c327dd4 ]

If any of the PSR2 checks after intel_psr2_sel_fetch_config_valid()
fails, enable_psr2_sel_fetch will be kept enabled causing problems
in the functions that only checks for it and not for has_psr2.

So here moving the check that do not depend on enable_psr2_sel_fetch
and for the remaning ones jumping to a section that unset
enable_psr2_sel_fetch in case of failure to support PSR2.

Fixes: 65b1a896807d ("drm/i915: Initial implementation of PSR2 selective fetch")
Cc: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220414151118.21980-1-jose.souza@intel.com
(cherry picked from commit 0bbc0a65f2ad0f650324508f5592a577162be93e)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/i915/display/intel_psr.c