config: disable iova phys for dpaa and 1588 for dpaa2
PATCH 1/1 config: disable iova phys for dpaa and 1588 for dpaa2
IOVA_PHYS flag is not required in the DPAA config, thus disable it. Also, disable the 1588 timer support by default on DPAA2 platform due to the performance impact
---
This patch is rebase over dpdk-next-net
config/defconfig_arm64-dpaa-linuxapp-gcc | 2 ++
config/defconfig_arm64-dpaa2-linuxapp-gcc | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-)
config/defconfig_arm64-dpaa-linuxapp-gcc +2 -0
@@ -24,3 +24,5 @@ CONFIG_RTE_LIBRTE_DPAA_HWDEBUG=n # NXP CAAM_JR driver CONFIG_RTE_LIBRTE_PMD_CAAM_JR_BE=y + +CONFIG_RTE_LIBRTE_DPAA2_USE_PHYS_IOVA=n
config/defconfig_arm64-dpaa2-linuxapp-gcc +2 -2
@@ -15,8 +15,8 @@ CONFIG_RTE_CACHE_LINE_SIZE=64 CONFIG_RTE_PKTMBUF_HEADROOM=128 -# Enable IEEE1588, Keep it disable by default -CONFIG_RTE_LIBRTE_IEEE1588=y +# Disable IEEE1588 by default +CONFIG_RTE_LIBRTE_IEEE1588=n # Doesn't support NUMA CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=n
Signature · 1 line
2.17.1
Quoted 4 lines · Nipun Gupta
IOVA_PHYSflag is not required in the DPAA config, thus disable it. Also, disable the 1588 timer support by default on DPAA2 platform due to the performance impact
With this patch, we don't have a single target using the 1588 timer support. This means that it will get broken in the future.
Is this used?
Quoted 2 lines
Signed-off-by Nipun Gupta <[email protected]>
With this patch, the meson configuration is unaligned with the make configuration.
If I look before the patch:
origin/master:config/meson.build:dpdk_conf.set('RTE_LIBRTE_DPAA2_USE_PHYS_IOVA', true)
origin/master:config/arm/meson.build:
['RTE_LIBRTE_DPAA2_USE_PHYS_IOVA', false]]
origin/master:config/common_base:CONFIG_RTE_LIBRTE_DPAA2_USE_PHYS_IOVA=y origin/master:config/defconfig_arm64-dpaa2-linuxapp-gcc:CONFIG_RTE_LIBRTE_DPAA2_USE_PHYS_IOVA=n
And in the history, I understand:
- option (with dpaa2 in the name) introduced and enabled for all
- later, disabled for dpaa2
Does it mean the option can be removed?
Signature · 1 line
David Marchand
Hi David,
Quoted 12 lines
-----Original Message-----
From: David Marchand <[email protected]>
Sent: Sunday, October 27, 2019 4:33 PM
To: Nipun Gupta <[email protected]>
Cc: dev <[email protected]>; Yigit, Ferruh <[email protected]>; Hemant Agrawal <[email protected]>; Sachin Saxena <[email protected]>; Thomas Monjalon <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] config: disable iova phys for dpaa and 1588 for dpaa2Quoted 1 line · Nipun Gupta
Quoted 8 lines
Quoted 3 lines
IOVA_PHYSflag is not required in the DPAA config, thus disable it. Also, disable the 1588 timer support by default on DPAA2 platform due to the performance impactWith this patch, we don't have a single target using the 1588 timer support. This means that it will get broken in the future.
Is this used?
Yes, this is enabled when PTP client application is used. We have by default disabled it because it has performance implications. We enable it in our system testing from time to time basis.
Quoted 6 lines
Quoted 3 lines
Signed-off-by Nipun Gupta <[email protected]>With this patch, the meson configuration is unaligned with the make configuration.
I am not sure if I get this. In meson build as you mentioned:
- config/meson.build:dpdk_conf.set('RTE_LIBRTE_DPAA2_USE_PHYS_IOVA', true)
- config/arm/meson.build: ['RTE_LIBRTE_DPAA2_USE_PHYS_IOVA', false]]
And in Makefile:
config/common_base: CONFIG_RTE_LIBRTE_DPAA2_USE_PHYS_IOVA=y config/defconfig_arm64-dpaa2-linuxapp-gcc:CONFIG_RTE_LIBRTE_DPAA2_USE_PHYS_IOVA=n
And now we have:
config/defconfig_arm64-dpaa-linuxapp-gcc:CONFIG_RTE_LIBRTE_DPAA2_USE_PHYS_IOVA=n
Can you please let me know if I need to make any change for meson build.
Quoted 14 lines
If I look before the patch:
origin/master:config/meson.build:dpdk_conf.set('RTE_LIBRTE_DPAA2_USE_
PHYS_IOVA',
true)
origin/master:config/arm/meson.build:
['RTE_LIBRTE_DPAA2_USE_PHYS_IOVA', false]]origin/master:config/common_base:CONFIG_RTE_LIBRTE_DPAA2_USE_PHY S_IOVA=y origin/master:config/defconfig_arm64-dpaa2-linuxapp- gcc:CONFIG_RTE_LIBRTE_DPAA2_USE_PHYS_IOVA=n
Quoted 5 lines
And in the history, I understand:
- option (with dpaa2 in the name) introduced and enabled for all
- later, disabled for dpaa2Does it mean the option can be removed?
Here again, we use this option when running DPDK in Virtual Machine (Direct Assignment). By default this option is disabled, but for VM scenarios we use this option extensively.
Thanks,
Nipun
Quoted 4 lines
--
David Marchand
Quoted 19 lines · Nipun Gupta
Hi David,
Quoted 16 lines
-----Original Message-----
From: David Marchand <[email protected]>
Sent: Sunday, October 27, 2019 4:33 PM
To: Nipun Gupta <[email protected]>
Cc: dev <[email protected]>; Yigit, Ferruh <[email protected]>; Hemant Agrawal <[email protected]>; Sachin Saxena <[email protected]>; Thomas Monjalon <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] config: disable iova phys for dpaa and 1588 for dpaa2Quoted 4 lines · Nipun Gupta
IOVA_PHYSflag is not required in the DPAA config, thus disable it. Also, disable the 1588 timer support by default on DPAA2 platform due to the performance impact
Quoted 8 lines
Quoted 4 lines
With this patch, we don't have a single target using the 1588 timer support. This means that it will get broken in the future.
Is this used?
Yes, this is enabled when PTP client application is used. We have by default disabled it because it has performance implications. We enable it in our system testing from time to time basis.
Ok, but beware that, starting from now, we (maintainers) won't see that the compilation gets broken with this feature enabled. Hope you can catch issues quickly.
Quoted 7 lines
Quoted 2 lines
With this patch, the meson configuration is unaligned with the make configuration.
I am not sure if I get this. In meson build as you mentioned:
- config/meson.build:dpdk_conf.set('RTE_LIBRTE_DPAA2_USE_PHYS_IOVA', true)
- config/arm/meson.build: ['RTE_LIBRTE_DPAA2_USE_PHYS_IOVA', false]]
Quoted 8 lines
And in
Makefile:
config/common_base:CONFIG_RTE_LIBRTE_DPAA2_USE_PHYS_IOVA=yconfig/defconfig_arm64-dpaa2-linuxapp-gcc:CONFIG_RTE_LIBRTE_DPAA2_USE_PHYS_IOVA=nAnd now we have:
config/defconfig_arm64-dpaa-linuxapp-gcc:CONFIG_RTE_LIBRTE_DPAA2_USE_PHYS_IOVA=nCan you please let me know if I need to make any change for meson build.
You updated the configuration for the dpaa machine in make. config/arm/meson.build: ['RTE_LIBRTE_DPAA2_USE_PHYS_IOVA', false]] only applies to dpaa2.
So in meson, the dpaa machine still has RTE_LIBRTE_DPAA2_USE_PHYS_IOVA=y
Quoted 15 lines
Quoted 15 lines
If I look before the patch:
origin/master:config/meson.build:dpdk_conf.set('RTE_LIBRTE_DPAA2_USE_
PHYS_IOVA',
true)
origin/master:config/arm/meson.build:
['RTE_LIBRTE_DPAA2_USE_PHYS_IOVA', false]]origin/master:config/common_base:CONFIG_RTE_LIBRTE_DPAA2_USE_PHY S_IOVA=y origin/master:config/defconfig_arm64-dpaa2-linuxapp- gcc:CONFIG_RTE_LIBRTE_DPAA2_USE_PHYS_IOVA=n
Quoted 8 lines
Quoted 5 lines
And in the history, I understand:
- option (with dpaa2 in the name) introduced and enabled for all
- later, disabled for dpaa2Does it mean the option can be removed?
Here again, we use this option when running DPDK in Virtual Machine (Direct Assignment). By default this option is disabled, but for VM scenarios we use this option extensively.
I don't understand when or on which platform you want this enabled/disabled.
If this option is supposed to be disabled by default, then the value in those files (below) should be changed to n/false. config/common_base:CONFIG_RTE_LIBRTE_DPAA2_USE_PHYS_IOVA=y config/meson.build:dpdk_conf.set('RTE_LIBRTE_DPAA2_USE_PHYS_IOVA', true) doc/guides/nics/dpaa2.rst:- ``CONFIG_RTE_LIBRTE_DPAA2_USE_PHYS_IOVA`` (default ``y``)
And then, we end up in the same situation than described above with no configuration referencing this option enabled.
Please clarify.
--
David Marchand
Hi David,
Quoted 21 lines
Quoted 4 lines
Quoted 4 lines
-----Original Message-----
From: David Marchand <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] config: disable iova phys for dpaa and1588
Quoted 3 lines
Quoted 3 lines
for dpaa2
On Fri, Oct 4, 2019 at 1:26 PM Nipun Gupta <[email protected]>
Quoted 6 lines · wrote:
Quoted 6 lines
Quoted 4 lines
IOVA_PHYSflag is not required in the DPAA config, thus disable it. Also, disable the 1588 timer support by default on DPAA2 platform due to the performance impactWith this patch, we don't have a single target using the 1588 timer
support.
Quoted 5 lines
Quoted 3 lines
This means that it will get broken in the future.
Is this used?
Yes, this is enabled when PTP client application is used. We have by default
Quoted 8 lines
disabled it
Quoted 1 line
because it has performance implications. We enable it in our system testing
from time to
Quoted 1 line
time basis.
Ok, but beware that, starting from now, we (maintainers) won't see that the compilation gets broken with this feature enabled. Hope you can catch issues quickly.
Yes.. we will take care of it.
Quoted 60 lines
Quoted 7 lines
Quoted 4 lines
With this patch, the meson configuration is unaligned with the make configuration.
I am not sure if I get this. In meson build as you mentioned:
-config/meson.build:dpdk_conf.set('RTE_LIBRTE_DPAA2_USE_PHYS_IOVA', true)
Quoted 5 lines
- config/arm/meson.build: ['
RTE_LIBRTE_DPAA2_USE_PHYS_IOVA', false]]And in
Makefile:
config/common_base:CONFIG_RTE_LIBRTE_DPAA2_USE_PHYS_IOVA=yconfig/defconfig_arm64-dpaa2-linuxapp-gcc:CONFIG_RTE_LIBRTE_DPAA2_USE_PHYS_IOVA=n
Quoted 3 lines
And now we have:
config/defconfig_arm64-dpaa-linuxapp-gcc:CONFIG_RTE_LIBRTE_DPAA2_USE_PHYS_IOVA=n
Quoted 2 lines
Can you please let me know if I need to make any change for meson build.
You updated the configuration for the dpaa machine in make. config/arm/meson.build: ['
RTE_LIBRTE_DPAA2_USE_PHYS_IOVA', false]] only applies to dpaa2.
So in meson, the dpaa machine still has RTE_LIBRTE_DPAA2_USE_PHYS_IOVA=yQuoted 5 lines
Quoted 5 lines
If I look before the patch:
origin/master:config/meson.build:dpdk_conf.set('RTE_LIBRTE_DPAA2_USE_
Quoted 6 lines
Quoted 6 lines
PHYS_IOVA',
true)
origin/master:config/arm/meson.build:
['RTE_LIBRTE_DPAA2_USE_PHYS_IOVA', false]]origin/master:config/common_base:CONFIG_RTE_LIBRTE_DPAA2_USE_PHY
Quoted 11 lines
Quoted 9 lines
S_IOVA=y origin/master:config/defconfig_arm64-dpaa2-linuxapp- gcc:CONFIG_RTE_LIBRTE_DPAA2_USE_PHYS_IOVA=n
And in the history, I understand:
- option (with dpaa2 in the name) introduced and enabled for all
- later, disabled for dpaa2Does it mean the option can be removed?
Here again, we use this option when running DPDK in Virtual Machine
(Direct Assignment).
Quoted 1 line
By default this option is disabled, but for VM scenarios we use this option
extensively.
I don't understand when or on which platform you want this enabled/disabled.
Quoted 8 lines
If this option is supposed to be disabled by default, then the value in those files (below) should be changed to n/false. config/common_base:CONFIG_RTE_LIBRTE_DPAA2_USE_PHYS_IOVA=y config/meson.build:dpdk_conf.set('RTE_LIBRTE_DPAA2_USE_PHYS_IOVA', true)
doc/guides/nics/dpaa2.rst:- ``CONFIG_RTE_LIBRTE_DPAA2_USE_PHYS_IOVA``
(default ``y``)
Reflecting and analyzing your comments, yes, there are discrepancies. I will send patch to clean it up.
Thanks,
Nipun
Quoted 9 lines
And then, we end up in the same situation than described above with no configuration referencing this option enabled.
Please clarify.
--
David Marchand
PATCH v2 1/1 config: disable 1588 timer support on DPAA2
In reply to Nipun GuptaThis patch disables the 1588 timer support by default on DPAA2 platform due to the performance impact.
By default it is disabled in the common/base, so remove the entry from DPAA2.
---
Changes in v2:
- Change only the 1588 timestamp option in DPAA2 and do not touch the CONFIG_RTE_LIBRTE_DPAA2_USE_PHYS_IOVA option.
config/defconfig_arm64-dpaa2-linuxapp-gcc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
config/defconfig_arm64-dpaa2-linuxapp-gcc +2 -2
@@ -15,8 +15,8 @@ CONFIG_RTE_CACHE_LINE_SIZE=64 CONFIG_RTE_PKTMBUF_HEADROOM=128 -# Enable IEEE1588, Keep it disable by default -CONFIG_RTE_LIBRTE_IEEE1588=y +# Disable IEEE1588 by default +CONFIG_RTE_LIBRTE_IEEE1588=n # Doesn't support NUMA CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=n
Signature · 1 line
2.17.1
Re: [dpdk-dev] [PATCH v2] config: disable 1588 timer support on DPAA2
Quoted 4 lines · Nipun Gupta
This patch disables the 1588 timer support by default on DPAA2 platform due to the performance impact.
By default it is disabled in the common/base, so remove the entry
config/common_base
Quoted 17 lines
from DPAA2.
Signed-off-by Nipun Gupta <[email protected]>---
Changes in v2:
- Change only the 1588 timestamp option in DPAA2 and do not touch theCONFIG_RTE_LIBRTE_DPAA2_USE_PHYS_IOVAoption.config/defconfig_arm64-dpaa2-linuxapp-gcc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)config/defconfig_arm64-dpaa2-linuxapp-gcc +0
-0
config/defconfig_arm64-dpaa2-linuxapp-gcc CONFIG_RTE_CACHE_LINE_SIZE=64 · line 19
Quoted 7 lines
config/defconfig_arm64-dpaa2-linuxapp-gcc +2
-2@@ -15,8 +15,8 @@ CONFIG_RTE_CACHE_LINE_SIZE=64 CONFIG_RTE_PKTMBUF_HEADROOM=128 -# Enable IEEE1588, Keep it disable by default -CONFIG_RTE_LIBRTE_IEEE1588=y +# Disable IEEE1588 by default +CONFIG_RTE_LIBRTE_IEEE1588=n
Removed this block when applying, since, as the commitlog mentioned, it is disabled by default.
Quoted 6 lines
config/defconfig_arm64-dpaa2-linuxapp-gcc +0
-1# Doesn't support NUMA CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=n --2.17.1
Applied, thanks.
--
David Marchand
Re: [dpdk-dev] [PATCH v2] config: disable 1588 timer support on DPAA2
In reply to Nipun Gupta