public inbox for amd-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH] Revert "drm/amdgpu: attach tlb fence to the PTs update"
@ 2026-03-04 13:54 Alex Deucher
  2026-03-04 13:56 ` Christian König
  0 siblings, 1 reply; 7+ messages in thread
From: Alex Deucher @ 2026-03-04 13:54 UTC (permalink / raw)
  To: amd-gfx; +Cc: Alex Deucher, Christian König, Prike Liang

This reverts commit f3854e04b708d73276c4488231a8bd66d30b4671.

This causes framebuffer corruption after suspend.

Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4798
Cc: Christian König <christian.koenig@amd.com>
Cc: Prike Liang <Prike.Liang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
index 01fef0e4f4085..25b1d679ba262 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
@@ -1073,7 +1073,7 @@ amdgpu_vm_tlb_flush(struct amdgpu_vm_update_params *params,
 	}
 
 	/* Prepare a TLB flush fence to be attached to PTs */
-	if (!params->unlocked) {
+	if (!params->unlocked && vm->is_compute_context) {
 		amdgpu_vm_tlb_fence_create(params->adev, vm, fence);
 
 		/* Makes sure no PD/PT is freed before the flush */
-- 
2.53.0


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

end of thread, other threads:[~2026-03-13 23:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-04 13:54 [PATCH] Revert "drm/amdgpu: attach tlb fence to the PTs update" Alex Deucher
2026-03-04 13:56 ` Christian König
2026-03-05  6:48   ` Liang, Prike
2026-03-05  9:43     ` Christian König
2026-03-12 21:08       ` Mario Limonciello
2026-03-13 12:03         ` Christian König
2026-03-13 23:58           ` Mario Limonciello

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