From: Matt Atwood <matthew.s.atw...@intel.com>

Bandwidth parameters for WCL have been updated with respect to
previous display releases. Encode them into xe3lpd_3002_sa_info and use
that new struct.

-v2: Resolve conflict to apply patch.

Bspec: 68859
Signed-off-by: Matt Atwood <matthew.s.atw...@intel.com>
Signed-off-by: Dnyaneshwar Bhadane <dnyaneshwar.bhad...@intel.com>
Reviewed-by: Matt Roper <matthew.d.ro...@intel.com>
---
 drivers/gpu/drm/i915/display/intel_bw.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/display/intel_bw.c 
b/drivers/gpu/drm/i915/display/intel_bw.c
index 6c2ab2e0dc91..a515241d80db 100644
--- a/drivers/gpu/drm/i915/display/intel_bw.c
+++ b/drivers/gpu/drm/i915/display/intel_bw.c
@@ -420,6 +420,13 @@ static const struct intel_sa_info xe3lpd_sa_info = {
        .derating = 10,
 };
 
+static const struct intel_sa_info xe3lpd_3002_sa_info = {
+       .deburst = 32,
+       .deprogbwlimit = 22, /* GB/s */
+       .displayrtids = 256,
+       .derating = 10,
+};
+
 static int icl_get_bw_info(struct intel_display *display,
                           const struct dram_info *dram_info,
                           const struct intel_sa_info *sa)
@@ -771,7 +778,9 @@ void intel_bw_init_hw(struct intel_display *display)
        if (!HAS_DISPLAY(display))
                return;
 
-       if (DISPLAY_VER(display) >= 30)
+       if (DISPLAY_VERx100(display) >= 3002)
+               tgl_get_bw_info(display, dram_info, &xe3lpd_3002_sa_info);
+       else if (DISPLAY_VER(display) >= 30)
                tgl_get_bw_info(display, dram_info, &xe3lpd_sa_info);
        else if (DISPLAY_VERx100(display) >= 1401 && display->platform.dgfx &&
                 dram_info->type == INTEL_DRAM_GDDR_ECC)
-- 
2.34.1

Reply via email to