summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/vgpu/gv11b/vgpu_subctx_gv11b.c
diff options
context:
space:
mode:
authorRichard Zhao <rizhao@nvidia.com>2018-01-10 19:06:30 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-01-12 15:43:40 -0500
commit9dd3bb2e62c321bb48c14f3e76c00a754cd12c5f (patch)
tree48e1242d3f17ae0ef02ef0f724c95ce5c30b6338 /drivers/gpu/nvgpu/common/linux/vgpu/gv11b/vgpu_subctx_gv11b.c
parentece3d958b306f00dad76ed6f9b83ce136b4769f2 (diff)
gpu: nvgpu: vgpu: move t19x specific code to general code
- remove vgpu_t19x.h and tegra_vgpu_t19x.h - merge t19x specific ivc commands to the big enum - move TEGRA_VGPU_ATTRIB_MAX_SUBCTX_COUNT to constants Jira EVLR-2293 Change-Id: I34344bffa03bb69e1282b1f19382e3199f9ba105 Signed-off-by: Richard Zhao <rizhao@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1636128 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/gv11b/vgpu_subctx_gv11b.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/vgpu/gv11b/vgpu_subctx_gv11b.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/vgpu/gv11b/vgpu_subctx_gv11b.c b/drivers/gpu/nvgpu/common/linux/vgpu/gv11b/vgpu_subctx_gv11b.c
index 1e2de14d..d59f0381 100644
--- a/drivers/gpu/nvgpu/common/linux/vgpu/gv11b/vgpu_subctx_gv11b.c
+++ b/drivers/gpu/nvgpu/common/linux/vgpu/gv11b/vgpu_subctx_gv11b.c
@@ -24,7 +24,7 @@ int vgpu_gv11b_alloc_subctx_header(struct channel_gk20a *c)
24 struct ctx_header_desc *ctx = &c->ch_ctx.ctx_header; 24 struct ctx_header_desc *ctx = &c->ch_ctx.ctx_header;
25 struct tegra_vgpu_cmd_msg msg = {}; 25 struct tegra_vgpu_cmd_msg msg = {};
26 struct tegra_vgpu_alloc_ctx_header_params *p = 26 struct tegra_vgpu_alloc_ctx_header_params *p =
27 &msg.params.t19x.alloc_ctx_header; 27 &msg.params.alloc_ctx_header;
28 int err; 28 int err;
29 29
30 msg.cmd = TEGRA_VGPU_CMD_ALLOC_CTX_HEADER; 30 msg.cmd = TEGRA_VGPU_CMD_ALLOC_CTX_HEADER;
@@ -55,7 +55,7 @@ void vgpu_gv11b_free_subctx_header(struct channel_gk20a *c)
55 struct ctx_header_desc *ctx = &c->ch_ctx.ctx_header; 55 struct ctx_header_desc *ctx = &c->ch_ctx.ctx_header;
56 struct tegra_vgpu_cmd_msg msg = {}; 56 struct tegra_vgpu_cmd_msg msg = {};
57 struct tegra_vgpu_free_ctx_header_params *p = 57 struct tegra_vgpu_free_ctx_header_params *p =
58 &msg.params.t19x.free_ctx_header; 58 &msg.params.free_ctx_header;
59 int err; 59 int err;
60 60
61 if (ctx->mem.gpu_va) { 61 if (ctx->mem.gpu_va) {