summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_cs.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2014-07-18 09:24:53 +0200
committerAlex Deucher <alexander.deucher@amd.com>2014-08-05 08:53:49 -0400
commite31ad969bbbf0271b537d88f886c2ba3a7ee7059 (patch)
tree14f2ef577a1bb69141280726dc1a2d782078721b /drivers/gpu/drm/radeon/radeon_cs.c
parentc08abf11900e19b14dd3a0cc3d105bd74519cd18 (diff)
downloadtalos-obmc-linux-e31ad969bbbf0271b537d88f886c2ba3a7ee7059.tar.gz
talos-obmc-linux-e31ad969bbbf0271b537d88f886c2ba3a7ee7059.zip
drm/radeon: invalidate moved BOs in the VM (v2)
Don't wait for the BO to be used again, just update the PT on the next VM use. v2: remove stray semicolon. Signed-off-by: Christian König <christian.koenig@amd.com> Tested-by: Michel Dänzer <michel.daenzer@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_cs.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_cs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_cs.c b/drivers/gpu/drm/radeon/radeon_cs.c
index ae763f60c8a0..ee712c199b25 100644
--- a/drivers/gpu/drm/radeon/radeon_cs.c
+++ b/drivers/gpu/drm/radeon/radeon_cs.c
@@ -500,7 +500,8 @@ static int radeon_bo_vm_update_pte(struct radeon_cs_parser *p,
if (r)
return r;
}
- return 0;
+
+ return radeon_vm_clear_invalids(rdev, vm);
}
static int radeon_cs_ib_vm_chunk(struct radeon_device *rdev,
OpenPOWER on IntegriCloud