From c0b619c3cd6da315f22e0506e89530ae7b594d6d Mon Sep 17 00:00:00 2001 From: Vijayakumar Date: Fri, 17 Oct 2014 12:30:03 +0530 Subject: gpu: nvgpu: gm20b: write gpccs start only once Writing start bit twice can confuse falcon and results in random behavior. Bug 200040021 Change-Id: I62eb8e4632ac4fc471d931155471084ee0f9d0a4 Signed-off-by: Vijayakumar Signed-off-by: Terje Bergstrom --- drivers/gpu/nvgpu/gm20b/gr_gm20b.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu') diff --git a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c index 6bf0ed27..1256d4a6 100644 --- a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c @@ -666,9 +666,11 @@ static int gr_gm20b_load_ctxsw_ucode_segments(struct gk20a *g, u64 addr_base, gk20a_writel(g, reg_offset + gr_fecs_bootvec_r(), gr_fecs_bootvec_vec_f(segments->boot_entry)); - /* Write to CPUCTL to start the falcon */ - gk20a_writel(g, reg_offset + gr_fecs_cpuctl_r(), - gr_fecs_cpuctl_startcpu_f(0x01)); + /* start the falcon immediately if PRIV security is disabled*/ + if (!g->ops.privsecurity) { + gk20a_writel(g, reg_offset + gr_fecs_cpuctl_r(), + gr_fecs_cpuctl_startcpu_f(0x01)); + } return 0; } -- cgit v1.2.2