diff options
author | Chris Park <[email protected]> | 2020-11-24 20:11:25 -0500 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2020-12-09 10:06:39 -0500 |
commit | c2ffe78b8b1354603a7d5afb719b2a6dfbb582da (patch) | |
tree | 08b953461a1ab0f2aac9946c2664ae59559edfbf /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 2343e9d2c5a94459b9de92649f1650e36eb79a10 (diff) |
drm/amd/display: Prevent bandwidth overflow
[Why]
At very high pixel clock, bandwidth calculation exceeds 32 bit size
and overflow value. This causes the resulting selection of link rate
to be inaccurate.
[How]
Change order of operation and use fixed point to deal with integer
accuracy. Also address bug found when forcing link rate.
Signed-off-by: Chris Park <[email protected]>
Reviewed-by: Wenjing Liu <[email protected]>
Acked-by: Eryk Brol <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions