diff options
author | Richard Zhao <rizhao@nvidia.com> | 2018-01-25 19:51:54 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-01-31 05:40:52 -0500 |
commit | 5326dfe3fa59e7d465ffc2f0d7f81aaf9de48278 (patch) | |
tree | 94ec53a97a665fbcbf8004614c65b5090fb89b70 /drivers/gpu/nvgpu/common/linux/vgpu/gr_vgpu.c | |
parent | b386768d323c95f530dd28b695927426e52fe0dc (diff) |
gpu: nvgpu: vgpu: add vgpu_ivc_* wrappers
tegra_gr_comm_* are wrapped as vgpu_ivc_*, which helps make vgpu code
more common.
Jira EVLR-2364
Change-Id: Id49462ed6c176c73ceee8c6bc41104447748e187
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1645656
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: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/vgpu/gr_vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/vgpu/gr_vgpu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/vgpu/gr_vgpu.c b/drivers/gpu/nvgpu/common/linux/vgpu/gr_vgpu.c index 34862702..1fd3e34f 100644 --- a/drivers/gpu/nvgpu/common/linux/vgpu/gr_vgpu.c +++ b/drivers/gpu/nvgpu/common/linux/vgpu/gr_vgpu.c | |||
@@ -1121,7 +1121,7 @@ static int vgpu_gr_suspend_resume_contexts(struct gk20a *g, | |||
1121 | nvgpu_mutex_acquire(&g->dbg_sessions_lock); | 1121 | nvgpu_mutex_acquire(&g->dbg_sessions_lock); |
1122 | nvgpu_mutex_acquire(&dbg_s->ch_list_lock); | 1122 | nvgpu_mutex_acquire(&dbg_s->ch_list_lock); |
1123 | 1123 | ||
1124 | handle = tegra_gr_comm_oob_get_ptr(tegra_gr_comm_get_server_vmid(), | 1124 | handle = vgpu_ivc_oob_get_ptr(vgpu_ivc_get_server_vmid(), |
1125 | TEGRA_VGPU_QUEUE_CMD, | 1125 | TEGRA_VGPU_QUEUE_CMD, |
1126 | (void **)&oob, &oob_size); | 1126 | (void **)&oob, &oob_size); |
1127 | if (!handle) { | 1127 | if (!handle) { |
@@ -1166,7 +1166,7 @@ static int vgpu_gr_suspend_resume_contexts(struct gk20a *g, | |||
1166 | 1166 | ||
1167 | done: | 1167 | done: |
1168 | if (handle) | 1168 | if (handle) |
1169 | tegra_gr_comm_oob_put_ptr(handle); | 1169 | vgpu_ivc_oob_put_ptr(handle); |
1170 | nvgpu_mutex_release(&dbg_s->ch_list_lock); | 1170 | nvgpu_mutex_release(&dbg_s->ch_list_lock); |
1171 | nvgpu_mutex_release(&g->dbg_sessions_lock); | 1171 | nvgpu_mutex_release(&g->dbg_sessions_lock); |
1172 | *ctx_resident_ch_fd = channel_fd; | 1172 | *ctx_resident_ch_fd = channel_fd; |
@@ -1238,7 +1238,7 @@ int vgpu_gr_init_sm_id_table(struct gk20a *g) | |||
1238 | return err; | 1238 | return err; |
1239 | } | 1239 | } |
1240 | 1240 | ||
1241 | handle = tegra_gr_comm_oob_get_ptr(tegra_gr_comm_get_server_vmid(), | 1241 | handle = vgpu_ivc_oob_get_ptr(vgpu_ivc_get_server_vmid(), |
1242 | TEGRA_VGPU_QUEUE_CMD, | 1242 | TEGRA_VGPU_QUEUE_CMD, |
1243 | (void **)&entry, &oob_size); | 1243 | (void **)&entry, &oob_size); |
1244 | if (!handle) | 1244 | if (!handle) |
@@ -1261,7 +1261,7 @@ int vgpu_gr_init_sm_id_table(struct gk20a *g) | |||
1261 | sm_info->sm_index = entry->sm_index; | 1261 | sm_info->sm_index = entry->sm_index; |
1262 | sm_info->global_tpc_index = entry->global_tpc_index; | 1262 | sm_info->global_tpc_index = entry->global_tpc_index; |
1263 | } | 1263 | } |
1264 | tegra_gr_comm_oob_put_ptr(handle); | 1264 | vgpu_ivc_oob_put_ptr(handle); |
1265 | 1265 | ||
1266 | return 0; | 1266 | return 0; |
1267 | } | 1267 | } |