diff options
author | Richard Zhao <rizhao@nvidia.com> | 2018-01-29 19:15:58 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-02-27 17:30:20 -0500 |
commit | 0e39ad429e8aa68cd11e464cd76a8b9d1912fb7d (patch) | |
tree | f0e0e5b082d59333aea7276375b1b1c15f05b0c4 /drivers/gpu/nvgpu/common/linux/vgpu/mm_vgpu.c | |
parent | 26f22226bad5b31ec57938bad17cc1e1c1d60343 (diff) |
gpu: nvgpu: vgpu: move to nvgpu_err/info from dev_err/info
It helps code be more portable.
Jira EVLR-2364
Change-Id: I0cc1fa739d7884d3c863975f08b3b592acd34613
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1649941
Reviewed-by: Aingara Paramakuru <aparamakuru@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nirav Patel <nipatel@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
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 | } |