mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
gpu: nvgpu: dump PGRAPH_PRI on error
dumps NV_PGRAPH_PRI_GPC0_GPCCS_FS_GPC whenever pbus sends the 0xbadf13 error bug 1662268 Change-Id: I302ffe5c86098e7235ecc8c071a5e2c852455565 Signed-off-by: Sam Payne <spayne@nvidia.com> Reviewed-on: http://git-master/r/789090 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
@@ -544,7 +544,7 @@ static irqreturn_t gk20a_intr_isr_nonstall(int irq, void *dev_id)
|
|||||||
|
|
||||||
void gk20a_pbus_isr(struct gk20a *g)
|
void gk20a_pbus_isr(struct gk20a *g)
|
||||||
{
|
{
|
||||||
u32 val;
|
u32 val, err_code;
|
||||||
val = gk20a_readl(g, bus_intr_0_r());
|
val = gk20a_readl(g, bus_intr_0_r());
|
||||||
if (val & (bus_intr_0_pri_squash_m() |
|
if (val & (bus_intr_0_pri_squash_m() |
|
||||||
bus_intr_0_pri_fecserr_m() |
|
bus_intr_0_pri_fecserr_m() |
|
||||||
@@ -557,9 +557,15 @@ void gk20a_pbus_isr(struct gk20a *g)
|
|||||||
gk20a_err(&g->dev->dev,
|
gk20a_err(&g->dev->dev,
|
||||||
"NV_PTIMER_PRI_TIMEOUT_SAVE_1: 0x%x\n",
|
"NV_PTIMER_PRI_TIMEOUT_SAVE_1: 0x%x\n",
|
||||||
gk20a_readl(g, timer_pri_timeout_save_1_r()));
|
gk20a_readl(g, timer_pri_timeout_save_1_r()));
|
||||||
|
err_code = gk20a_readl(g, timer_pri_timeout_fecs_errcode_r());
|
||||||
gk20a_err(&g->dev->dev,
|
gk20a_err(&g->dev->dev,
|
||||||
"NV_PTIMER_PRI_TIMEOUT_FECS_ERRCODE: 0x%x\n",
|
"NV_PTIMER_PRI_TIMEOUT_FECS_ERRCODE: 0x%x\n",
|
||||||
gk20a_readl(g, timer_pri_timeout_fecs_errcode_r()));
|
err_code);
|
||||||
|
if (err_code == 0xbadf13)
|
||||||
|
gk20a_err(&g->dev->dev,
|
||||||
|
"NV_PGRAPH_PRI_GPC0_GPCCS_FS_GPC: 0x%x\n",
|
||||||
|
gk20a_readl(g, gr_gpc0_fs_gpc_r()));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (val)
|
if (val)
|
||||||
|
|||||||
Reference in New Issue
Block a user