diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index 6f62e1cb..e580732a 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |||
@@ -794,7 +794,10 @@ static void gk20a_vm_unmap_user(struct vm_gk20a *vm, u64 offset) | |||
794 | if (mapped_buffer->flags & NVHOST_AS_MAP_BUFFER_FLAGS_FIXED_OFFSET) { | 794 | if (mapped_buffer->flags & NVHOST_AS_MAP_BUFFER_FLAGS_FIXED_OFFSET) { |
795 | mutex_unlock(&vm->update_gmmu_lock); | 795 | mutex_unlock(&vm->update_gmmu_lock); |
796 | 796 | ||
797 | retries = 1000; | 797 | if (tegra_platform_is_silicon()) |
798 | retries = 1000; | ||
799 | else | ||
800 | retries = 1000000; | ||
798 | while (retries) { | 801 | while (retries) { |
799 | if (atomic_read(&mapped_buffer->ref.refcount) == 1) | 802 | if (atomic_read(&mapped_buffer->ref.refcount) == 1) |
800 | break; | 803 | break; |