diff options
author | Chris Park <Chris.Park@amd.com> | 2020-11-24 20:11:25 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-12-09 10:06:39 -0500 |
commit | c2ffe78b8b1354603a7d5afb719b2a6dfbb582da (patch) | |
tree | 08b953461a1ab0f2aac9946c2664ae59559edfbf /net/lapb/lapb_timer.c | |
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 <Chris.Park@amd.com>
Reviewed-by: Wenjing Liu <Wenjing.Liu@amd.com>
Acked-by: Eryk Brol <eryk.brol@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions