summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
diff options
context:
space:
mode:
authorSeema Khowala <seemaj@nvidia.com>2017-03-01 18:27:13 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-03-20 19:39:49 -0400
commit18a0a89f4535d2f14e4a282ac01482a4c3e2e805 (patch)
tree50c054b24094aa5b4acaa3add68eac22a108108e /drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
parentd5fe11091b6d74016e482d9c41580924cc70f520 (diff)
gpu: nvgpu: init intr_0_error_mask fifo ops
mmu fault is now part of hub interrupt Change-Id: I9ce523d5f11955ac9552510d154eaa2f17a6cbf6 Signed-off-by: Seema Khowala <seemaj@nvidia.com> Reviewed-on: http://git-master/r/1313484 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/fifo_gv11b.c')
-rw-r--r--drivers/gpu/nvgpu/gv11b/fifo_gv11b.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
index e33b8ee2..eb8f44d7 100644
--- a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
@@ -311,6 +311,18 @@ static void gv11b_dump_eng_status(struct gk20a *g,
311 gk20a_debug_output(o, "\n"); 311 gk20a_debug_output(o, "\n");
312} 312}
313 313
314static u32 gv11b_fifo_intr_0_error_mask(struct gk20a *g)
315{
316 u32 intr_0_error_mask =
317 fifo_intr_0_bind_error_pending_f() |
318 fifo_intr_0_sched_error_pending_f() |
319 fifo_intr_0_chsw_error_pending_f() |
320 fifo_intr_0_fb_flush_timeout_pending_f() |
321 fifo_intr_0_lb_error_pending_f();
322
323 return intr_0_error_mask;
324}
325
314void gv11b_init_fifo(struct gpu_ops *gops) 326void gv11b_init_fifo(struct gpu_ops *gops)
315{ 327{
316 gp10b_init_fifo(gops); 328 gp10b_init_fifo(gops);
@@ -333,4 +345,5 @@ void gv11b_init_fifo(struct gpu_ops *gops)
333 gops->fifo.dump_pbdma_status = gk20a_dump_pbdma_status; 345 gops->fifo.dump_pbdma_status = gk20a_dump_pbdma_status;
334 gops->fifo.dump_eng_status = gv11b_dump_eng_status; 346 gops->fifo.dump_eng_status = gv11b_dump_eng_status;
335 gops->fifo.dump_channel_status_ramfc = gv11b_dump_channel_status_ramfc; 347 gops->fifo.dump_channel_status_ramfc = gv11b_dump_channel_status_ramfc;
348 gops->fifo.intr_0_error_mask = gv11b_fifo_intr_0_error_mask;
336} 349}