summaryrefslogtreecommitdiffstats
path: root/driver/rdma.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2024-06-18 23:59:02 +0200
committerSuren A. Chilingaryan <csa@suren.me>2024-06-18 23:59:02 +0200
commitedd98859027a0f970cbccedb4180a7893556350e (patch)
treeee76cf38ae7257aaa25cc49d34d4559b846be52d /driver/rdma.c
parent41e2dee6a212073beef2ef7d5d9fca8ed1845005 (diff)
downloadpcitool-master.tar.gz
pcitool-master.tar.bz2
pcitool-master.tar.xz
pcitool-master.zip
Support for kernels 6.x: compilation tested on Ubuntu 23.10 & 24.04 & operation on Debian 12.5. This still might contain incompatibilities for some earlier kernel versions as I was relaying on ChatGPT to find which exact kernel version was introducing particular changesHEADmaster
Diffstat (limited to 'driver/rdma.c')
-rw-r--r--driver/rdma.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/driver/rdma.c b/driver/rdma.c
index 3b5dcaa..7684842 100644
--- a/driver/rdma.c
+++ b/driver/rdma.c
@@ -44,6 +44,7 @@ static unsigned long pcidriver_follow_pte(struct mm_struct *mm, unsigned long ad
if (pmd_none(*pmd))
return 0;
+ // Seems not available out of kernel tree. See: https://lkml.indiana.edu/hypermail/linux/kernel/2307.3/08004.html
pte = pte_offset_map_lock(mm, pmd, address, &ptl);
if (!pte_none(*pte))
pfn = (pte_pfn(*pte) << PAGE_SHIFT);