diff options
author | Jiawei <[email protected]> | 2020-04-17 19:06:52 +0800 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2020-04-22 18:11:49 -0400 |
commit | 7aba19182e9958cce8d0c6b2f67807ceac31fd50 (patch) | |
tree | 0f074e33f3e8cd6239bace3453c29538c06b38d7 | |
parent | d69b8971e540ae908a4b7ba44aa11ecb42a2c406 (diff) |
drm/amdgpu: disble vblank when unloading sriov driver
disble vblank in dce_vitual_crtc_commit(), which is skipped
under sriov before
Reviewed-by: Emily Deng <[email protected]>
Signed-off-by: Jiawei <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c index bb4fd1341352..d5ff7b6331ff 100644 --- a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c +++ b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c @@ -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; |