]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Fix vblank refcount in vrr transition
authorYunxiang Li <Yunxiang.Li@amd.com>
Wed, 21 Sep 2022 21:20:19 +0000 (17:20 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Oct 2022 16:06:25 +0000 (12:06 -0400)
commitea6e492882d203ba2c94045c970be07692684918
tree774159fe9386b0b8ad2fb5b1c275073ab15ea9d4
parent44ddf7c4452e233b71a7767e615caf842763ea7b
drm/amd/display: Fix vblank refcount in vrr transition

manage_dm_interrupts disable/enable vblank using drm_crtc_vblank_off/on
which causes drm_crtc_vblank_get in vrr_transition to fail, and later
when drm_crtc_vblank_put is called the refcount on vblank will be messed
up. Therefore move the call to after manage_dm_interrupts.

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1247
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1380

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Yunxiang Li <Yunxiang.Li@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c