summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h
diff options
context:
space:
mode:
authorseshendra Gadagottu <sgadagottu@nvidia.com>2017-02-22 13:04:31 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-02-27 13:03:23 -0500
commit207e2ac7d12e62df476f4828136a4c15e156f8a6 (patch)
tree62e6d87e22261441242210b7e3cf072f0b3bcee3 /drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h
parent53e718a739b4c6d6e3a1f4993a4722f28a40cff3 (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/include/nvgpu/hw/gv11b/hw_gr_gv11b.h')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h
index 656597ba..592a7899 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h
@@ -462,6 +462,18 @@ static inline u32 gr_pri_fe_go_idle_info_r(void)
462{ 462{
463 return 0x00404194; 463 return 0x00404194;
464} 464}
465static inline u32 gr_pri_fe_chip_def_info_r(void)
466{
467 return 0x00404030;
468}
469static inline u32 gr_pri_fe_chip_def_info_max_veid_count_v(u32 r)
470{
471 return (r >> 0) & 0xfff;
472}
473static inline u32 gr_pri_fe_chip_def_info_max_veid_count_init_v(void)
474{
475 return 0x00000040;
476}
465static inline u32 gr_pri_gpc0_tpc0_tex_m_tex_subunits_status_r(void) 477static inline u32 gr_pri_gpc0_tpc0_tex_m_tex_subunits_status_r(void)
466{ 478{
467 return 0x00504238; 479 return 0x00504238;