drm/amd/display: use a more lax vblank enable policy for older ASICs
authorHamza Mahfooz <hamza.mahfooz@amd.com>
Thu, 22 Aug 2024 15:58:22 +0000 (11:58 -0400)
committerHamza Mahfooz <hamza.mahfooz@amd.com>
Fri, 23 Aug 2024 15:53:51 +0000 (11:53 -0400)
commit58a261bfc96763a851cb48b203ed57da37e157b8
tree28e80e74f1597985404bd244ff47d95ad6bf47a9
parente45b6716de4bf06b628a9f3559f7fc8dd5e94d58
drm/amd/display: use a more lax vblank enable policy for older ASICs

Ideally, we want to drop the legacy vblank enable for older ASICs. This
should be possible now, since we can now specify how many frames we need
to wait before disabling vblanking instead of being forced to either
choose between no delay (which can still be buggy) and
drm_vblank_offdelay (which is much longer by default than is required on
AMD hardware).

Suggested-by: Leo Li <sunpeng.li@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240822161856.174600-4-hamza.mahfooz@amd.com
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c