From 73243017514ac509c3a91224286f2bcf9f5a95bd Mon Sep 17 00:00:00 2001 From: David Nieto Date: Thu, 19 Jan 2017 16:04:50 -0800 Subject: 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 Reviewed-on: http://git-master/r/1291758 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gk20a.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h') 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 { void (*xve_writel)(struct gk20a *g, u32 reg, u32 val); void (*disable_aspm)(struct gk20a *g); void (*reset_gpu)(struct gk20a *g); +#if defined(CONFIG_PCI_MSI) + void (*rearm_msi)(struct gk20a *g); +#endif } xve; }; @@ -1037,6 +1040,11 @@ struct gk20a { /* Current warning temp in sfxp24.8 */ s32 curr_warn_temp; + +#if defined(CONFIG_PCI_MSI) + /* Check if msi is enabled */ + bool msi_enabled; +#endif }; static inline unsigned long gk20a_get_gr_idle_timeout(struct gk20a *g) -- cgit v1.2.2