diff options
author | Christian König <deathsimple@vodafone.de> | 2012-08-06 14:45:03 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2012-09-20 13:10:38 -0400 |
commit | d66a76269a57f84b785f7449818b843de1f07915 (patch) | |
tree | bd8af52ed66b7b74a0aafe0d589d8e7a09b0d914 /drivers/gpu/drm/radeon/si.c | |
parent | 05b0714768557c036fb9d74c197081fd2cba12bc (diff) |
drm/radeon: remove vm_unbind
It actually isn't very useful.
Signed-off-by: Christian König <deathsimple@vodafone.de>
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/si.c')
-rw-r--r-- | drivers/gpu/drm/radeon/si.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/gpu/drm/radeon/si.c b/drivers/gpu/drm/radeon/si.c index e0846ce65f6..1a459ad485c 100644 --- a/drivers/gpu/drm/radeon/si.c +++ b/drivers/gpu/drm/radeon/si.c | |||
@@ -2803,18 +2803,6 @@ int si_vm_bind(struct radeon_device *rdev, struct radeon_vm *vm, int id) | |||
2803 | return 0; | 2803 | return 0; |
2804 | } | 2804 | } |
2805 | 2805 | ||
2806 | void si_vm_unbind(struct radeon_device *rdev, struct radeon_vm *vm) | ||
2807 | { | ||
2808 | if (vm->id < 8) | ||
2809 | WREG32(VM_CONTEXT0_PAGE_TABLE_BASE_ADDR + (vm->id << 2), 0); | ||
2810 | else | ||
2811 | WREG32(VM_CONTEXT8_PAGE_TABLE_BASE_ADDR + ((vm->id - 8) << 2), 0); | ||
2812 | /* flush hdp cache */ | ||
2813 | WREG32(HDP_MEM_COHERENCY_FLUSH_CNTL, 0x1); | ||
2814 | /* bits 0-15 are the VM contexts0-15 */ | ||
2815 | WREG32(VM_INVALIDATE_REQUEST, 1 << vm->id); | ||
2816 | } | ||
2817 | |||
2818 | void si_vm_tlb_flush(struct radeon_device *rdev, struct radeon_vm *vm) | 2806 | void si_vm_tlb_flush(struct radeon_device *rdev, struct radeon_vm *vm) |
2819 | { | 2807 | { |
2820 | if (vm->id == -1) | 2808 | if (vm->id == -1) |