summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
authorSeema Khowala <seemaj@nvidia.com>2017-03-01 16:40:32 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-03-30 19:39:11 -0400
commitf21659431f47722bc7596aa72d22a268967ea696 (patch)
tree3bd6d1167df2cd2411f092cf4f00120c4e622c8d /drivers/gpu/nvgpu/gk20a/gk20a.h
parent8aa218e0ec54bfca3ad6d6d67a3b936c56335644 (diff)
gpu: ngpu: add fb ops for hub isr
If supported, detect and handle hub interrupt JIRA GPUT19X-7 Change-Id: I431c92160636afb2bc94ff2677614023de595681 Signed-off-by: Seema Khowala <seemaj@nvidia.com> Reviewed-on: http://git-master/r/1313452 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index e3dad962..d781034c 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -368,6 +368,7 @@ struct gpu_ops {
368 bool (*is_debug_mode_enabled)(struct gk20a *g); 368 bool (*is_debug_mode_enabled)(struct gk20a *g);
369 void (*set_debug_mode)(struct gk20a *g, bool enable); 369 void (*set_debug_mode)(struct gk20a *g, bool enable);
370 void (*tlb_invalidate)(struct gk20a *g, struct mem_desc *pdb); 370 void (*tlb_invalidate)(struct gk20a *g, struct mem_desc *pdb);
371 void (*hub_isr)(struct gk20a *g);
371 } fb; 372 } fb;
372 struct { 373 struct {
373 void (*slcg_bus_load_gating_prod)(struct gk20a *g, bool prod); 374 void (*slcg_bus_load_gating_prod)(struct gk20a *g, bool prod);
@@ -758,6 +759,7 @@ struct gpu_ops {
758 irqreturn_t (*isr_thread_stall)(struct gk20a *g); 759 irqreturn_t (*isr_thread_stall)(struct gk20a *g);
759 void (*isr_thread_nonstall)(struct gk20a *g, u32 intr); 760 void (*isr_thread_nonstall)(struct gk20a *g, u32 intr);
760 void (*isr_nonstall_cb)(struct work_struct *work); 761 void (*isr_nonstall_cb)(struct work_struct *work);
762 bool (*is_intr_hub_pending)(struct gk20a *g, u32 mc_intr);
761 u32 intr_mask_restore[4]; 763 u32 intr_mask_restore[4];
762 void (*enable)(struct gk20a *g, u32 units); 764 void (*enable)(struct gk20a *g, u32 units);
763 void (*disable)(struct gk20a *g, u32 units); 765 void (*disable)(struct gk20a *g, u32 units);