diff options
author | Richard Zhao <rizhao@nvidia.com> | 2018-04-20 18:17:13 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-04-25 12:36:53 -0400 |
commit | 3d0ddb8c4a735cc0c321ddef935f5c3eaad08660 (patch) | |
tree | 2568629c3867968a6c65c381a909cb2a36faea2d /drivers/gpu/nvgpu/vgpu/mm_vgpu.c | |
parent | 98dce7eaac374ccd5c4d7cf6d76decc4e9cd3896 (diff) |
gpu: nvgpu: move parameter of .vm_bind_channel from as_share to vm
as_share is more os specific and not yet used on other OSes.
Jira VQRM-2344
Change-Id: Ie2ed007125400484352fbab602c37a198e8a64ae
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1699842
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/mm_vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/mm_vgpu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/mm_vgpu.c b/drivers/gpu/nvgpu/vgpu/mm_vgpu.c index cba77ecf..3e75cee3 100644 --- a/drivers/gpu/nvgpu/vgpu/mm_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/mm_vgpu.c | |||
@@ -177,10 +177,9 @@ u64 vgpu_bar1_map(struct gk20a *g, struct nvgpu_mem *mem) | |||
177 | return addr; | 177 | return addr; |
178 | } | 178 | } |
179 | 179 | ||
180 | int vgpu_vm_bind_channel(struct gk20a_as_share *as_share, | 180 | int vgpu_vm_bind_channel(struct vm_gk20a *vm, |
181 | struct channel_gk20a *ch) | 181 | struct channel_gk20a *ch) |
182 | { | 182 | { |
183 | struct vm_gk20a *vm = as_share->vm; | ||
184 | struct tegra_vgpu_cmd_msg msg; | 183 | struct tegra_vgpu_cmd_msg msg; |
185 | struct tegra_vgpu_as_bind_share_params *p = &msg.params.as_bind_share; | 184 | struct tegra_vgpu_as_bind_share_params *p = &msg.params.as_bind_share; |
186 | int err; | 185 | int err; |