mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: move gr config structs to priv header
Move sm_info and nvgpu_gr_config struts to a private header and add APIs to access member fields. JIRA NVGPU-3060 Change-Id: I90f44333f19cb8cb939c0a0f90d9a03f6c036080 Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2091563 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
364c780469
commit
c649ca9fd6
@@ -96,7 +96,7 @@ int nvgpu_gr_fs_state_init(struct gk20a *g)
|
||||
}
|
||||
|
||||
if (g->ops.gr.config.init_sm_id_table != NULL) {
|
||||
err = g->ops.gr.config.init_sm_id_table(gr_config);
|
||||
err = g->ops.gr.config.init_sm_id_table(g, gr_config);
|
||||
if (err != 0) {
|
||||
return err;
|
||||
}
|
||||
@@ -111,8 +111,8 @@ int nvgpu_gr_fs_state_init(struct gk20a *g)
|
||||
sm_id++) {
|
||||
struct sm_info *sm_info =
|
||||
nvgpu_gr_config_get_sm_info(gr_config, sm_id);
|
||||
tpc_index = sm_info->tpc_index;
|
||||
gpc_index = sm_info->gpc_index;
|
||||
tpc_index = nvgpu_gr_config_get_sm_info_tpc_index(sm_info);
|
||||
gpc_index = nvgpu_gr_config_get_sm_info_gpc_index(sm_info);
|
||||
|
||||
g->ops.gr.init.sm_id_numbering(g, gpc_index, tpc_index, sm_id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user