Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/i915/dp: Use a mode's crtc_clock vs. clock during state computation

The encoder state computation should use the
drm_display_mode::crtc_clock member, instead of the clock member, the
former one possibly having a necessary adjustment wrt. to the latter
due to driver specific constraints. In practice the two values should
not differ at spots changed in this patch, since only MSO and 3D modes
would make them different, neither MSO or 3D relevant here, but still
use the expected crtc_clock version for consistency.

Reviewed-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patch.msgid.link/20251215192357.172201-6-imre.deak@intel.com

Imre Deak 1867564b 1f28404a

+3 -2
+3 -2
drivers/gpu/drm/i915/display/intel_dp.c
··· 2051 2051 continue; 2052 2052 } else { 2053 2053 if (!is_bw_sufficient_for_dsc_config(dsc_bpp_x16, link_rate, 2054 - lane_count, adjusted_mode->clock, 2054 + lane_count, 2055 + adjusted_mode->crtc_clock, 2055 2056 pipe_config->output_format, 2056 2057 timeslots)) 2057 2058 continue; ··· 2213 2212 int bpp_x16; 2214 2213 int ret; 2215 2214 2216 - dsc_joiner_max_bpp = get_max_compressed_bpp_with_joiner(display, adjusted_mode->clock, 2215 + dsc_joiner_max_bpp = get_max_compressed_bpp_with_joiner(display, adjusted_mode->crtc_clock, 2217 2216 adjusted_mode->hdisplay, 2218 2217 num_joined_pipes); 2219 2218 max_bpp_x16 = min(fxp_q4_from_int(dsc_joiner_max_bpp), limits->link.max_bpp_x16);