* [PATCH] test: eal: update base-virtaddr parameter test
@ 2023-07-20 13:09 Aaron Conole
2023-07-20 14:07 ` Ajit Khaparde
0 siblings, 1 reply; 3+ messages in thread
From: Aaron Conole @ 2023-07-20 13:09 UTC (permalink / raw)
To: dev; +Cc: Patrick Robb, Ajit Khaparde, stuart.schacher, farah.smith, sbhosle
When 97435d7906 ("net/bnxt: update Truflow core") was applied, it introduced
a number of static variables. These ended up filling the lower address space
enough that on some platforms, the min addr for heap address to start was
not within the range specified by base-virtaddr. This is dependent on both
build and link time options.
The simplest resolution is to just update the base virtaddr parameter to
move the rte config location.
Reported-by: Patrick Robb <probb@iol.unh.edu>
Suggested-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Signed-off-by: Aaron Conole <aconole@redhat.com>
---
app/test/test_eal_flags.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/test/test_eal_flags.c b/app/test/test_eal_flags.c
index d2b91e2075..148e9098e8 100644
--- a/app/test/test_eal_flags.c
+++ b/app/test/test_eal_flags.c
@@ -1017,7 +1017,7 @@ test_misc_flags(void)
/* try running with base-virtaddr param */
const char *argv13[] = {prgname, "--file-prefix=virtaddr",
- "--base-virtaddr=0x12345678"};
+ "--base-virtaddr=0x23456789"};
/* try running with --vfio-intr INTx flag */
const char *argv14[] = {prgname, "--file-prefix=intr",
--
2.40.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] test: eal: update base-virtaddr parameter test
2023-07-20 13:09 [PATCH] test: eal: update base-virtaddr parameter test Aaron Conole
@ 2023-07-20 14:07 ` Ajit Khaparde
2023-07-22 13:32 ` Thomas Monjalon
0 siblings, 1 reply; 3+ messages in thread
From: Ajit Khaparde @ 2023-07-20 14:07 UTC (permalink / raw)
To: Aaron Conole; +Cc: dev, Patrick Robb, stuart.schacher, farah.smith, sbhosle
[-- Attachment #1: Type: text/plain, Size: 1484 bytes --]
On Thu, Jul 20, 2023 at 6:09 AM Aaron Conole <aconole@redhat.com> wrote:
>
> When 97435d7906 ("net/bnxt: update Truflow core") was applied, it introduced
> a number of static variables. These ended up filling the lower address space
> enough that on some platforms, the min addr for heap address to start was
> not within the range specified by base-virtaddr. This is dependent on both
> build and link time options.
>
> The simplest resolution is to just update the base virtaddr parameter to
> move the rte config location.
>
> Reported-by: Patrick Robb <probb@iol.unh.edu>
> Suggested-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
> Signed-off-by: Aaron Conole <aconole@redhat.com>
ACK.
I tested again and the test passed with this change. Thanks.
> ---
> app/test/test_eal_flags.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/app/test/test_eal_flags.c b/app/test/test_eal_flags.c
> index d2b91e2075..148e9098e8 100644
> --- a/app/test/test_eal_flags.c
> +++ b/app/test/test_eal_flags.c
> @@ -1017,7 +1017,7 @@ test_misc_flags(void)
>
> /* try running with base-virtaddr param */
> const char *argv13[] = {prgname, "--file-prefix=virtaddr",
> - "--base-virtaddr=0x12345678"};
> + "--base-virtaddr=0x23456789"};
>
> /* try running with --vfio-intr INTx flag */
> const char *argv14[] = {prgname, "--file-prefix=intr",
> --
> 2.40.1
>
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4218 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] test: eal: update base-virtaddr parameter test
2023-07-20 14:07 ` Ajit Khaparde
@ 2023-07-22 13:32 ` Thomas Monjalon
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2023-07-22 13:32 UTC (permalink / raw)
To: Aaron Conole
Cc: dev, Patrick Robb, stuart.schacher, farah.smith, sbhosle, Ajit Khaparde
20/07/2023 16:07, Ajit Khaparde:
> On Thu, Jul 20, 2023 at 6:09 AM Aaron Conole <aconole@redhat.com> wrote:
> >
> > When 97435d7906 ("net/bnxt: update Truflow core") was applied, it introduced
> > a number of static variables. These ended up filling the lower address space
> > enough that on some platforms, the min addr for heap address to start was
> > not within the range specified by base-virtaddr. This is dependent on both
> > build and link time options.
> >
> > The simplest resolution is to just update the base virtaddr parameter to
> > move the rte config location.
> >
> > Reported-by: Patrick Robb <probb@iol.unh.edu>
> > Suggested-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
> > Signed-off-by: Aaron Conole <aconole@redhat.com>
> ACK.
> I tested again and the test passed with this change. Thanks.
Applied, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-07-22 13:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-20 13:09 [PATCH] test: eal: update base-virtaddr parameter test Aaron Conole
2023-07-20 14:07 ` Ajit Khaparde
2023-07-22 13:32 ` Thomas Monjalon
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).