diff options
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/gp10b/vgpu_mm_gp10b.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/gp10b/vgpu_mm_gp10b.c | 5 |
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; |