]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amdgpu: disble vblank when unloading sriov driver
authorJiawei <Jiawei.Gu@amd.com>
Fri, 17 Apr 2020 11:06:52 +0000 (19:06 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Apr 2020 22:11:49 +0000 (18:11 -0400)
disble vblank in dce_vitual_crtc_commit(), which is skipped
under sriov before

Reviewed-by: Emily Deng <Emily.Deng@amd.com>
Signed-off-by: Jiawei <Jiawei.Gu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/dce_virtual.c

index bb4fd1341352586f8a52d2b21519b807f2aacaae..d5ff7b6331ff98c7636cf04ad31be92e0f4b5a8c 100644 (file)
@@ -172,8 +172,9 @@ static void dce_virtual_crtc_disable(struct drm_crtc *crtc)
 {
        struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc);
 
-       dce_virtual_crtc_dpms(crtc, DRM_MODE_DPMS_OFF);
+       drm_crtc_vblank_off(crtc);
 
+       amdgpu_crtc->enabled = false;
        amdgpu_crtc->pll_id = ATOM_PPLL_INVALID;
        amdgpu_crtc->encoder = NULL;
        amdgpu_crtc->connector = NULL;