]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/display: Ensure PSR gets disabled if no encoders in new state
authorJouni Högander <jouni.hogander@intel.com>
Mon, 11 Jul 2022 11:17:50 +0000 (14:17 +0300)
committerStanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Tue, 12 Jul 2022 10:09:24 +0000 (13:09 +0300)
commit0f410888d9292bccea101fd2e0e350d6bb44c758
tree8dc48f3dbcb53b245ca4dfe250ecdd20a34978a1
parentbe987c15af4828ef3546ecbac507287d1e3f3d1a
drm/i915/display: Ensure PSR gets disabled if no encoders in new state

Currently PSR is left enabled when all planes are disabled if there
is no attached encoder in new state. This seems to be causing FIFO
underruns.

Fix this by checking if encoder exists in new crtc state and disable
PSR if it doesn't.

v2: Unify disable logic with existing

Cc: Mika Kahola <mika.kahola@intel.com>
Reported-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220711111750.881552-1-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_psr.c