aboutsummaryrefslogtreecommitdiffstats
path: root/nvdebug_linux.h
diff options
context:
space:
mode:
Diffstat (limited to 'nvdebug_linux.h')
-rw-r--r--nvdebug_linux.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/nvdebug_linux.h b/nvdebug_linux.h
index 2ad4ce1..b232720 100644
--- a/nvdebug_linux.h
+++ b/nvdebug_linux.h
@@ -20,6 +20,11 @@ static inline struct gk20a *get_gk20a(struct device *dev) {
20#define pde_data PDE_DATA 20#define pde_data PDE_DATA
21#endif 21#endif
22 22
23// iommu_map() requires an extra parameter on Linux 6.3+
24#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,3,0)
25#define iommu_map(a, b, c, d, e) iommu_map(a, b, c, d, e, GFP_KERNEL)
26#endif
27
23// We us the data field of the proc_dir_entry ("PDE" in this function) to store 28// We us the data field of the proc_dir_entry ("PDE" in this function) to store
24// our index into the g_nvdebug_state array 29// our index into the g_nvdebug_state array
25static inline int seq2gpuidx(struct seq_file *s) { 30static inline int seq2gpuidx(struct seq_file *s) {