diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/vgpu/mm_vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/vgpu/mm_vgpu.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/vgpu/mm_vgpu.c b/drivers/gpu/nvgpu/common/linux/vgpu/mm_vgpu.c index fe6c2e82..7290c9df 100644 --- a/drivers/gpu/nvgpu/common/linux/vgpu/mm_vgpu.c +++ b/drivers/gpu/nvgpu/common/linux/vgpu/mm_vgpu.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Virtualized GPU Memory Management | 2 | * Virtualized GPU Memory Management |
3 | * | 3 | * |
4 | * Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved. |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it | 6 | * This program is free software; you can redistribute it and/or modify it |
7 | * under the terms and conditions of the GNU General Public License, | 7 | * under the terms and conditions of the GNU General Public License, |
@@ -98,8 +98,7 @@ void vgpu_locked_gmmu_unmap(struct vm_gk20a *vm, | |||
98 | if (va_allocated) { | 98 | if (va_allocated) { |
99 | err = __nvgpu_vm_free_va(vm, vaddr, pgsz_idx); | 99 | err = __nvgpu_vm_free_va(vm, vaddr, pgsz_idx); |
100 | if (err) { | 100 | if (err) { |
101 | dev_err(dev_from_vm(vm), | 101 | nvgpu_err(g, "failed to free va"); |
102 | "failed to free va"); | ||
103 | return; | 102 | return; |
104 | } | 103 | } |
105 | } | 104 | } |
@@ -110,8 +109,7 @@ void vgpu_locked_gmmu_unmap(struct vm_gk20a *vm, | |||
110 | p->gpu_va = vaddr; | 109 | p->gpu_va = vaddr; |
111 | err = vgpu_comm_sendrecv(&msg, sizeof(msg), sizeof(msg)); | 110 | err = vgpu_comm_sendrecv(&msg, sizeof(msg), sizeof(msg)); |
112 | if (err || msg.ret) | 111 | if (err || msg.ret) |
113 | dev_err(dev_from_vm(vm), | 112 | nvgpu_err(g, "failed to update gmmu ptes on unmap"); |
114 | "failed to update gmmu ptes on unmap"); | ||
115 | 113 | ||
116 | /* TLB invalidate handled on server side */ | 114 | /* TLB invalidate handled on server side */ |
117 | } | 115 | } |