Re: [PATCH] drm/msm/dpu: change _dpu_plane_calc_bw() to use u64 to avoid overflow

2023-09-07 Thread Dmitry Baryshkov
On 08/09/2023 03:52, Abhinav Kumar wrote: On 9/7/2023 5:35 PM, Dmitry Baryshkov wrote: On 08/09/2023 03:32, Abhinav Kumar wrote: _dpu_plane_calc_bw() uses integer variables to calculate the bandwidth used during plane bandwidth calculations. However for high resolution displays this overflows

Re: [PATCH] drm/msm/dpu: change _dpu_plane_calc_bw() to use u64 to avoid overflow

2023-09-07 Thread Abhinav Kumar
On 9/7/2023 5:35 PM, Dmitry Baryshkov wrote: On 08/09/2023 03:32, Abhinav Kumar wrote: _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 Can we

Re: [PATCH] drm/msm/dpu: change _dpu_plane_calc_bw() to use u64 to avoid overflow

2023-09-07 Thread Dmitry Baryshkov
On 08/09/2023 03:32, Abhinav Kumar wrote: _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 Can we move the u64 conversion closer to the place wher

[PATCH] drm/msm/dpu: change _dpu_plane_calc_bw() to use u64 to avoid overflow

2023-09-07 Thread Abhinav Kumar
_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 ov