Re: [PATCH] drm/msm/dpu: use single DSC encoder when slice_count is 1

From: Dmitry Baryshkov

Date: Fri Nov 27 2026 - 15:07:41 EST


On Thu, Nov 19, 2026 at 01:47:58AM +0100, Alexandru Andrieș wrote:
> dpu_encoder_update_topology() currently selects 2 DSC encoders whenever
> catalog->dsc_count >= 2, even when the panel only uses a single DSC
> slice (dsc->slice_count == 1).
>
> A single slice cannot be split across two DSC encoders: merge mode
> halves the per-encoder input width below slice_width and, on DPU 7.0+,
> computes num_active_slice_per_enc = dsc->slice_count / 2 = 0 in
> dpu_hw_dsc_config_1_2(), dividing by zero in
> _dsc_calc_output_buf_max_addr().
>
> Require dsc->slice_count >= 2 before selecting 2 DSC encoders on a
> single interface so single-slice panels use 1 DSC encoder.
>
> Fixes: b6090ffb30f3 ("drm/msm/dpu: Fall back to a single DSC encoder (1:1:1) on small SoCs")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Alexandru Andrieș <alex.andries.aa@xxxxxxxxx>

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxxxxxxxx>


--
With best wishes
Dmitry