(subset) [PATCH] drm/msm/dpu: Don't leak bits_per_component into random DSC_ENC fields
Abhinav Kumar
quic_abhinavk at quicinc.com
Mon Feb 17 22:38:23 UTC 2025
On Tue, 11 Feb 2025 00:19:32 +0100, Marijn Suijten wrote:
> What used to be the input_10_bits boolean - feeding into the lowest
> bit of DSC_ENC - on MSM downstream turned into an accidental OR with
> the full bits_per_component number when it was ported to the upstream
> kernel.
>
> On typical bpc=8 setups we don't notice this because line_buf_depth is
> always an odd value (it contains bpc+1) and will also set the 4th bit
> after left-shifting by 3 (hence this |= bits_per_component is a no-op).
>
> [...]
Applied to msm-fixes, thanks!
[1/1] drm/msm/dpu: Don't leak bits_per_component into random DSC_ENC fields
https://gitlab.freedesktop.org/drm/msm/-/commit/144429831f44
Best regards,
--
Abhinav Kumar <quic_abhinavk at quicinc.com>
More information about the Freedreno
mailing list