mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: move get_nonpes_aware_tpc hal to hal.gr.init
Move get_nonpes_aware_tpc hal to hal.gr.init . This hal is implemented for gv11b. Update sm_id_numbering hal to pass the gr_config struct pointer as parameter to avoid dereferencing from gr inside hal. JIRA NVGPU-2951 Change-Id: I1e06b634cc36741e116e41e581a18c7f5b373945 Signed-off-by: Vinod G <vinodg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2093835 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
4faeea63aa
commit
815c102e5d
@@ -817,13 +817,15 @@ static int gk20a_ctrl_vsm_mapping(struct gk20a *g,
|
||||
for (i = 0; i < no_of_sm; i++) {
|
||||
struct sm_info *sm_info =
|
||||
nvgpu_gr_config_get_sm_info(gr->config, i);
|
||||
|
||||
vsms_buf[i].gpc_index =
|
||||
nvgpu_gr_config_get_sm_info_gpc_index(sm_info);
|
||||
if (g->ops.gr.get_nonpes_aware_tpc)
|
||||
if (g->ops.gr.init.get_nonpes_aware_tpc)
|
||||
vsms_buf[i].tpc_index =
|
||||
g->ops.gr.get_nonpes_aware_tpc(g,
|
||||
g->ops.gr.init.get_nonpes_aware_tpc(g,
|
||||
nvgpu_gr_config_get_sm_info_gpc_index(sm_info),
|
||||
nvgpu_gr_config_get_sm_info_tpc_index(sm_info));
|
||||
nvgpu_gr_config_get_sm_info_tpc_index(sm_info),
|
||||
gr->config);
|
||||
else
|
||||
vsms_buf[i].tpc_index =
|
||||
nvgpu_gr_config_get_sm_info_tpc_index(sm_info);
|
||||
|
||||
Reference in New Issue
Block a user