]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/amd/display: Actually do immediate vblank disable
authorLeo Li <sunpeng.li@amd.com>
Tue, 11 Mar 2025 13:43:38 +0000 (09:43 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2025 08:47:58 +0000 (10:47 +0200)
commit 704bc361e3a4ead1c0eb40acc255b636b788dc89 upstream.

[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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 260b6b8d29fd6c23bed653933ddb461d833c63f5..dd73e445f40e793c21350c9aac5a7ed834a9669c 100644 (file)
@@ -8473,6 +8473,8 @@ static void manage_dm_interrupts(struct amdgpu_device *adev,
 
                        config.offdelay_ms = offdelay ?: 30;
                } else {
+                       /* offdelay_ms = 0 will never disable vblank */
+                       config.offdelay_ms = 1;
                        config.disable_immediate = true;
                }