diff options
| author | Matt Atwood | 2025-11-05 11:06:53 -0300 |
|---|---|---|
| committer | Gustavo Sousa | 2025-11-06 18:22:34 -0300 |
| commit | 398fea05360291a77a5cc839cc5168059342722b (patch) | |
| tree | 43fca55e404478f4015260c5c8d029d0d6e6e49d /drivers/gpu | |
| parent | b28ba095f3d06e4a00c8e72aba047b92c3e6a746 (diff) | |
drm/i915/xe3p_lpd: Update bandwidth parameters
Bandwidth parameters for Xe3p_LPD are the same as for Xe3_LPD. Re-use
them.
Since handling for Xe3_LPD version 30.02 is more like a special case,
let's use a "== 3002" check for it inside the ">= 30" branch instead of
adding a new branch for version 35. That allows us to re-use the ">=
30" branch for Xe3p_LPD.
v2:
- Do not have a special case for ecc_impacting_de_bw, since there are
no specific instructions in Bspec for this scenario. (Matt Roper)
v3:
- Re-use the ">= 30" branch in the if-ladder. (Matt Roper)
Bspec: 68859
Signed-off-by: Matt Atwood <matthew.s.atwood@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patch.msgid.link/20251103-xe3p_lpd-basic-enabling-v3-4-00e87b510ae7@intel.com
Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
Diffstat (limited to 'drivers/gpu')
| -rw-r--r-- | drivers/gpu/drm/i915/display/intel_bw.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_bw.c b/drivers/gpu/drm/i915/display/intel_bw.c index 1358af209591..56fdde397bf8 100644 --- a/drivers/gpu/drm/i915/display/intel_bw.c +++ b/drivers/gpu/drm/i915/display/intel_bw.c @@ -802,10 +802,11 @@ void intel_bw_init_hw(struct intel_display *display) if (!HAS_DISPLAY(display)) return; - 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); + if (DISPLAY_VER(display) >= 30) { + if (DISPLAY_VERx100(display) == 3002) + tgl_get_bw_info(display, dram_info, &xe3lpd_3002_sa_info); + else + tgl_get_bw_info(display, dram_info, &xe3lpd_sa_info); } else if (DISPLAY_VERx100(display) >= 1401 && display->platform.dgfx) { if (dram_info->type == INTEL_DRAM_GDDR_ECC) xe2_hpd_get_bw_info(display, dram_info, &xe2_hpd_ecc_sa_info); |
