diff options
author | Richard Zhao <rizhao@nvidia.com> | 2018-01-25 14:20:31 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-01-26 17:21:21 -0500 |
commit | 1a9d4c1cfa5ad202f94c563ffa831b0ea726108d (patch) | |
tree | abae14f0ecc5c03943c4941ee9ca5cc4dcce21d1 /drivers/gpu/nvgpu/common/linux/vgpu/dbg_vgpu.c | |
parent | 1a7484c901fe1abe0c35593ec96ff10e162099c4 (diff) |
gpu: nvgpu: vgpu: remove virt_ctx from tegra_gr_comm
queue index can already index the queues. It also help make the api more
common.
Jira EVLR-2364
Change-Id: I98a5014ba0510a2687fdf096a160c497bd1f6985
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1646197
Reviewed-by: Damian Halas <dhalas@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Aingara Paramakuru <aparamakuru@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
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/dbg_vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/vgpu/dbg_vgpu.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/vgpu/dbg_vgpu.c b/drivers/gpu/nvgpu/common/linux/vgpu/dbg_vgpu.c index dfdbe3ee..ce72fb03 100644 --- a/drivers/gpu/nvgpu/common/linux/vgpu/dbg_vgpu.c +++ b/drivers/gpu/nvgpu/common/linux/vgpu/dbg_vgpu.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2015-2018, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or modify it | 4 | * This program is free software; you can redistribute it and/or modify it |
5 | * under the terms and conditions of the GNU General Public License, | 5 | * under the terms and conditions of the GNU General Public License, |
@@ -42,8 +42,7 @@ int vgpu_exec_regops(struct dbg_session_gk20a *dbg_s, | |||
42 | gk20a_dbg_fn(""); | 42 | gk20a_dbg_fn(""); |
43 | BUG_ON(sizeof(*ops) != sizeof(struct tegra_vgpu_reg_op)); | 43 | BUG_ON(sizeof(*ops) != sizeof(struct tegra_vgpu_reg_op)); |
44 | 44 | ||
45 | handle = tegra_gr_comm_oob_get_ptr(TEGRA_GR_COMM_CTX_CLIENT, | 45 | handle = tegra_gr_comm_oob_get_ptr(tegra_gr_comm_get_server_vmid(), |
46 | tegra_gr_comm_get_server_vmid(), | ||
47 | TEGRA_VGPU_QUEUE_CMD, | 46 | TEGRA_VGPU_QUEUE_CMD, |
48 | &oob, &oob_size); | 47 | &oob, &oob_size); |
49 | if (!handle) | 48 | if (!handle) |