drm/i915/psr: Implement Wa_14015648006
authorJouni Högander <jouni.hogander@intel.com>
Wed, 29 Mar 2023 15:07:00 +0000 (18:07 +0300)
committerJouni Högander <jouni.hogander@intel.com>
Fri, 31 Mar 2023 05:43:09 +0000 (08:43 +0300)
commitcdb015a61190060094152ff8ff6c6f34b616c13c
tree9d5b007bf585956c858ddaa2655468c8795861f6
parent44222656ecff73974c637b6b9c9bb5415978ed08
drm/i915/psr: Implement Wa_14015648006

PSR WM optimization should be disabled based on any wm level being
disabled. Also same WA should be applied for ICL as well.

Bspec: 71580

v5:
 - Set in pre plane hook and clear in post plane hook
v4:
 - Handle mode change in psr enable/disable
 - Handle wm_level_disable changes separately in pre plane hook
v3:
 - Split patch
v2:
 - set/clear chicken bit in post_plane_update
 - apply for ICL as well

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230329150703.432072-4-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_display_types.h
drivers/gpu/drm/i915/display/intel_psr.c
drivers/gpu/drm/i915/display/skl_watermark.c