diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2017-02-22 13:04:31 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-02-27 13:03:23 -0500 |
commit | 207e2ac7d12e62df476f4828136a4c15e156f8a6 (patch) | |
tree | 62e6d87e22261441242210b7e3cf072f0b3bcee3 /drivers/gpu/nvgpu/gv11b/gr_gv11b.c | |
parent | 53e718a739b4c6d6e3a1f4993a4722f28a40cff3 (diff) |
gpu: nvgpu: gv11b: reading max veid number
To get maximum number of subctx, sw should read
NV_PGRAPH_PRI_FE_CHIP_DEF_INFO_MAX_VEID_COUNT instead of
LITTER_NUM_SUBCTX.
JIRA GV11B-72
Change-Id: I4d675ba49d8a600da77e7b60da449d9e5ba48971
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/1309591
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Seema Khowala <seemaj@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 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c index c5390fe4..a67b1476 100644 --- a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c | |||
@@ -1657,8 +1657,10 @@ static void gv11b_write_bundle_veid_state(struct gk20a *g, u32 index) | |||
1657 | struct av_list_gk20a *sw_veid_bundle_init = | 1657 | struct av_list_gk20a *sw_veid_bundle_init = |
1658 | &g->gr.ctx_vars.sw_veid_bundle_init; | 1658 | &g->gr.ctx_vars.sw_veid_bundle_init; |
1659 | u32 j; | 1659 | u32 j; |
1660 | u32 num_subctx = nvgpu_get_litter_value(g, GPU_LIT_NUM_SUBCTX); | 1660 | u32 data = gk20a_readl(g, gr_pri_fe_chip_def_info_r()); |
1661 | u32 err = 0; | 1661 | u32 num_subctx, err = 0; |
1662 | |||
1663 | num_subctx = gr_pri_fe_chip_def_info_max_veid_count_v(data); | ||
1662 | 1664 | ||
1663 | for (j = 0; j < num_subctx; j++) { | 1665 | for (j = 0; j < num_subctx; j++) { |
1664 | 1666 | ||