diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/gr_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/gr_gm20b.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c index bd9b627f..5d9cc32c 100644 --- a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c | |||
@@ -758,7 +758,7 @@ static int gr_gm20b_load_ctxsw_ucode(struct gk20a *g) | |||
758 | g->ops.pmu.lsfloadedfalconid = 0; | 758 | g->ops.pmu.lsfloadedfalconid = 0; |
759 | if (g->ops.pmu.fecsbootstrapdone) { | 759 | if (g->ops.pmu.fecsbootstrapdone) { |
760 | /* this must be recovery so bootstrap fecs and gpccs */ | 760 | /* this must be recovery so bootstrap fecs and gpccs */ |
761 | if (!g->ops.securegpccs) { | 761 | if (!nvgpu_is_enabled(g, NVGPU_SEC_SECUREGPCCS)) { |
762 | gr_gm20b_load_gpccs_with_bootloader(g); | 762 | gr_gm20b_load_gpccs_with_bootloader(g); |
763 | err = g->ops.pmu.load_lsfalcon_ucode(g, | 763 | err = g->ops.pmu.load_lsfalcon_ucode(g, |
764 | (1 << LSF_FALCON_ID_FECS)); | 764 | (1 << LSF_FALCON_ID_FECS)); |
@@ -777,7 +777,7 @@ static int gr_gm20b_load_ctxsw_ucode(struct gk20a *g) | |||
777 | } else { | 777 | } else { |
778 | /* cold boot or rg exit */ | 778 | /* cold boot or rg exit */ |
779 | g->ops.pmu.fecsbootstrapdone = true; | 779 | g->ops.pmu.fecsbootstrapdone = true; |
780 | if (!g->ops.securegpccs) { | 780 | if (!nvgpu_is_enabled(g, NVGPU_SEC_SECUREGPCCS)) { |
781 | gr_gm20b_load_gpccs_with_bootloader(g); | 781 | gr_gm20b_load_gpccs_with_bootloader(g); |
782 | } else { | 782 | } else { |
783 | /* bind WPR VA inst block */ | 783 | /* bind WPR VA inst block */ |
@@ -797,7 +797,7 @@ static int gr_gm20b_load_ctxsw_ucode(struct gk20a *g) | |||
797 | } | 797 | } |
798 | 798 | ||
799 | /*start gpccs */ | 799 | /*start gpccs */ |
800 | if (g->ops.securegpccs) { | 800 | if (nvgpu_is_enabled(g, NVGPU_SEC_SECUREGPCCS)) { |
801 | gk20a_writel(g, reg_offset + | 801 | gk20a_writel(g, reg_offset + |
802 | gr_fecs_cpuctl_alias_r(), | 802 | gr_fecs_cpuctl_alias_r(), |
803 | gr_gpccs_cpuctl_startcpu_f(1)); | 803 | gr_gpccs_cpuctl_startcpu_f(1)); |