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_mst: Simplify handling the single-bpp case during state computation

A follow-up change wants to skip invalid bpps in the bpp select loop of
a stream state computation. To allow for that, using the usual
'continue' statement in the loop, change the way the single-bpp range is
handled.

v2: Fix typo in commit message. (Ankit)

Cc: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Luca Coelho <luciano.coelho@intel.com>
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://lore.kernel.org/r/20250509180340.554867-3-imre.deak@intel.com

+6 -4
+6 -4
drivers/gpu/drm/i915/display/intel_dp_mst.c
··· 263 263 fxp_q4_to_frac(max_bpp_x16) || 264 264 fxp_q4_to_frac(bpp_step_x16))); 265 265 266 + if (!bpp_step_x16) { 267 + /* Allow using zero step only to indicate single try for a given bpp. */ 268 + drm_WARN_ON(display->drm, min_bpp_x16 != max_bpp_x16); 269 + bpp_step_x16 = 1; 270 + } 271 + 266 272 if (is_mst) { 267 273 mst_state = drm_atomic_get_mst_topology_state(state, &intel_dp->mst.mgr); 268 274 if (IS_ERR(mst_state)) ··· 392 386 393 387 break; 394 388 } 395 - 396 - /* Allow using zero step to indicate one try */ 397 - if (!bpp_step_x16) 398 - break; 399 389 } 400 390 401 391 if (slots < 0) {