Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • ..
  • freesync
  • freesync.c
Find file BlameHistoryPermalink
  • Anthony Koo's avatar
    drm/amd/display: Fix LFC multiplier changing erratically · e4ed4dbb
    Anthony Koo authored Jul 29, 2020
    
    
    [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: default avatarAnthony Koo <Anthony.Koo@amd.com>
    Reviewed-by: default avatarAric Cyr <Aric.Cyr@amd.com>
    Acked-by: default avatarQingqing Zhuo <qingqing.zhuo@amd.com>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    e4ed4dbb
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7