summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/subctx_gv11b.h
diff options
context:
space:
mode:
authorseshendra Gadagottu <sgadagottu@nvidia.com>2016-11-16 15:25:08 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2016-12-20 18:15:14 -0500
commit67b54c3c76cfa488e1d102e5c74a32b3aaba9287 (patch)
treee56f4b6b11327710cd5665c241c4e454f16626e2 /drivers/gpu/nvgpu/gv11b/subctx_gv11b.h
parent26199ffdf5bb5cf1d5a810c63904cc950314fe7b (diff)
gpu: nvgpu: legacy support with subcontext
gv11b needs atleast one subcontext to submit work. To support legacy in gv11b, currently main context is always copied into subcontext0 (veid0) during channel commit instance. As part of channel commit instance, veid0 for that channel is created and relevant pdb and context info copied to vedi0. JIRA GV11B-21 Change-Id: I5147a1708b5e94202fa55e73fa0e53199ab7fced Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: http://git-master/r/1231169 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/subctx_gv11b.h')
-rw-r--r--drivers/gpu/nvgpu/gv11b/subctx_gv11b.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/subctx_gv11b.h b/drivers/gpu/nvgpu/gv11b/subctx_gv11b.h
new file mode 100644
index 00000000..357cd254
--- /dev/null
+++ b/drivers/gpu/nvgpu/gv11b/subctx_gv11b.h
@@ -0,0 +1,27 @@
1/*
2 *
3 * Volta GPU series Subcontext
4 *
5 * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms and conditions of the GNU General Public License,
9 * version 2, as published by the Free Software Foundation.
10 *
11 * This program is distributed in the hope it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * more details.
15 *
16 * You should have received a copy of the GNU General Public License along with
17 * this program.
18 */
19#ifndef __SUBCONTEXT_GV11B_H__
20#define __SUBCONTEXT_GV11B_H__
21
22int gv11b_alloc_subctx_header(struct channel_gk20a *c);
23
24void gv11b_free_subctx_header(struct channel_gk20a *c);
25
26int gv11b_update_subctx_header(struct channel_gk20a *c, u64 gpu_va);
27#endif /* __SUBCONTEXT_GV11B_H__ */