summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2015-09-08 11:41:51 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2015-09-11 11:46:06 -0400
commit0398e0751f51d8ed04da1c32cc5979a0b9c47a43 (patch)
treed8f5777e44b7ef4c682e7572796e8da24141ffa8 /drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
parentf6311b58b3c8072de6a4c09df010a517e6ef24f2 (diff)
gpu: nvgpu: separate API to get failing engine data
In gk20a_fifo_handle_sched_error(), we currently have a sequence to identify failing engine (stuck on context switch) and corresponding failing channel with its type Separate out this sequence in new API gk20a_fifo_get_failing_engine_data() so that it can be reused from else where too Bug 200133289 Change-Id: I3cef395170cf8990c014c7505c798fd6f2e37921 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/797070 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fifo_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/fifo_gk20a.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
index bc9315d2..7385f9be 100644
--- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
@@ -177,5 +177,7 @@ void fifo_gk20a_finish_mmu_fault_handling(struct gk20a *g,
177int gk20a_fifo_wait_engine_idle(struct gk20a *g); 177int gk20a_fifo_wait_engine_idle(struct gk20a *g);
178u32 gk20a_fifo_engine_interrupt_mask(struct gk20a *g); 178u32 gk20a_fifo_engine_interrupt_mask(struct gk20a *g);
179u32 gk20a_fifo_get_pbdma_signature(struct gk20a *g); 179u32 gk20a_fifo_get_pbdma_signature(struct gk20a *g);
180u32 gk20a_fifo_get_failing_engine_data(struct gk20a *g,
181 int *__id, bool *__is_tsg);
180 182
181#endif /*__GR_GK20A_H__*/ 183#endif /*__GR_GK20A_H__*/