diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2017-03-09 14:30:14 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-16 20:54:07 -0400 |
commit | 7b5b4fc84ff0067fb0e7b5a3b86a4b16784e8ffa (patch) | |
tree | 52de56fe1d2f423f22581fad1eaca46621ffde8f /drivers/gpu/nvgpu/gv11b/gr_gv11b.c | |
parent | 1b4849cda595b5b4e55fdb51e7ecd6c09e1a5fa4 (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/gr_gv11b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/gr_gv11b.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c index 5b0526b0..33a5067e 100644 --- a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c | |||
@@ -1649,10 +1649,9 @@ static void gv11b_write_bundle_veid_state(struct gk20a *g, u32 index) | |||
1649 | struct av_list_gk20a *sw_veid_bundle_init = | 1649 | struct av_list_gk20a *sw_veid_bundle_init = |
1650 | &g->gr.ctx_vars.sw_veid_bundle_init; | 1650 | &g->gr.ctx_vars.sw_veid_bundle_init; |
1651 | u32 j; | 1651 | u32 j; |
1652 | u32 data = gk20a_readl(g, gr_pri_fe_chip_def_info_r()); | ||
1653 | u32 num_subctx, err = 0; | 1652 | u32 num_subctx, err = 0; |
1654 | 1653 | ||
1655 | num_subctx = gr_pri_fe_chip_def_info_max_veid_count_v(data); | 1654 | num_subctx = gv11b_get_max_subctx_count(g); |
1656 | 1655 | ||
1657 | for (j = 0; j < num_subctx; j++) { | 1656 | for (j = 0; j < num_subctx; j++) { |
1658 | 1657 | ||