aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAnthony Koo <[email protected]>2020-07-29 17:33:27 -0400
committerAlex Deucher <[email protected]>2020-08-10 17:26:52 -0400
commit575da8db31572d1d8de572d0b6ffb113624c2f8f (patch)
tree7c51c607f1b6acd06dc2df7e9292193d2bc69b49 /tools/perf/scripts/python
parentc0c96fc9c2ca845c2d79006c543e337a31969ac2 (diff)
drm/amd/display: Fix LFC multiplier changing erratically
[Why] 1. There is a calculation that is using frame_time_in_us instead of last_render_time_in_us to calculate whether choosing an LFC multiplier would cause the inserted frame duration to be outside of range. 2. We do not handle unsigned integer subtraction correctly and it underflows to a really large value, which causes some logic errors. [How] 1. Fix logic to calculate 'within range' using last_render_time_in_us 2. Split out delta_from_mid_point_delta_in_us calculation to ensure we don't underflow and wrap around Signed-off-by: Anthony Koo <[email protected]> Reviewed-by: Aric Cyr <[email protected]> Acked-by: Qingqing Zhuo <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions