summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mc_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mc_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mc_gk20a.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mc_gk20a.c b/drivers/gpu/nvgpu/gk20a/mc_gk20a.c
index 107c851c..65f1a119 100644
--- a/drivers/gpu/nvgpu/gk20a/mc_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/mc_gk20a.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * GK20A Master Control 2 * GK20A Master Control
3 * 3 *
4 * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved.
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify it 6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License, 7 * under the terms and conditions of the GNU General Public License,
@@ -88,6 +88,12 @@ irqreturn_t mc_gk20a_intr_thread_stall(struct gk20a *g)
88 88
89 gk20a_dbg(gpu_dbg_intr, "stall intr %08x\n", mc_intr_0); 89 gk20a_dbg(gpu_dbg_intr, "stall intr %08x\n", mc_intr_0);
90 90
91 /* handle critical interrupts first */
92 if (mc_intr_0 & mc_intr_0_pbus_pending_f())
93 gk20a_pbus_isr(g);
94 if (mc_intr_0 & mc_intr_0_priv_ring_pending_f())
95 gk20a_priv_ring_isr(g);
96
91 for (engine_id_idx = 0; engine_id_idx < g->fifo.num_engines; engine_id_idx++) { 97 for (engine_id_idx = 0; engine_id_idx < g->fifo.num_engines; engine_id_idx++) {
92 active_engine_id = g->fifo.active_engines_list[engine_id_idx]; 98 active_engine_id = g->fifo.active_engines_list[engine_id_idx];
93 99
@@ -112,12 +118,8 @@ irqreturn_t mc_gk20a_intr_thread_stall(struct gk20a *g)
112 gk20a_fifo_isr(g); 118 gk20a_fifo_isr(g);
113 if (mc_intr_0 & mc_intr_0_pmu_pending_f()) 119 if (mc_intr_0 & mc_intr_0_pmu_pending_f())
114 gk20a_pmu_isr(g); 120 gk20a_pmu_isr(g);
115 if (mc_intr_0 & mc_intr_0_priv_ring_pending_f())
116 gk20a_priv_ring_isr(g);
117 if (mc_intr_0 & mc_intr_0_ltc_pending_f()) 121 if (mc_intr_0 & mc_intr_0_ltc_pending_f())
118 g->ops.ltc.isr(g); 122 g->ops.ltc.isr(g);
119 if (mc_intr_0 & mc_intr_0_pbus_pending_f())
120 gk20a_pbus_isr(g);
121 123
122 /* sync handled irq counter before re-enabling interrupts */ 124 /* sync handled irq counter before re-enabling interrupts */
123 atomic_set(&g->sw_irq_stall_last_handled, hw_irq_count); 125 atomic_set(&g->sw_irq_stall_last_handled, hw_irq_count);