On 2/16/2026 12:34 PM, Imre Deak wrote:
Add the missing check for a valid slice count during
mode validation when DSC is enabled.

Cc: Vinod Govindapillai <[email protected]>
Fixes: 745395b51c26 ("drm/i915/dp: Add intel_dp_mode_valid_with_dsc()")
Signed-off-by: Imre Deak <[email protected]>

Reviewed-by: Ankit Nautiyal <[email protected]>


---
  drivers/gpu/drm/i915/display/intel_dp.c | 3 +++
  1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/i915/display/intel_dp.c 
b/drivers/gpu/drm/i915/display/intel_dp.c
index b5fe7d8ba5864..d1caa20370123 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -2595,6 +2595,9 @@ bool intel_dp_mode_valid_with_dsc(struct intel_connector 
*connector,
        if (min_bpp_x16 <= 0 || min_bpp_x16 > max_bpp_x16)
                return false;
+ if (dsc_slice_count == 0)
+               return false;
+
        return is_bw_sufficient_for_dsc_config(intel_dp,
                                               link_clock, lane_count,
                                               mode_clock, mode_hdisplay,

Reply via email to