diff options
| author | Arnd Bergmann <[email protected]> | 2019-06-17 12:51:04 +0000 |
|---|---|---|
| committer | Liviu Dudau <[email protected]> | 2019-06-21 09:46:40 +0000 |
| commit | 0b044a999e86ed1aa8791f8bd11a6d7083b33438 (patch) | |
| tree | 157dc8fc775f90c09d9fc9baf8e1fbb4afab623f /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | |
| parent | drm/komeda: Correct printk format specifier for "size_t" (diff) | |
| download | kernel-0b044a999e86ed1aa8791f8bd11a6d7083b33438.tar.gz kernel-0b044a999e86ed1aa8791f8bd11a6d7083b33438.zip | |
drm/komeda: fix 32-bit komeda_crtc_update_clock_ratio
clang points out a bug in the clock calculation on 32-bit, that leads
to the clock_ratio always being zero:
drivers/gpu/drm/arm/display/komeda/komeda_crtc.c:31:36: error: shift count >= width of type [-Werror,-Wshift-count-overflow]
aclk = komeda_calc_aclk(kcrtc_st) << 32;
Move the shift into the division to make it apply on a 64-bit
variable. Also use the more expensive div64_u64() instead of div_u64()
to account for pxlclk being a 64-bit integer.
Fixes: 1f7f9ab7900e ("drm/komeda: Add engine clock requirement check for the downscaling")
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: James Qian Wang (Arm Technology China) <[email protected]>
Signed-off-by: Liviu Dudau <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c')
0 files changed, 0 insertions, 0 deletions
