summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_mm_gp10b.c
diff options
context:
space:
mode:
authorRichard Zhao <rizhao@nvidia.com>2016-07-21 19:56:15 -0400
committerDeepak Nibade <dnibade@nvidia.com>2016-12-27 04:56:19 -0500
commita862dd612204813b603dd0c07442488f47c50448 (patch)
tree988a73515a2a05479f015fb5c8077d70306df6db /drivers/gpu/nvgpu/vgpu/gp10b/vgpu_mm_gp10b.c
parentc0cbc337cad85ea962f433366290fa6e84df1244 (diff)
gpu: nvgpu: vgpu: move to use vgpu_get_handle helper function
JIRA VFND-2103 Change-Id: Ic11cff40e64849cb6abb193bec54d03857433416 Signed-off-by: Richard Zhao <rizhao@nvidia.com> Reviewed-on: http://git-master/r/1185205 GVS: Gerrit_Virtual_Submit Reviewed-by: Vladislav Buzov <vbuzov@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/gp10b/vgpu_mm_gp10b.c')
-rw-r--r--drivers/gpu/nvgpu/vgpu/gp10b/vgpu_mm_gp10b.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_mm_gp10b.c b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_mm_gp10b.c
index 1b6003b3..8be6b19c 100644
--- a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_mm_gp10b.c
+++ b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_mm_gp10b.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * Virtualized GPU Memory Management 2 * Virtualized GPU Memory Management
3 * 3 *
4 * Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2015-2016, 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,
@@ -57,7 +57,6 @@ static u64 vgpu_gp10b_locked_gmmu_map(struct vm_gk20a *vm,
57 int err = 0; 57 int err = 0;
58 struct device *d = dev_from_vm(vm); 58 struct device *d = dev_from_vm(vm);
59 struct gk20a *g = gk20a_from_vm(vm); 59 struct gk20a *g = gk20a_from_vm(vm);
60 struct gk20a_platform *platform = gk20a_get_platform(g->dev);
61 struct tegra_vgpu_cmd_msg msg; 60 struct tegra_vgpu_cmd_msg msg;
62 struct tegra_vgpu_as_map_ex_params *p = &msg.params.as_map_ex; 61 struct tegra_vgpu_as_map_ex_params *p = &msg.params.as_map_ex;
63 struct tegra_vgpu_mem_desc *mem_desc; 62 struct tegra_vgpu_mem_desc *mem_desc;
@@ -149,7 +148,7 @@ static u64 vgpu_gp10b_locked_gmmu_map(struct vm_gk20a *vm,
149 } 148 }
150 149
151 msg.cmd = TEGRA_VGPU_CMD_AS_MAP_EX; 150 msg.cmd = TEGRA_VGPU_CMD_AS_MAP_EX;
152 msg.handle = platform->virt_handle; 151 msg.handle = vgpu_get_handle(g);
153 p->handle = vm->handle; 152 p->handle = vm->handle;
154 p->gpu_va = map_offset; 153 p->gpu_va = map_offset;
155 p->size = size; 154 p->size = size;