diff options
| author | Chris Park <[email protected]> | 2020-11-25 01:11:25 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2020-12-09 04:04:33 +0000 |
| commit | 80089dd8410f356d5104496d5ab71a66a4f4646b (patch) | |
| tree | ec19adf67d6ce063758f2423aa5c328f7d5df270 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | drm/amd/display: Only one display lights up while using MST hub (diff) | |
| download | kernel-80089dd8410f356d5104496d5ab71a66a4f4646b.tar.gz kernel-80089dd8410f356d5104496d5ab71a66a4f4646b.zip | |
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 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions
