From: Christian König Date: Thu, 6 Sep 2012 11:48:07 +0000 (+0200) Subject: drm/radeon: fix VM syncing with multiple rings X-Git-Tag: v3.7-rc1~118^2~3^2~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1678dbc22e4b2cfe24a7e042d822ddb837e378c0;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git drm/radeon: fix VM syncing with multiple rings When a VM is used on more than one ring we need to sync to the last user. Signed-off-by: Christian König Reviewed-by: Jerome Glisse --- diff --git a/drivers/gpu/drm/radeon/radeon_cs.c b/drivers/gpu/drm/radeon/radeon_cs.c index e241506..d59eb59 100644 --- a/drivers/gpu/drm/radeon/radeon_cs.c +++ b/drivers/gpu/drm/radeon/radeon_cs.c @@ -463,7 +463,7 @@ static int radeon_cs_ib_vm_chunk(struct radeon_device *rdev, goto out; } radeon_cs_sync_rings(parser); - radeon_cs_sync_to(parser, vm->last_flush); + radeon_cs_sync_to(parser, vm->fence); radeon_cs_sync_to(parser, radeon_vm_grab_id(rdev, vm, parser->ring)); if ((rdev->family >= CHIP_TAHITI) &&