diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/gr_gv11b.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c index 2f33301d..568673aa 100644 --- a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c | |||
@@ -2138,7 +2138,7 @@ int gr_gv11b_load_smid_config(struct gk20a *g) | |||
2138 | u32 sm_per_tpc = nvgpu_get_litter_value(g, GPU_LIT_NUM_SM_PER_TPC); | 2138 | u32 sm_per_tpc = nvgpu_get_litter_value(g, GPU_LIT_NUM_SM_PER_TPC); |
2139 | int num_gpcs = nvgpu_get_litter_value(g, GPU_LIT_NUM_GPCS); | 2139 | int num_gpcs = nvgpu_get_litter_value(g, GPU_LIT_NUM_GPCS); |
2140 | 2140 | ||
2141 | tpc_sm_id = kcalloc(gr_cwd_sm_id__size_1_v(), sizeof(u32), GFP_KERNEL); | 2141 | tpc_sm_id = nvgpu_kcalloc(g, gr_cwd_sm_id__size_1_v(), sizeof(u32)); |
2142 | if (!tpc_sm_id) | 2142 | if (!tpc_sm_id) |
2143 | return -ENOMEM; | 2143 | return -ENOMEM; |
2144 | 2144 | ||
@@ -2173,7 +2173,7 @@ int gr_gv11b_load_smid_config(struct gk20a *g) | |||
2173 | 2173 | ||
2174 | for (i = 0; i < gr_cwd_sm_id__size_1_v(); i++) | 2174 | for (i = 0; i < gr_cwd_sm_id__size_1_v(); i++) |
2175 | gk20a_writel(g, gr_cwd_sm_id_r(i), tpc_sm_id[i]); | 2175 | gk20a_writel(g, gr_cwd_sm_id_r(i), tpc_sm_id[i]); |
2176 | kfree(tpc_sm_id); | 2176 | nvgpu_kfree(g, tpc_sm_id); |
2177 | 2177 | ||
2178 | return 0; | 2178 | return 0; |
2179 | } | 2179 | } |