summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
authorDavid Nieto <dmartineznie@nvidia.com>2017-01-19 19:04:50 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-02-08 14:32:24 -0500
commit73243017514ac509c3a91224286f2bcf9f5a95bd (patch)
tree637443ce8387c18d1c9c27d09e1c7f7b982f79fb /drivers/gpu/nvgpu/gk20a/gk20a.h
parent27dd1ce475183d00686ffa62d4cffee4786ab66d (diff)
gpu: nvgpu: enable PCI MSI interrupts
Use MSI interrupts instead of legacy on PCIe dGPUs to reduce latency and contention with other PCIe devices JIRA EVLR-986 Change-Id: I6cecc7e62e5797860d42a5bee21e8f4f664e1b18 Signed-off-by: David Nieto <dmartineznie@nvidia.com> Reviewed-on: http://git-master/r/1291758 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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index 19fa4e26..72f9170e 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -780,6 +780,9 @@ struct gpu_ops {
780 void (*xve_writel)(struct gk20a *g, u32 reg, u32 val); 780 void (*xve_writel)(struct gk20a *g, u32 reg, u32 val);
781 void (*disable_aspm)(struct gk20a *g); 781 void (*disable_aspm)(struct gk20a *g);
782 void (*reset_gpu)(struct gk20a *g); 782 void (*reset_gpu)(struct gk20a *g);
783#if defined(CONFIG_PCI_MSI)
784 void (*rearm_msi)(struct gk20a *g);
785#endif
783 } xve; 786 } xve;
784}; 787};
785 788
@@ -1037,6 +1040,11 @@ struct gk20a {
1037 1040
1038 /* Current warning temp in sfxp24.8 */ 1041 /* Current warning temp in sfxp24.8 */
1039 s32 curr_warn_temp; 1042 s32 curr_warn_temp;
1043
1044#if defined(CONFIG_PCI_MSI)
1045 /* Check if msi is enabled */
1046 bool msi_enabled;
1047#endif
1040}; 1048};
1041 1049
1042static inline unsigned long gk20a_get_gr_idle_timeout(struct gk20a *g) 1050static inline unsigned long gk20a_get_gr_idle_timeout(struct gk20a *g)