On Wed, Jan 21, 2026 at 09:23:19AM +0530, Ankit Nautiyal wrote: > Separate out function to get the hdisplay limit for a given platform. > > Signed-off-by: Ankit Nautiyal <[email protected]> > --- > drivers/gpu/drm/i915/display/intel_dp.c | 11 +++++++---- > 1 file changed, 7 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/i915/display/intel_dp.c > b/drivers/gpu/drm/i915/display/intel_dp.c > index c0a8ffac6312..fc7d48460a52 100644 > --- a/drivers/gpu/drm/i915/display/intel_dp.c > +++ b/drivers/gpu/drm/i915/display/intel_dp.c > @@ -1371,6 +1371,12 @@ intel_dp_mode_valid_downstream(struct intel_connector > *connector, > return MODE_OK; > } > > +static > +int intel_dp_hdisplay_limit(struct intel_display *display)
Nit: intel_dp_max_hdisplay_per_pipe()? Reviewed-by: Imre Deak <[email protected]> > +{ > + return DISPLAY_VER(display) >= 30 ? 6144 : 5120; > +} > + > static > bool intel_dp_needs_joiner(struct intel_dp *intel_dp, > struct intel_connector *connector, > @@ -1378,17 +1384,14 @@ bool intel_dp_needs_joiner(struct intel_dp *intel_dp, > int num_joined_pipes) > { > struct intel_display *display = to_intel_display(intel_dp); > - int hdisplay_limit; > > if (!intel_dp_has_joiner(intel_dp)) > return false; > > num_joined_pipes /= 2; > > - hdisplay_limit = DISPLAY_VER(display) >= 30 ? 6144 : 5120; > - > return clock > num_joined_pipes * display->cdclk.max_dotclk_freq || > - hdisplay > num_joined_pipes * hdisplay_limit; > + hdisplay > num_joined_pipes * intel_dp_hdisplay_limit(display); > } > > int intel_dp_num_joined_pipes(struct intel_dp *intel_dp, > -- > 2.45.2 >
