diff options
author | Mario Kleiner <[email protected]> | 2017-06-13 07:17:11 +0200 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2017-06-14 09:25:58 -0400 |
commit | 55f61a040e1b1ea0ba962e53ae341b4c51915bd1 (patch) | |
tree | 16528c7a73bc73fc1fc4aec5046d3c21adec60da /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | bea10413934dcf98cb9b2dfcdc56e1d28f192897 (diff) |
drm/radeon: Fix overflow of watermark calcs at > 4k resolutions.
Commit e6b9a6c84b93
("drm/radeon: 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 <[email protected]>
Reported-by: Ben Hutchings <[email protected]>
Fixes: e6b9a6c84b93 ("drm/radeon: Make display watermark calculations more accurate")
Cc: Ben Hutchings <[email protected]>
Cc: Alex Deucher <[email protected]>
Cc: [email protected]
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions