mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: move no_of_sm to common.gr.config
1. Move no_of_sm from gr to common.gr.config 2. Add nvgpu_gr_config_get_no_of_sm() API in gr.config to fetch no_of_sm. JIRA NVGPU-1884 Change-Id: I3c6c20a12cd7f9939a349a409932195f17392943 Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2073583 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
03e137b552
commit
a2314ee780
@@ -108,12 +108,13 @@ int nvgpu_gr_init_fs_state(struct gk20a *g)
|
||||
}
|
||||
|
||||
/* Is table empty ? */
|
||||
if (g->gr.no_of_sm == 0U) {
|
||||
if (nvgpu_gr_config_get_no_of_sm(gr_config) == 0U) {
|
||||
return -EINVAL;
|
||||
}
|
||||
}
|
||||
|
||||
for (sm_id = 0; sm_id < g->gr.no_of_sm; sm_id++) {
|
||||
for (sm_id = 0; sm_id < nvgpu_gr_config_get_no_of_sm(gr_config);
|
||||
sm_id++) {
|
||||
tpc_index = g->gr.sm_to_cluster[sm_id].tpc_index;
|
||||
gpc_index = g->gr.sm_to_cluster[sm_id].gpc_index;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user