drm/i915/mtl: Reuse adl-p DBUF calculations
authorRadhakrishna Sripada <radhakrishna.sripada@intel.com>
Thu, 18 Aug 2022 23:41:59 +0000 (16:41 -0700)
committerRadhakrishna Sripada <radhakrishna.sripada@intel.com>
Thu, 25 Aug 2022 21:54:46 +0000 (14:54 -0700)
Meteorlake uses a similar DBUF calculations as ADL-P.
Reuse the call flow for meteorlake.

Bspec: 49255

Original Author: Caz Yokoyama
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220818234202.451742-19-radhakrishna.sripada@intel.com
drivers/gpu/drm/i915/intel_pm.c

index 401b448..ac65b8c 100644 (file)
@@ -4928,7 +4928,7 @@ static u8 skl_compute_dbuf_slices(struct intel_crtc *crtc, u8 active_pipes, bool
 
        if (IS_DG2(dev_priv))
                return dg2_compute_dbuf_slices(pipe, active_pipes, join_mbus);
-       else if (IS_ALDERLAKE_P(dev_priv))
+       else if (DISPLAY_VER(dev_priv) >= 13)
                return adlp_compute_dbuf_slices(pipe, active_pipes, join_mbus);
        else if (DISPLAY_VER(dev_priv) == 12)
                return tgl_compute_dbuf_slices(pipe, active_pipes, join_mbus);