gpu: nvgpu: add sked exception detection and handling

Needed to detect and clear sked exception

Bug 200315442

Change-Id: Ia85e8827e563addf7b9d0f95ef192379bb808638
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: http://git-master/r/1500860
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
Seema Khowala
2017-06-12 10:45:12 -07:00
committed by mobile promotions
parent e9267bb3e5
commit 64050935e9
2 changed files with 12 additions and 0 deletions

View File

@@ -6598,6 +6598,14 @@ int gk20a_gr_isr(struct gk20a *g)
need_reset |= -EFAULT;
}
if (exception & gr_exception_sked_m()) {
u32 sked = gk20a_readl(g, gr_sked_hww_esr_r());
nvgpu_err(g, "sked exception %08x", sked);
gk20a_writel(g, gr_sked_hww_esr_r(),
gr_sked_hww_esr_reset_active_f());
}
gk20a_writel(g, gr_intr_r(), gr_intr_exception_reset_f());
gr_intr &= ~gr_intr_exception_pending_f();

View File

@@ -186,6 +186,10 @@ static inline u32 gr_exception_ds_m(void)
{
return 0x1 << 4;
}
static inline u32 gr_exception_sked_m(void)
{
return 0x1 << 8;
}
static inline u32 gr_exception1_r(void)
{
return 0x00400118;