diff options
author | Mario Kleiner <mario.kleiner.de@gmail.com> | 2017-06-13 07:17:10 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-06-14 15:25:05 +0200 |
commit | bea10413934dcf98cb9b2dfcdc56e1d28f192897 (patch) | |
tree | fb212e9eb3c8a951b71dbcbd292fe4d633b9a57b /drivers/gpu/drm/radeon/evergreen.c | |
parent | drm/radeon: fix "force the UVD DPB into VRAM as well" (diff) | |
download | linux-bea10413934dcf98cb9b2dfcdc56e1d28f192897.tar.xz linux-bea10413934dcf98cb9b2dfcdc56e1d28f192897.zip |
drm/amdgpu: Fix overflow of watermark calcs at > 4k resolutions.
Commit d63c277dc672e0
("drm/amdgpu: Make display watermark calculations more accurate")
made watermark calculations more accurate, but not for > 4k
resolutions on 32-Bit architectures, as it introduced an integer
overflow for those setups and resolutions.
Fix this by proper u64 casting and division.
Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Reported-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Fixes: d63c277dc672 ("drm/amdgpu: Make display watermark calculations more accurate")
Cc: Ben Hutchings <ben.hutchings@codethink.co.uk>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/evergreen.c')
0 files changed, 0 insertions, 0 deletions