summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/subctx_gv11b.h
diff options
context:
space:
mode:
authorseshendra Gadagottu <sgadagottu@nvidia.com>2017-03-09 14:30:14 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-04-16 20:54:07 -0400
commit7b5b4fc84ff0067fb0e7b5a3b86a4b16784e8ffa (patch)
tree52de56fe1d2f423f22581fad1eaca46621ffde8f /drivers/gpu/nvgpu/gv11b/subctx_gv11b.h
parent1b4849cda595b5b4e55fdb51e7ecd6c09e1a5fa4 (diff)
gpu: nvgpu: gv11b: function to get max veid
Defined function to get max number of subcontexs supported and used it where max subcontext count required. JIRA GV11B-23 Change-Id: I4f6307162486bab1e91cbf66abfee7763c70fe7b Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com> Signed-off-by: Seema Khowala <seemaj@nvidia.com> Reviewed-on: http://git-master/r/1318146 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> 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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/subctx_gv11b.h b/drivers/gpu/nvgpu/gv11b/subctx_gv11b.h
index 357cd254..fdfe9e3b 100644
--- a/drivers/gpu/nvgpu/gv11b/subctx_gv11b.h
+++ b/drivers/gpu/nvgpu/gv11b/subctx_gv11b.h
@@ -2,7 +2,7 @@
2 * 2 *
3 * Volta GPU series Subcontext 3 * Volta GPU series Subcontext
4 * 4 *
5 * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. 5 * Copyright (c) 2016 - 2017, NVIDIA CORPORATION. All rights reserved.
6 * 6 *
7 * This program is free software; you can redistribute it and/or modify it 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, 8 * under the terms and conditions of the GNU General Public License,
@@ -24,4 +24,6 @@ int gv11b_alloc_subctx_header(struct channel_gk20a *c);
24void gv11b_free_subctx_header(struct channel_gk20a *c); 24void gv11b_free_subctx_header(struct channel_gk20a *c);
25 25
26int gv11b_update_subctx_header(struct channel_gk20a *c, u64 gpu_va); 26int gv11b_update_subctx_header(struct channel_gk20a *c, u64 gpu_va);
27
28int gv11b_get_max_subctx_count(struct gk20a *g);
27#endif /* __SUBCONTEXT_GV11B_H__ */ 29#endif /* __SUBCONTEXT_GV11B_H__ */