patch 'dma/idxd: mark portal pointer as volatile' has been queued to stable release 25.11.1
Kevin Traynor
ktraynor at redhat.com
Thu Feb 26 14:10:25 CET 2026
Hi,
FYI, your patch has been queued to stable release 25.11.1
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 03/02/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/kevintraynor/dpdk-stable
This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/7b63c43b611800c07bf7710ba441cf6ac60c7265
Thanks.
Kevin
---
>From 7b63c43b611800c07bf7710ba441cf6ac60c7265 Mon Sep 17 00:00:00 2001
From: Bruce Richardson <bruce.richardson at intel.com>
Date: Mon, 26 Jan 2026 10:13:56 +0000
Subject: [PATCH] dma/idxd: mark portal pointer as volatile
[ upstream commit ab797d5bcf268e4ac7f2a856568bfcefd3cdb027 ]
The portal pointer for writing descriptors to the idxd device should be
volatile for consistency with how it is used. Only time we need to cast
away the volatility is when unmapping it.
Bugzilla ID: 1871
Fixes: e888bb1278c6 ("dma/idxd: add bus device probing")
Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
---
drivers/dma/idxd/idxd_bus.c | 2 +-
drivers/dma/idxd/idxd_internal.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/dma/idxd/idxd_bus.c b/drivers/dma/idxd/idxd_bus.c
index 5ae42151e6..9a8213bbbe 100644
--- a/drivers/dma/idxd/idxd_bus.c
+++ b/drivers/dma/idxd/idxd_bus.c
@@ -94,5 +94,5 @@ idxd_dev_close(struct rte_dma_dev *dev)
{
struct idxd_dmadev *idxd = dev->data->dev_private;
- munmap(idxd->portal, 0x1000);
+ munmap(RTE_CAST_PTR(void *, idxd->portal), 0x1000);
return 0;
}
diff --git a/drivers/dma/idxd/idxd_internal.h b/drivers/dma/idxd/idxd_internal.h
index b80a113455..d409213148 100644
--- a/drivers/dma/idxd/idxd_internal.h
+++ b/drivers/dma/idxd/idxd_internal.h
@@ -57,5 +57,5 @@ struct idxd_dmadev {
unsigned short batch_size;
- void *portal; /* address to write the batch descriptor */
+ volatile void *portal; /* address to write the batch descriptor */
struct idxd_completion *batch_comp_ring;
--
2.53.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-02-26 10:16:52.606675762 +0000
+++ 0143-dma-idxd-mark-portal-pointer-as-volatile.patch 2026-02-26 10:16:47.213349362 +0000
@@ -1 +1 @@
-From ab797d5bcf268e4ac7f2a856568bfcefd3cdb027 Mon Sep 17 00:00:00 2001
+From 7b63c43b611800c07bf7710ba441cf6ac60c7265 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit ab797d5bcf268e4ac7f2a856568bfcefd3cdb027 ]
+
@@ -12 +13,0 @@
-Cc: stable at dpdk.org
More information about the stable
mailing list