Skip to content

Commit 704bc36

Browse files
leo-sunli1alexdeucher
authored andcommitted
drm/amd/display: Actually do immediate vblank disable
[Why] The `vblank_config.offdelay` field follows the same semantics as the `drm_vblank_offdelay` parameter. Setting it to 0 will never disable vblank. [How] Set `offdelay` to a positive number. Fixes: e45b671 ("drm/amd/display: use a more lax vblank enable policy for DCN35+") Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Leo Li <sunpeng.li@amd.com> Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
1 parent 8058061 commit 704bc36

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8747,6 +8747,8 @@ static void manage_dm_interrupts(struct amdgpu_device *adev,
87478747

87488748
config.offdelay_ms = offdelay ?: 30;
87498749
} else {
8750+
/* offdelay_ms = 0 will never disable vblank */
8751+
config.offdelay_ms = 1;
87508752
config.disable_immediate = true;
87518753
}
87528754

0 commit comments

Comments
 (0)