summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/nvgpu/gv11b/fifo_gv11b.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
index d3411d32..e4dd6a63 100644
--- a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
@@ -1375,6 +1375,33 @@ static bool gv11b_fifo_handle_ctxsw_timeout(struct gk20a *g, u32 fifo_intr)
1375 return ret; 1375 return ret;
1376} 1376}
1377 1377
1378static unsigned int gv11b_fifo_handle_pbdma_intr_0(struct gk20a *g,
1379 u32 pbdma_id, u32 pbdma_intr_0,
1380 u32 *handled, u32 *error_notifier)
1381{
1382 unsigned int rc_type = RC_TYPE_NO_RC;
1383
1384 rc_type = gk20a_fifo_handle_pbdma_intr_0(g, pbdma_id,
1385 pbdma_intr_0, handled, error_notifier);
1386
1387 if (pbdma_intr_0 & pbdma_intr_0_clear_faulted_error_pending_f()) {
1388 gk20a_dbg(gpu_dbg_intr, "clear faulted error on pbdma id %d",
1389 pbdma_id);
1390 gk20a_fifo_reset_pbdma_method(g, pbdma_id, 0);
1391 *handled |= pbdma_intr_0_clear_faulted_error_pending_f();
1392 rc_type = RC_TYPE_PBDMA_FAULT;
1393 }
1394
1395 if (pbdma_intr_0 & pbdma_intr_0_eng_reset_pending_f()) {
1396 gk20a_dbg(gpu_dbg_intr, "eng reset intr on pbdma id %d",
1397 pbdma_id);
1398 *handled |= pbdma_intr_0_eng_reset_pending_f();
1399 rc_type = RC_TYPE_PBDMA_FAULT;
1400 }
1401
1402 return rc_type;
1403}
1404
1378void gv11b_init_fifo(struct gpu_ops *gops) 1405void gv11b_init_fifo(struct gpu_ops *gops)
1379{ 1406{
1380 gp10b_init_fifo(gops); 1407 gp10b_init_fifo(gops);
@@ -1407,4 +1434,6 @@ void gv11b_init_fifo(struct gpu_ops *gops)
1407 gops->fifo.teardown_ch_tsg = gv11b_fifo_teardown_ch_tsg; 1434 gops->fifo.teardown_ch_tsg = gv11b_fifo_teardown_ch_tsg;
1408 gops->fifo.handle_sched_error = gv11b_fifo_handle_sched_error; 1435 gops->fifo.handle_sched_error = gv11b_fifo_handle_sched_error;
1409 gops->fifo.handle_ctxsw_timeout = gv11b_fifo_handle_ctxsw_timeout; 1436 gops->fifo.handle_ctxsw_timeout = gv11b_fifo_handle_ctxsw_timeout;
1437 gops->fifo.handle_pbdma_intr_0 =
1438 gv11b_fifo_handle_pbdma_intr_0;
1410} 1439}