* [PATCH] test/debug: fix test failure on ppc64
@ 2025-11-25 10:39 luca.boccassi
0 siblings, 0 replies; only message in thread
From: luca.boccassi @ 2025-11-25 10:39 UTC (permalink / raw)
To: dev
From: Luca Boccassi <bluca@debian.org>
1001s Running binary with argv[]:'/tmp/autopkgtest.LvdXhc/build.6vT/src/build/app/dpdk-test' '--file-prefix=debug' '-l' '0' '--no-huge' '-m' '2048'
<...>
1001s EAL: Cannot use IOVA as 'PA' since physical addresses are not available
This is similar to 6b07762e949036389030cf5a1a9bb8a1e4d6ee2d,
on ppc64 iova-mode=pa is the default, but it doesn't work with --no-huge,
so add --iova-mode=va to the test arguments.
Fixes: 2b403dd8fb37 ("test/debug: fix crash with mlx5 devices")
Cc: stable@dpdk.org
Signed-off-by: Luca Boccassi <bluca@debian.org>
---
app/test/test_debug.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/app/test/test_debug.c b/app/test/test_debug.c
index fe5dd5b02d..5ff9068e2b 100644
--- a/app/test/test_debug.c
+++ b/app/test/test_debug.c
@@ -46,7 +46,7 @@ test_debug(void)
* ==========
*/
-static const char *test_args[7];
+static const char *test_args[8];
int
test_panic(void)
@@ -158,10 +158,17 @@ test_debug(void)
test_args[4] = "";
test_args[5] = "";
test_args[6] = "";
+ test_args[7] = "";
} else {
test_args[4] = "--no-huge";
test_args[5] = "-m";
test_args[6] = "2048";
+#ifdef RTE_ARCH_PPC_64
+ /* iova=pa is the default, but fails on ppc64 with --no-huge */
+ test_args[7] = "--iova-mode=va";
+#else
+ test_args[7] = "";
+#endif
}
rte_dump_stack();
--
2.47.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-11-25 10:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-25 10:39 [PATCH] test/debug: fix test failure on ppc64 luca.boccassi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).