Skip to content

Commit 777a028

Browse files
ideakjlahtine-intel
authored andcommitted
drm/i915/dp: Add missing slice count check during mode validation
Add the missing check for a valid slice count during mode validation when DSC is enabled. Cc: Vinod Govindapillai <vinod.govindapillai@intel.com> Fixes: 745395b ("drm/i915/dp: Add intel_dp_mode_valid_with_dsc()") Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com> Signed-off-by: Imre Deak <imre.deak@intel.com> Link: https://patch.msgid.link/20260216070421.714884-2-imre.deak@intel.com (cherry picked from commit ec4db42) Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
1 parent 57b85fd commit 777a028

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/gpu/drm/i915/display/intel_dp.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2557,6 +2557,9 @@ bool intel_dp_mode_valid_with_dsc(struct intel_connector *connector,
25572557
if (min_bpp_x16 <= 0 || min_bpp_x16 > max_bpp_x16)
25582558
return false;
25592559

2560+
if (dsc_slice_count == 0)
2561+
return false;
2562+
25602563
return is_bw_sufficient_for_dsc_config(intel_dp,
25612564
link_clock, lane_count,
25622565
mode_clock, mode_hdisplay,

0 commit comments

Comments
 (0)