diff mbox

[10/11] drm/radeon: sync PT updates as shared if they are validating

Message ID 1413196907-2160-10-git-send-email-deathsimple@vodafone.de (mailing list archive)
State New, archived
Headers show

Commit Message

Christian König Oct. 13, 2014, 10:41 a.m. UTC
From: Christian König <christian.koenig@amd.com>

Only invalidating PTEs needs to be executed synchronized to using the PT.

Signed-off-by: Christian König <christian.koenig@amd.com>
---
 drivers/gpu/drm/radeon/radeon_vm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/drivers/gpu/drm/radeon/radeon_vm.c b/drivers/gpu/drm/radeon/radeon_vm.c
index 05e6cde..5224b10 100644
--- a/drivers/gpu/drm/radeon/radeon_vm.c
+++ b/drivers/gpu/drm/radeon/radeon_vm.c
@@ -820,7 +820,8 @@  static void radeon_vm_update_ptes(struct radeon_device *rdev,
 		unsigned nptes;
 		uint64_t pte;
 
-		radeon_sync_resv(rdev, &ib->sync, pt->tbo.resv, false);
+		radeon_sync_resv(rdev, &ib->sync, pt->tbo.resv,
+				 !!(flags & R600_PTE_VALID));
 
 		if ((addr & ~mask) == (end & ~mask))
 			nptes = end - addr;