patch 'eal/freebsd: fix memseg addresses in VA mode' has been queued to stable release 24.11.7
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Thu Jun 11 15:20:16 CEST 2026
Hi,
FYI, your patch has been queued to stable release 24.11.7
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 06/13/26. So please
shout if anyone has objections.
Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.
Queued patches are on a temporary branch at:
https://github.com/bluca/dpdk-stable
This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/e87c527b044750aa66b6d7e0dceb78455b754ec4
Thanks.
Luca Boccassi
---
>From e87c527b044750aa66b6d7e0dceb78455b754ec4 Mon Sep 17 00:00:00 2001
From: Bruce Richardson <bruce.richardson at intel.com>
Date: Mon, 25 May 2026 18:13:39 +0100
Subject: [PATCH] eal/freebsd: fix memseg addresses in VA mode
[ upstream commit 8e77ab799ea2c5abd5f4b145459897dada2d848a ]
In BSD, when mapping the contigmem segments, the iova is unconditionally
set to the physical address, irrespective of the actual IOVA mode.
Change this to use virtual addresses when iova mode is IOVA_AS_VA.
Fixes: 764bf26873b9 ("add FreeBSD support")
Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
---
lib/eal/freebsd/eal_memory.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lib/eal/freebsd/eal_memory.c b/lib/eal/freebsd/eal_memory.c
index a6f3ba226e..14a447b984 100644
--- a/lib/eal/freebsd/eal_memory.c
+++ b/lib/eal/freebsd/eal_memory.c
@@ -196,7 +196,10 @@ rte_eal_hugepage_init(void)
}
seg->addr = addr;
- seg->iova = physaddr;
+ if (rte_eal_iova_mode() == RTE_IOVA_VA)
+ seg->iova = (uintptr_t)addr;
+ else
+ seg->iova = physaddr;
seg->hugepage_sz = page_sz;
seg->len = page_sz;
seg->nchannel = mcfg->nchannel;
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-06-11 14:20:03.979362269 +0100
+++ 0067-eal-freebsd-fix-memseg-addresses-in-VA-mode.patch 2026-06-11 14:20:01.278747537 +0100
@@ -1 +1 @@
-From 8e77ab799ea2c5abd5f4b145459897dada2d848a Mon Sep 17 00:00:00 2001
+From e87c527b044750aa66b6d7e0dceb78455b754ec4 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 8e77ab799ea2c5abd5f4b145459897dada2d848a ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org
@@ -19 +20 @@
-index cd608db9f9..e56d149a22 100644
+index a6f3ba226e..14a447b984 100644
@@ -22 +23 @@
-@@ -214,7 +214,10 @@ rte_eal_hugepage_init(void)
+@@ -196,7 +196,10 @@ rte_eal_hugepage_init(void)
More information about the stable
mailing list