From 5711e2b1f7c3a34444c654e7a3bf0a6f8201ef03 Mon Sep 17 00:00:00 2001 From: David Nieto Date: Fri, 2 Dec 2016 15:18:30 -0800 Subject: gpu: nvgpu: remove default verbose in pbus isr And reduce pri timeout to match PCIE specs bug 200246808 Change-Id: I0225ae964b5635665fe774c43f773d0ce86650ab Signed-off-by: David Nieto Reviewed-on: http://git-master/r/1264179 (cherry picked from commit 1c3dbf8324b7ec5d06bd0e57e7deee9a1c8e9411) Reviewed-on: http://git-master/r/1280328 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gk20a.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index 77d708dd..246338d4 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c @@ -662,28 +662,28 @@ void gk20a_pbus_isr(struct gk20a *g) if (val & (bus_intr_0_pri_squash_m() | bus_intr_0_pri_fecserr_m() | bus_intr_0_pri_timeout_m())) { - gk20a_err(dev_from_gk20a(g), "pmc_enable : 0x%x", + gk20a_dbg(gpu_dbg_intr, "pmc_enable : 0x%x", gk20a_readl(g, mc_enable_r())); - gk20a_err(dev_from_gk20a(g), "NV_PBUS_INTR_0 : 0x%x", val); - gk20a_err(g->dev, + gk20a_dbg(gpu_dbg_intr, "NV_PBUS_INTR_0 : 0x%x", val); + gk20a_dbg(gpu_dbg_intr, "NV_PTIMER_PRI_TIMEOUT_SAVE_0: 0x%x\n", gk20a_readl(g, timer_pri_timeout_save_0_r())); - gk20a_err(g->dev, + gk20a_dbg(gpu_dbg_intr, "NV_PTIMER_PRI_TIMEOUT_SAVE_1: 0x%x\n", gk20a_readl(g, timer_pri_timeout_save_1_r())); err_code = gk20a_readl(g, timer_pri_timeout_fecs_errcode_r()); - gk20a_err(g->dev, + gk20a_dbg(gpu_dbg_intr, "NV_PTIMER_PRI_TIMEOUT_FECS_ERRCODE: 0x%x\n", err_code); if (err_code == 0xbadf13) - gk20a_err(g->dev, + gk20a_dbg(gpu_dbg_intr, "NV_PGRAPH_PRI_GPC0_GPCCS_FS_GPC: 0x%x\n", gk20a_readl(g, gr_gpc0_fs_gpc_r())); } if (val) - gk20a_err(g->dev, + gk20a_dbg(gpu_dbg_intr, "Unhandled pending pbus interrupt\n"); gk20a_writel(g, bus_intr_0_r(), val); @@ -939,7 +939,10 @@ int gk20a_pm_finalize_poweron(struct device *dev) if (tegra_platform_is_silicon()) { gk20a_writel(g, timer_pri_timeout_r(), - timer_pri_timeout_period_f(0x186A0) | + timer_pri_timeout_period_f( + platform->default_pri_timeout ? + platform->default_pri_timeout : + 0x186A0) | timer_pri_timeout_en_en_enabled_f()); } else { gk20a_writel(g, -- cgit v1.2.2