]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/xe3lpd: Update bandwidth parameters for display version 30.02
authorMatt Atwood <matthew.s.atwood@intel.com>
Fri, 13 Jun 2025 19:31:41 +0000 (01:01 +0530)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 18 Jun 2025 21:58:09 +0000 (14:58 -0700)
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.atwood@intel.com>
Signed-off-by: Dnyaneshwar Bhadane <dnyaneshwar.bhadane@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://lore.kernel.org/r/20250613193146.3549862-5-dnyaneshwar.bhadane@intel.com
drivers/gpu/drm/i915/display/intel_bw.c

index 6c2ab2e0dc91e6498c8a192ec35454bbe0aad0da..a515241d80dbd23cb9a7840c35d413848c5e6236 100644 (file)
@@ -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)