diff options
author | Christian König <deathsimple@vodafone.de> | 2012-09-06 07:48:07 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2012-09-20 13:10:41 -0400 |
commit | 1678dbc22e4b2cfe24a7e042d822ddb837e378c0 (patch) | |
tree | 93d277cf2c680e9a69af61c3cb22e4765065c2b6 | |
parent | e9e2fbe975a1938b1acadb94ac7d5934298974ac (diff) |
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 <deathsimple@vodafone.de>
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_cs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_cs.c b/drivers/gpu/drm/radeon/radeon_cs.c index e24150659bc7..d59eb59cdb81 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, | |||
463 | goto out; | 463 | goto out; |
464 | } | 464 | } |
465 | radeon_cs_sync_rings(parser); | 465 | radeon_cs_sync_rings(parser); |
466 | radeon_cs_sync_to(parser, vm->last_flush); | 466 | radeon_cs_sync_to(parser, vm->fence); |
467 | radeon_cs_sync_to(parser, radeon_vm_grab_id(rdev, vm, parser->ring)); | 467 | radeon_cs_sync_to(parser, radeon_vm_grab_id(rdev, vm, parser->ring)); |
468 | 468 | ||
469 | if ((rdev->family >= CHIP_TAHITI) && | 469 | if ((rdev->family >= CHIP_TAHITI) && |