On Mon, Feb 17, 2025 at 12:35:25PM -0300, Gustavo Sousa wrote: > Bandwidth parameters for Xe3_LPD have been updated with respect to > previous display releases. Encode them into xe3lpd_sa_info and use that > new struct. > > Bspec: 68859 > Signed-off-by: Gustavo Sousa <gustavo.sousa@xxxxxxxxx> Matches the spec. Reviewed-by: Matt Roper <matthew.d.roper@xxxxxxxxx> > --- > 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 51b82979a8e4..32096d3c4b9f 100644 > --- a/drivers/gpu/drm/i915/display/intel_bw.c > +++ b/drivers/gpu/drm/i915/display/intel_bw.c > @@ -404,6 +404,13 @@ static const struct intel_sa_info xe2_hpd_sa_info = { > /* Other values not used by simplified algorithm */ > }; > > +static const struct intel_sa_info xe3lpd_sa_info = { > + .deburst = 32, > + .deprogbwlimit = 65, /* GB/s */ > + .displayrtids = 256, > + .derating = 10, > +}; > + > static int icl_get_bw_info(struct drm_i915_private *dev_priv, const struct intel_sa_info *sa) > { > struct intel_display *display = &dev_priv->display; > @@ -759,7 +766,9 @@ void intel_bw_init_hw(struct drm_i915_private *dev_priv) > if (!HAS_DISPLAY(display)) > return; > > - if (DISPLAY_VERx100(display) >= 1401 && display->platform.dgfx) > + if (DISPLAY_VER(display) >= 30) > + tgl_get_bw_info(dev_priv, &xe3lpd_sa_info); > + else if (DISPLAY_VERx100(display) >= 1401 && display->platform.dgfx) > xe2_hpd_get_bw_info(dev_priv, &xe2_hpd_sa_info); > else if (DISPLAY_VER(display) >= 14) > tgl_get_bw_info(dev_priv, &mtl_sa_info); > -- > 2.48.1 > -- Matt Roper Graphics Software Engineer Linux GPU Platform Enablement Intel Corporation