mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 11:04:51 +03:00
gpu: nvgpu: add hal.gr.init hal to detect SM arch
Add new hal g->ops.gr.init.detect_sm_arch() in hal.gr.init unit to get SM arch information. Remove g->ops.gr.detect_sm_arch(). Move corresponding functions to hal.gr.init unit Remove unused function declaration for gr_gv11b_init_sw_veid_bundle() Jira NVGPU-2961 Change-Id: Idfd5ce19c06978dc31cbcec2cd01cb2912eb3cf9 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2097534 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
efae66471c
commit
2adcb51a45
@@ -547,7 +547,7 @@ void gk20a_init_gpu_characteristics(struct gk20a *g)
|
||||
}
|
||||
}
|
||||
|
||||
g->ops.gr.detect_sm_arch(g);
|
||||
g->ops.gr.init.detect_sm_arch(g);
|
||||
|
||||
if (g->ops.gr.init_cyclestats != NULL) {
|
||||
g->ops.gr.init_cyclestats(g);
|
||||
|
||||
@@ -134,7 +134,6 @@ static const struct gpu_ops vgpu_gp10b_ops = {
|
||||
.set_gpc_tpc_mask = NULL,
|
||||
.is_tpc_addr = gr_gm20b_is_tpc_addr,
|
||||
.get_tpc_num = gr_gm20b_get_tpc_num,
|
||||
.detect_sm_arch = vgpu_gr_detect_sm_arch,
|
||||
.dump_gr_regs = NULL,
|
||||
.update_pc_sampling = vgpu_gr_update_pc_sampling,
|
||||
.get_rop_l2_en_mask = vgpu_gr_rop_l2_en_mask,
|
||||
@@ -357,6 +356,7 @@ static const struct gpu_ops vgpu_gp10b_ops = {
|
||||
.commit_ctxsw_spill = gp10b_gr_init_commit_ctxsw_spill,
|
||||
.commit_cbes_reserve =
|
||||
gp10b_gr_init_commit_cbes_reserve,
|
||||
.detect_sm_arch = vgpu_gr_detect_sm_arch,
|
||||
},
|
||||
},
|
||||
.class = {
|
||||
|
||||
@@ -158,7 +158,6 @@ static const struct gpu_ops vgpu_gv11b_ops = {
|
||||
.set_gpc_tpc_mask = NULL,
|
||||
.is_tpc_addr = gr_gm20b_is_tpc_addr,
|
||||
.get_tpc_num = gr_gm20b_get_tpc_num,
|
||||
.detect_sm_arch = vgpu_gr_detect_sm_arch,
|
||||
.dump_gr_regs = NULL,
|
||||
.update_pc_sampling = vgpu_gr_update_pc_sampling,
|
||||
.get_rop_l2_en_mask = vgpu_gr_rop_l2_en_mask,
|
||||
@@ -409,6 +408,7 @@ static const struct gpu_ops vgpu_gv11b_ops = {
|
||||
gv11b_gr_init_commit_cbes_reserve,
|
||||
.gfxp_wfi_timeout =
|
||||
gv11b_gr_init_commit_gfxp_wfi_timeout,
|
||||
.detect_sm_arch = vgpu_gr_detect_sm_arch,
|
||||
},
|
||||
.intr = {
|
||||
.handle_gcc_exception =
|
||||
|
||||
Reference in New Issue
Block a user