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: [email protected]
> Signed-off-by: Alexandru AndrieČ™ <[email protected]>
Reviewed-by: Dmitry Baryshkov <[email protected]>
--
With best wishes
Dmitry