From 293430fcb5d4013b573556c58457ee706e482b7f Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Mon, 5 May 2025 03:53:01 -0400 Subject: Snapshot for ECRTS'25 artifact evaluation --- nvdebug_linux.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nvdebug_linux.h') 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) { #define pde_data PDE_DATA #endif +// iommu_map() requires an extra parameter on Linux 6.3+ +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,3,0) +#define iommu_map(a, b, c, d, e) iommu_map(a, b, c, d, e, GFP_KERNEL) +#endif + // We us the data field of the proc_dir_entry ("PDE" in this function) to store // our index into the g_nvdebug_state array static inline int seq2gpuidx(struct seq_file *s) { -- cgit v1.2.2