diff options
author | Jerome Glisse <jglisse@redhat.com> | 2012-05-09 09:34:58 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-05-09 12:22:41 -0400 |
commit | c507f7ef305e1c030b9f09fd0e5f3cb9cad995f0 (patch) | |
tree | 82b3316508a038387ad9993c1a7755d3f470c9cc /drivers/gpu/drm/radeon/radeon_gart.c | |
parent | a8c05940bd590d96229bc170a63f14a22fb9c803 (diff) |
drm/radeon: rip out the ib pool
It isn't necessary any more and the suballocator seems to perform
even better.
Signed-off-by: Christian König <deathsimple@vodafone.de>
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_gart.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_gart.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_gart.c b/drivers/gpu/drm/radeon/radeon_gart.c index 53dba8e5942f..8e9ef3403acd 100644 --- a/drivers/gpu/drm/radeon/radeon_gart.c +++ b/drivers/gpu/drm/radeon/radeon_gart.c | |||
@@ -432,8 +432,8 @@ retry_id: | |||
432 | rdev->vm_manager.use_bitmap |= 1 << id; | 432 | rdev->vm_manager.use_bitmap |= 1 << id; |
433 | vm->id = id; | 433 | vm->id = id; |
434 | list_add_tail(&vm->list, &rdev->vm_manager.lru_vm); | 434 | list_add_tail(&vm->list, &rdev->vm_manager.lru_vm); |
435 | return radeon_vm_bo_update_pte(rdev, vm, rdev->ib_pool.sa_manager.bo, | 435 | return radeon_vm_bo_update_pte(rdev, vm, rdev->ring_tmp_bo.bo, |
436 | &rdev->ib_pool.sa_manager.bo->tbo.mem); | 436 | &rdev->ring_tmp_bo.bo->tbo.mem); |
437 | } | 437 | } |
438 | 438 | ||
439 | /* object have to be reserved */ | 439 | /* object have to be reserved */ |
@@ -631,7 +631,7 @@ int radeon_vm_init(struct radeon_device *rdev, struct radeon_vm *vm) | |||
631 | /* map the ib pool buffer at 0 in virtual address space, set | 631 | /* map the ib pool buffer at 0 in virtual address space, set |
632 | * read only | 632 | * read only |
633 | */ | 633 | */ |
634 | r = radeon_vm_bo_add(rdev, vm, rdev->ib_pool.sa_manager.bo, 0, | 634 | r = radeon_vm_bo_add(rdev, vm, rdev->ring_tmp_bo.bo, 0, |
635 | RADEON_VM_PAGE_READABLE | RADEON_VM_PAGE_SNOOPED); | 635 | RADEON_VM_PAGE_READABLE | RADEON_VM_PAGE_SNOOPED); |
636 | return r; | 636 | return r; |
637 | } | 637 | } |
@@ -648,12 +648,12 @@ void radeon_vm_fini(struct radeon_device *rdev, struct radeon_vm *vm) | |||
648 | radeon_mutex_unlock(&rdev->cs_mutex); | 648 | radeon_mutex_unlock(&rdev->cs_mutex); |
649 | 649 | ||
650 | /* remove all bo */ | 650 | /* remove all bo */ |
651 | r = radeon_bo_reserve(rdev->ib_pool.sa_manager.bo, false); | 651 | r = radeon_bo_reserve(rdev->ring_tmp_bo.bo, false); |
652 | if (!r) { | 652 | if (!r) { |
653 | bo_va = radeon_bo_va(rdev->ib_pool.sa_manager.bo, vm); | 653 | bo_va = radeon_bo_va(rdev->ring_tmp_bo.bo, vm); |
654 | list_del_init(&bo_va->bo_list); | 654 | list_del_init(&bo_va->bo_list); |
655 | list_del_init(&bo_va->vm_list); | 655 | list_del_init(&bo_va->vm_list); |
656 | radeon_bo_unreserve(rdev->ib_pool.sa_manager.bo); | 656 | radeon_bo_unreserve(rdev->ring_tmp_bo.bo); |
657 | kfree(bo_va); | 657 | kfree(bo_va); |
658 | } | 658 | } |
659 | if (!list_empty(&vm->va)) { | 659 | if (!list_empty(&vm->va)) { |