config/arm: enable rcpc feature on neoverse n1
PATCH 1/1 config/arm: enable rcpc feature on neoverse n1
Enable rcpc meson configuration for Neoverse N1 platform.
--- config/arm/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
config/arm/meson.build +1 -1
@@ -65,7 +65,7 @@ part_number_config_arm = { '0xd0b': {'compiler_options': ['-mcpu=cortex-a76']}, '0xd0c': { 'march': 'armv8.2-a', - 'march_features': ['crypto'], + 'march_features': ['crypto', 'rcpc'], 'compiler_options': ['-mcpu=neoverse-n1'], 'flags': [ ['RTE_MACHINE', '"neoverse-n1"'],
Signature · 1 line
2.25.1
20/03/2023 04:26, Joyce Kong:
Quoted 1 line
Enable rcpc meson configuration for Neoverse N1 platform.
Please could you explain what it is in the commit message?
Quoted 2 lines
config/arm/meson.build +1
-1- 'march_features': ['crypto'], + 'march_features': ['crypto', 'rcpc'],
Quoted 8 lines
-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Tuesday, March 21, 2023 12:10 AM
To: [email protected]; Joyce Kong <[email protected]>
Cc: Ruifeng Wang <[email protected]>; Bruce Richardson <[email protected]>; nd <[email protected]>
Subject: Re: [PATCH] config/arm: enable rcpc feature on neoverse n1
Quoted 5 lines
20/03/2023 04:26, Joyce Kong:
Quoted 1 line
Enable rcpc meson configuration for Neoverse N1 platform.
Please could you explain what it is in the commit message?
Sure, I shall send out another version with the explanation.
Quoted 3 lines
Quoted 2 lines
config/arm/meson.build +1
-1- 'march_features': ['crypto'], + 'march_features': ['crypto', 'rcpc'],
PATCH v2 1/1 config/arm: support ldapr on neoverse n1
In reply to Joyce KongArmv8.3 introduced a LDAPR instruction that has weaker guarantees, just sufficient to implement memory_order_acq_rel. LDAPR does not wait for previous STLR to complete. And if the same location is used in both, it does not force the write to be globally observed. The new instruction can avoid some costs associated with LDAR.
GCC13.0 has supported LDAPR.
For Armv8.3 and higher, LDAPR is default.
For Armv8.2 such as neoverse n1, LDAPR is supported with enabling rcpc feature.
For Armv8.1 and lower, LDAPR is not supported.
--- config/arm/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
config/arm/meson.build +1 -1
@@ -65,7 +65,7 @@ part_number_config_arm = { '0xd0b': {'compiler_options': ['-mcpu=cortex-a76']}, '0xd0c': { 'march': 'armv8.2-a', - 'march_features': ['crypto'], + 'march_features': ['crypto', 'rcpc'], 'compiler_options': ['-mcpu=neoverse-n1'], 'flags': [ ['RTE_MACHINE', '"neoverse-n1"'],
Signature · 1 line
2.25.1
Thomas Monjalon
AppliedRe: [PATCH v2] config/arm: support ldapr on neoverse n1
21/03/2023 10:44, Joyce Kong:
Quoted 6 lines
Armv8.3 introduced a LDAPR instruction that has weaker guarantees, just sufficient to implement
memory_order_acq_rel. LDAPR does not wait for previous STLR to complete. And if the same location is used in both, it does not force the write to be globally observed. The new instruction can avoid some costs associated with LDAR.
Quoted 8 lines
GCC13.0 has supported LDAPR.
For Armv8.3 and higher, LDAPR is default.
For Armv8.2 such as neoverse n1, LDAPR is supported with enabling rcpc feature.
For Armv8.1 and lower, LDAPR is not supported.Signed-off-by Joyce Kong <[email protected]>Reviewed-by Ruifeng Wang <[email protected]>
Applied, thanks.