summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
diff options
context:
space:
mode:
authorDavid Nieto <dmartineznie@nvidia.com>2017-02-06 18:44:55 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-03-14 14:46:38 -0400
commit403874fa75dbb00e974a8d0f88b6e92be01ba42e (patch)
tree0492e82ded3c4ce7ee4438b29bcadc2db9472279 /drivers/gpu/nvgpu/gk20a/gr_gk20a.c
parent4deb494ad114088f5253d02d9ec31f9aaeb2778a (diff)
gpu: nvgpu: refactor interrupt handling
JIRA: EVLR-1004 (*) Refactor the non-stalling interrupt path to execute clear on the top half, so on dGPU case processing of stalling interrupts does not block non-stalling one. (*) Use a worker thread to do semaphore wakeups and allow batching of the non-stalling operations. (*) Fix a bug where some gpus will not properly track the completion of interrupts, preventing safe driver unloads Change-Id: Icc90a3acba544c97ec6a9285ab235d337ab9eefa Signed-off-by: David Nieto <dmartineznie@nvidia.com> Reviewed-on: http://git-master/r/1312796 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Lakshmanan M <lm@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: Navneet Kumar <navneetk@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
index 3ab63862..afa665ab 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
@@ -6582,6 +6582,7 @@ int gk20a_gr_isr(struct gk20a *g)
6582 6582
6583int gk20a_gr_nonstall_isr(struct gk20a *g) 6583int gk20a_gr_nonstall_isr(struct gk20a *g)
6584{ 6584{
6585 int ops = 0;
6585 u32 gr_intr = gk20a_readl(g, gr_intr_nonstall_r()); 6586 u32 gr_intr = gk20a_readl(g, gr_intr_nonstall_r());
6586 6587
6587 gk20a_dbg(gpu_dbg_intr, "pgraph nonstall intr %08x", gr_intr); 6588 gk20a_dbg(gpu_dbg_intr, "pgraph nonstall intr %08x", gr_intr);
@@ -6590,11 +6591,10 @@ int gk20a_gr_nonstall_isr(struct gk20a *g)
6590 /* Clear the interrupt */ 6591 /* Clear the interrupt */
6591 gk20a_writel(g, gr_intr_nonstall_r(), 6592 gk20a_writel(g, gr_intr_nonstall_r(),
6592 gr_intr_nonstall_trap_pending_f()); 6593 gr_intr_nonstall_trap_pending_f());
6593 /* Wakeup all the waiting channels */ 6594 ops |= (gk20a_nonstall_ops_wakeup_semaphore |
6594 gk20a_channel_semaphore_wakeup(g, true); 6595 gk20a_nonstall_ops_post_events);
6595 } 6596 }
6596 6597 return ops;
6597 return 0;
6598} 6598}
6599 6599
6600int gr_gk20a_fecs_get_reglist_img_size(struct gk20a *g, u32 *size) 6600int gr_gk20a_fecs_get_reglist_img_size(struct gk20a *g, u32 *size)