Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: e45b6716de4b ("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

authored by

Leo Li and committed by
Alex Deucher
704bc361 8058061e

+2
+2
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
··· 8747 8747 8748 8748 config.offdelay_ms = offdelay ?: 30; 8749 8749 } else { 8750 + /* offdelay_ms = 0 will never disable vblank */ 8751 + config.offdelay_ms = 1; 8750 8752 config.disable_immediate = true; 8751 8753 } 8752 8754