]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1d02c3f8a101e1d89ea99e454dd766f235ce2eab
treef66f77f261e1e2cd237e8f9a0c712d248e31efc6
parent6fa2b225e974666bd53c45cdf07bf07570195182
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