AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] drm/amdgpu: cancel the correct hrtimer on exit
@ 2021-11-24  2:43 Flora Cui
  2021-11-24  2:43 ` [PATCH 2/3] drm/amdgpu: fix vkms crtc settings Flora Cui
  2021-11-24  2:43 ` [PATCH 3/3] drm/amdgpu: check atomic flag to differeniate with legacy path Flora Cui
  0 siblings, 2 replies; 4+ messages in thread
From: Flora Cui @ 2021-11-24  2:43 UTC (permalink / raw)
  To: guchun.chen, amd-gfx, Alexander.Deucher; +Cc: Flora Cui

Signed-off-by: Flora Cui <flora.cui@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c
index ce982afeff91..ac9a8cd21c4b 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c
@@ -504,8 +504,8 @@ static int amdgpu_vkms_sw_fini(void *handle)
 	int i = 0;
 
 	for (i = 0; i < adev->mode_info.num_crtc; i++)
-		if (adev->mode_info.crtcs[i])
-			hrtimer_cancel(&adev->mode_info.crtcs[i]->vblank_timer);
+		if (adev->amdgpu_vkms_output[i].vblank_hrtimer.function)
+			hrtimer_cancel(&adev->amdgpu_vkms_output[i].vblank_hrtimer);
 
 	kfree(adev->mode_info.bios_hardcoded_edid);
 	kfree(adev->amdgpu_vkms_output);
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-11-24 14:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-24  2:43 [PATCH 1/3] drm/amdgpu: cancel the correct hrtimer on exit Flora Cui
2021-11-24  2:43 ` [PATCH 2/3] drm/amdgpu: fix vkms crtc settings Flora Cui
2021-11-24  2:43 ` [PATCH 3/3] drm/amdgpu: check atomic flag to differeniate with legacy path Flora Cui
2021-11-24 14:26   ` Deucher, Alexander

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox