drm/i915/adl_p: Allow underrun recovery when possible
authorMatt Roper <matthew.d.roper@intel.com>
Tue, 27 Jul 2021 14:50:56 +0000 (07:50 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 28 Jul 2021 04:36:43 +0000 (21:36 -0700)
commitba3b049f477436b7e4bb19c293c78c9068582d54
treef66f77f261e1e2cd237e8f9a0c712d248e31efc6
parent84030adb9e27d202a66022488bf0349a8bd45213
drm/i915/adl_p: Allow underrun recovery when possible

ADL_P requires that we disable underrun recovery when downscaling (or
using the scaler for YUV420 pipe output), using DSC, or using PSR2.
Otherwise we should be able to enable the underrun recovery.

On DG2 we need to keep underrun recovery disabled at all times, but the
chicken bit in PIPE_CHICKEN has an inverted meaning (it's an enable bit
instead of disable).

v2:
 - Reverse the condition (clear the disable bit when supported, set
   disable bit when not supported).

Bspec: 50351
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210727145056.2049720-1-matthew.d.roper@intel.com
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/i915_reg.h