summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/gr_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/gm20b/gr_gm20b.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
index 7949405c..6bf0ed27 100644
--- a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
@@ -497,7 +497,7 @@ static int gr_gm20b_ctx_state_floorsweep(struct gk20a *g)
497 u32 sm_id = 0, gpc_id = 0; 497 u32 sm_id = 0, gpc_id = 0;
498 u32 sm_id_to_gpc_id[proj_scal_max_gpcs_v() * proj_scal_max_tpc_per_gpc_v()]; 498 u32 sm_id_to_gpc_id[proj_scal_max_gpcs_v() * proj_scal_max_tpc_per_gpc_v()];
499 u32 tpc_per_gpc; 499 u32 tpc_per_gpc;
500 u32 tpc_fs_mask = 0, tpc_sm_id, gpc_tpc_id; 500 u32 tpc_fs_mask = 0, tpc_sm_id = 0, gpc_tpc_id = 0;
501 501
502 gk20a_dbg_fn(""); 502 gk20a_dbg_fn("");
503 503
@@ -689,10 +689,6 @@ static void gr_gm20b_load_gpccs_with_bootloader(struct gk20a *g)
689 689
690static int gr_gm20b_load_ctxsw_ucode(struct gk20a *g) 690static int gr_gm20b_load_ctxsw_ucode(struct gk20a *g)
691{ 691{
692 struct gk20a_ctxsw_ucode_info *ucode_info = &g->ctxsw_ucode_info;
693 u64 addr_base = ucode_info->ucode_gpuva;
694 int i;
695
696 gk20a_dbg_fn(""); 692 gk20a_dbg_fn("");
697 693
698 if (tegra_platform_is_linsim()) { 694 if (tegra_platform_is_linsim()) {
@@ -702,11 +698,7 @@ static int gr_gm20b_load_ctxsw_ucode(struct gk20a *g)
702 gr_gpccs_ctxsw_mailbox_value_f(0xc0de7777)); 698 gr_gpccs_ctxsw_mailbox_value_f(0xc0de7777));
703 } 699 }
704 700
705 gr_gk20a_load_falcon_bind_instblk(g); 701 gr_gm20b_load_gpccs_with_bootloader(g);
706 g->ops.gr.falcon_load_ucode(g, addr_base,
707 &g->ctxsw_ucode_info.gpccs,
708 gr_gpcs_gpccs_falcon_hwcfg_r() -
709 gr_fecs_falcon_hwcfg_r());
710 702
711 gk20a_writel(g, gr_fecs_ctxsw_mailbox_clear_r(0), 0x0); 703 gk20a_writel(g, gr_fecs_ctxsw_mailbox_clear_r(0), 0x0);
712 gk20a_writel(g, gr_fecs_ctxsw_mailbox_r(1), 0x1); 704 gk20a_writel(g, gr_fecs_ctxsw_mailbox_r(1), 0x1);