Skip to contentSkip to conversation

eal/arm64: fix aarch64 reg platform value

PATCH Applied Juraj Linkeš 4 participants 4 messages Apr 22, 2021 – May 4, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 eal/arm64: fix aarch64 reg platform value

REG_PLATFORM only uses bit 0 to indicate whether the value retrieved from hardware matches PLATFORM_STR.

Fixes 97523f822ba9 ("eal/arm: add CPU flags for ARMv8")
---
 lib/eal/arm/rte_cpuflags.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/eal/arm/rte_cpuflags.c +1 -1
index e3a53bcece..e709a2800e 100644
@@ -108,7 +108,7 @@ const struct feature_entry rte_cpu_feature_table[] = {
 	FEAT_DEF(SVEF32MM,	REG_HWCAP2,   10)
 	FEAT_DEF(SVEF64MM,	REG_HWCAP2,   11)
 	FEAT_DEF(SVEBF16,	REG_HWCAP2,   12)
-	FEAT_DEF(AARCH64,	REG_PLATFORM, 1)
+	FEAT_DEF(AARCH64,	REG_PLATFORM, 0)
 };
 #endif /* RTE_ARCH */
 
Signature · 1 line
2.20.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Juraj Linkeš

REG_PLATFORM only uses bit 0 to indicate whether the value retrieved from hardware matches PLATFORM_STR.

Fixes 97523f822ba9 ("eal/arm: add CPU flags for ARMv8")

Fixes and cc stable should go above Signoff.

Quoted 2 lines
Quoted 20 lines
---
 lib/eal/arm/rte_cpuflags.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/eal/arm/rte_cpuflags.c +1 -2
index e3a53bcece..e709a2800e 100644
@@ -108,7 +108,7 @@ const struct feature_entry rte_cpu_feature_table[] = {
        FEAT_DEF(SVEF32MM,      REG_HWCAP2,   10)
        FEAT_DEF(SVEF64MM,      REG_HWCAP2,   11)
        FEAT_DEF(SVEBF16,       REG_HWCAP2,   12)
-       FEAT_DEF(AARCH64,       REG_PLATFORM, 1)
+       FEAT_DEF(AARCH64,       REG_PLATFORM, 0)
 };
 #endif /* RTE_ARCH */
 
--

2.20.1

Reviewed-by on v1 1/1
#2 lore raw
In reply to Juraj Linkeš
Quoted 36 lines

-----Original Message-----
From: Juraj Linkeš <[email protected]>
Sent: Thursday, April 22, 2021 5:12 PM
To: [email protected]; [email protected]; Honnappa Nagarahalli <[email protected]>; Ruifeng Wang <[email protected]>; [email protected]
Cc: [email protected]; Juraj Linkeš <[email protected]>; [email protected]
Subject: [PATCH v1] eal/arm64: fix aarch64 reg platform value

REG_PLATFORM only uses bit 0 to indicate whether the value retrieved from hardware matches PLATFORM_STR.

Fixes 97523f822ba9 ("eal/arm: add CPU flags for ARMv8")
---
 lib/eal/arm/rte_cpuflags.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/eal/arm/rte_cpuflags.c index renamed from lib/eal/arm/rte_cpuflags.c +0 -0

e3a53bcece..e709a2800e 100644

lib/eal/arm/rte_cpuflags.c +1 -2
@@ -108,7 +108,7 @@ const struct feature_entry rte_cpu_feature_table[] =
 {
 	FEAT_DEF(SVEF32MM,	REG_HWCAP2,   10)
 	FEAT_DEF(SVEF64MM,	REG_HWCAP2,   11)
 	FEAT_DEF(SVEBF16,	REG_HWCAP2,   12)
-	FEAT_DEF(AARCH64,	REG_PLATFORM, 1)
+	FEAT_DEF(AARCH64,	REG_PLATFORM, 0)
 };
 #endif /* RTE_ARCH */
 
--
Quoted 1 line

2.20.1