diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2015-09-08 11:41:51 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-09-11 11:46:06 -0400 |
commit | 0398e0751f51d8ed04da1c32cc5979a0b9c47a43 (patch) | |
tree | d8f5777e44b7ef4c682e7572796e8da24141ffa8 /drivers/gpu/nvgpu/gk20a/fifo_gk20a.h | |
parent | f6311b58b3c8072de6a4c09df010a517e6ef24f2 (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.h | 2 |
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, | |||
177 | int gk20a_fifo_wait_engine_idle(struct gk20a *g); | 177 | int gk20a_fifo_wait_engine_idle(struct gk20a *g); |
178 | u32 gk20a_fifo_engine_interrupt_mask(struct gk20a *g); | 178 | u32 gk20a_fifo_engine_interrupt_mask(struct gk20a *g); |
179 | u32 gk20a_fifo_get_pbdma_signature(struct gk20a *g); | 179 | u32 gk20a_fifo_get_pbdma_signature(struct gk20a *g); |
180 | u32 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__*/ |