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)
commit75f664903d8672897333b86bb450335ec6486ad5
tree8dc48f3dbcb53b245ca4dfe250ecdd20a34978a1
parent859161b952a453b86362f168fadef72a8ba31a05
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