ac68659c18
[ Upstream commit 95e681ca3b65e4ce3d2537b47672d787b7d30375 ] _dpu_plane_calc_bw() uses integer variables to calculate the bandwidth used during plane bandwidth calculations. However for high resolution displays this overflows easily and leads to below errors [dpu error]crtc83 failed performance check -7 Promote the intermediate variables to u64 to avoid overflow. changes in v2: - change to u64 where actually needed in the math Fixes: c33b7c0389e1 ("drm/msm/dpu: add support for clk and bw scaling for display") Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reported-by: Nia Espera <nespera@igalia.com> Closes: https://gitlab.freedesktop.org/drm/msm/-/issues/32 Tested-by: Nia Espera <nespera@igalia.com> Patchwork: https://patchwork.freedesktop.org/patch/556288/ Link: https://lore.kernel.org/r/20230908012616.20654-1-quic_abhinavk@quicinc.com Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com> Signed-off-by: Sasha Levin <sashal@kernel.org> |
||
---|---|---|
.. | ||
dpu_core_irq.c | ||
dpu_core_irq.h | ||
dpu_core_perf.c | ||
dpu_core_perf.h | ||
dpu_crtc.c | ||
dpu_crtc.h | ||
dpu_encoder.c | ||
dpu_encoder.h | ||
dpu_encoder_phys.h | ||
dpu_encoder_phys_cmd.c | ||
dpu_encoder_phys_vid.c | ||
dpu_formats.c | ||
dpu_formats.h | ||
dpu_hw_blk.c | ||
dpu_hw_blk.h | ||
dpu_hw_catalog.c | ||
dpu_hw_catalog.h | ||
dpu_hw_catalog_format.h | ||
dpu_hw_ctl.c | ||
dpu_hw_ctl.h | ||
dpu_hw_dspp.c | ||
dpu_hw_dspp.h | ||
dpu_hw_interrupts.c | ||
dpu_hw_interrupts.h | ||
dpu_hw_intf.c | ||
dpu_hw_intf.h | ||
dpu_hw_lm.c | ||
dpu_hw_lm.h | ||
dpu_hw_mdss.h | ||
dpu_hw_pingpong.c | ||
dpu_hw_pingpong.h | ||
dpu_hw_sspp.c | ||
dpu_hw_sspp.h | ||
dpu_hw_top.c | ||
dpu_hw_top.h | ||
dpu_hw_util.c | ||
dpu_hw_util.h | ||
dpu_hw_vbif.c | ||
dpu_hw_vbif.h | ||
dpu_hwio.h | ||
dpu_io_util.c | ||
dpu_io_util.h | ||
dpu_kms.c | ||
dpu_kms.h | ||
dpu_mdss.c | ||
dpu_plane.c | ||
dpu_plane.h | ||
dpu_rm.c | ||
dpu_rm.h | ||
dpu_trace.h | ||
dpu_vbif.c | ||
dpu_vbif.h | ||
msm_media_info.h |