Files
linux/drivers/gpu/drm/amd/amdgpu
Mario Kleiner bea1041393 drm/amdgpu: Fix overflow of watermark calcs at > 4k resolutions.
Commit d63c277dc6
("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: d63c277dc6 ("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>
2017-06-14 09:25:05 -04:00
..
2017-04-28 16:38:00 -04:00
2017-05-10 13:23:53 -04:00
2017-05-10 13:23:53 -04:00
2017-03-29 23:53:46 -04:00
2017-05-10 13:23:53 -04:00
2016-10-04 11:15:59 -04:00
2017-03-29 23:55:05 -04:00
2016-08-31 15:21:09 -04:00
2016-08-31 15:21:09 -04:00
2017-03-29 23:54:31 -04:00
2017-03-29 23:55:35 -04:00