Skip to contentSkip to conversation

More Arm FEAT_FOO documentation updates

PATCH Applied Alex Bennée 3 participants 11 messages Jul 8 – Jul 13

lore
Share & tools
lore
#0 lore raw

cover More Arm FEAT_FOO documentation updates

While reviewing the latest Arm ARM (M.c) I found a few more feature names that have been added for old existing features or we forgot to update in our emulation list.

These are all documentation updates so should be good for merging during softfreeze.

Alex.

Alex Bennée (8):
docs/system: declare support for FEAT_EVT2 docs/system: add big and little endian features names docs/system: document FEAT_Secure docs/system: document FEAT_MTE4
docs/system: document FEAT_IVIPT docs/system: fix sorting of FEAT_S2[PIE|FWB] docs/system: add FEAT_S2TGran[4|16|64]K features docs/system: add FEAT_HAF

 docs/system/arm/emulation.rst | 14 +++++++++++++-
 target/arm/cpu-max.c          |  2 +-
 2 files changed, 14 insertions(+), 2 deletions(-)
Signature · 1 line
2.47.3
#1 lore raw

PATCH 1/8 docs/system: declare support for FEAT_EVT2

The actual implementation supports the additional trapping registers of HCR_TTLBIS | HCR_TTLBOS. We already set the value to 2 for -cpu max and don't currently model any CPUs that only have FEAT_EVT.

---
 docs/system/arm/emulation.rst | 1 +
 target/arm/cpu-max.c          | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
docs/system/arm/emulation.rst +1 -0
index 4f413d69efc..fb8d263db49 100644
@@ -68,6 +68,7 @@ the following architecture extensions:
 - FEAT_EPAC (Enhanced pointer authentication)
 - FEAT_ETS2 (Enhanced Translation Synchronization)
 - FEAT_EVT (Enhanced Virtualization Traps)
+- FEAT_EVT2 (Enhanced Virtualization Traps 2)
 - FEAT_F8F16MM (8-bit floating-point matrix multiply-accumulate to half-precision)
 - FEAT_F8F32MM (8-bit floating-point matrix multiply-accumulate to single-precision)
 - FEAT_F32MM (Single-precision Matrix Multiplication)
target/arm/cpu-max.c +1 -1
index d38bdfcf811..88b7c046333 100644
@@ -130,7 +130,7 @@ void aa32_max_features(ARMCPU *cpu)
     t = FIELD_DP32(t, ID_MMFR4, AC2, 1);          /* ACTLR2, HACTLR2 */
     t = FIELD_DP32(t, ID_MMFR4, CNP, 1);          /* FEAT_TTCNP */
     t = FIELD_DP32(t, ID_MMFR4, XNX, 1);          /* FEAT_XNX */
-    t = FIELD_DP32(t, ID_MMFR4, EVT, 2);          /* FEAT_EVT */
+    t = FIELD_DP32(t, ID_MMFR4, EVT, 2);          /* FEAT_EVT2 */
     SET_IDREG(isar, ID_MMFR4, t);
 
     FIELD_DP32_IDREG(isar, ID_MMFR5, ETS, 2);          /* FEAT_ETS2 */
Signature · 1 line
2.47.3
#2 lore raw

PATCH 2/8 docs/system: add big and little endian features names

In reply to Alex Bennée

We've always supported these features but they have official feature names in the Arm ARM now so we should declare them for completeness.

---
 docs/system/arm/emulation.rst | 4 ++++
 1 file changed, 4 insertions(+)
docs/system/arm/emulation.rst +4 -0
index fb8d263db49..d19b6c04429 100644
@@ -31,6 +31,8 @@ the following architecture extensions:
 - FEAT_BBML1 (Translation table break-before-make level 1)
 - FEAT_BBML2 (Translation table break-before-make level 2)
 - FEAT_BF16 (AArch64 BFloat16 instructions)
+- FEAT_BigEnd (Support for big-endian at EL1 and above)
+- FEAT_BigEndEL0 (Support for big-endian at EL0)
 - FEAT_BTI (Branch Target Identification)
 - FEAT_CCIDX (Extended cache index)
 - FEAT_CHK (Check Feature Status)
@@ -103,6 +105,8 @@ the following architecture extensions:
 - FEAT_IDST (ID space trap handling)
 - FEAT_IESB (Implicit error synchronization event)
 - FEAT_JSCVT (JavaScript conversion instructions)
+- FEAT_LittleEnd (Support for little-endian at EL1 and above)
+- FEAT_LittleEndEL0 (Support for little-endian at EL0)
 - FEAT_LOR (Limited ordering regions)
 - FEAT_LPA (Large Physical Address space)
 - FEAT_LPA2 (Large Physical and virtual Address space v2)
Signature · 1 line
2.47.3
#3 lore raw

PATCH 3/8 docs/system: document FEAT_Secure

In reply to Alex Bennée

We have had support for Secure state ever since the initial TrustZone support.

---
 docs/system/arm/emulation.rst | 1 +
 1 file changed, 1 insertion(+)
docs/system/arm/emulation.rst +1 -0
index d19b6c04429..b751646e10e 100644
@@ -162,6 +162,7 @@ the following architecture extensions:
 - FEAT_S2FWB (Stage 2 forced Write-Back)
 - FEAT_SB (Speculation Barrier)
 - FEAT_SCTLR2 (Extension to SCTLR_ELx)
+- FEAT_Secure (Support for Secure state)
 - FEAT_SEL2 (Secure EL2)
 - FEAT_SHA1 (SHA1 instructions)
 - FEAT_SHA256 (SHA256 instructions)
Signature · 1 line
2.47.3
#4 lore raw

PATCH 4/8 docs/system: document FEAT_MTE4

In reply to Alex Bennée

FEAT_MTE4 includes the sub-features: FEAT_MTE_CANONICAL_TAGS, FEAT_MTE_TAGGED_FAR, FEAT_MTE_STORE_ONLY and FEAT_MTE_NO_ADDRESS_TAGS.

We have already implemented those so update the docs to include the rolled up feature.

---
 docs/system/arm/emulation.rst | 1 +
 1 file changed, 1 insertion(+)
docs/system/arm/emulation.rst +1 -0
index b751646e10e..05e85d7a367 100644
@@ -126,6 +126,7 @@ the following architecture extensions:
 - FEAT_MTE (Memory Tagging Extension)
 - FEAT_MTE2 (Memory Tagging Extension)
 - FEAT_MTE3 (MTE Asymmetric Fault Handling)
+- FEAT_MTE4 (Enhanced Memory Tagging Extension)
 - FEAT_MTE_ASYM_FAULT (Memory tagging asymmetric faults)
 - FEAT_MTE_ASYNC (Asynchronous reporting of Tag Check Fault)
 - FEAT_MTE_CANONICAL_TAGS (Canonical tag checking)
Signature · 1 line
2.47.3
#5 lore raw

PATCH 5/8 docs/system: document FEAT_IVIPT

In reply to Alex Bennée

This is for documentation completeness - a system implements FEAT_IVIPT if it implements any permitted instruction cache implementation. QEMU doesn't model caches which is a permitted (non)implementation.

---
 docs/system/arm/emulation.rst | 1 +
 1 file changed, 1 insertion(+)
docs/system/arm/emulation.rst +1 -0
index 05e85d7a367..7806982e0d6 100644
@@ -104,6 +104,7 @@ the following architecture extensions:
 - FEAT_I8MM (AArch64 Int8 matrix multiplication instructions)
 - FEAT_IDST (ID space trap handling)
 - FEAT_IESB (Implicit error synchronization event)
+- FEAT_IVIPT (The IVIPT Extension)
 - FEAT_JSCVT (JavaScript conversion instructions)
 - FEAT_LittleEnd (Support for little-endian at EL1 and above)
 - FEAT_LittleEndEL0 (Support for little-endian at EL0)
Signature · 1 line
2.47.3
#6 lore raw

PATCH 6/8 docs/system: fix sorting of FEAT_S2[PIE|FWB]

In reply to Alex Bennée
---
 docs/system/arm/emulation.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
docs/system/arm/emulation.rst +1 -1
index 7806982e0d6..b4b65694ff5 100644
@@ -160,8 +160,8 @@ the following architecture extensions:
 - FEAT_RNG_TRAP (Trapping support for RNDR/RNDRRS)
 - FEAT_RPRES (Increased precision of FRECPE and FRSQRTE)
 - FEAT_S1PIE (Stage 1 permission indirections)
-- FEAT_S2PIE (Stage 2 permission indirections)
 - FEAT_S2FWB (Stage 2 forced Write-Back)
+- FEAT_S2PIE (Stage 2 permission indirections)
 - FEAT_SB (Speculation Barrier)
 - FEAT_SCTLR2 (Extension to SCTLR_ELx)
 - FEAT_Secure (Support for Secure state)
Signature · 1 line
2.47.3
#7 lore raw

PATCH 7/8 docs/system: add FEAT_S2TGran[4|16|64]K features

In reply to Alex Bennée

We already have the logic to handle these granule sizes in our stage 2 page table walk code.

---
 docs/system/arm/emulation.rst | 3 +++
 1 file changed, 3 insertions(+)
docs/system/arm/emulation.rst +3 -0
index b4b65694ff5..903a5f90880 100644
@@ -162,6 +162,9 @@ the following architecture extensions:
 - FEAT_S1PIE (Stage 1 permission indirections)
 - FEAT_S2FWB (Stage 2 forced Write-Back)
 - FEAT_S2PIE (Stage 2 permission indirections)
+- FEAT_S2TGran16K (Support for 16KB memory translation granule size at stage 2)
+- FEAT_S2TGran4K (Support for 4KB memory translation granule size at stage 2)
+- FEAT_S2TGran64K (Support for 64KB memory translation granule size at stage 2)
 - FEAT_SB (Speculation Barrier)
 - FEAT_SCTLR2 (Extension to SCTLR_ELx)
 - FEAT_Secure (Support for Secure state)
Signature · 1 line
2.47.3
#8 lore raw

PATCH 8/8 docs/system: add FEAT_HAF

In reply to Alex Bennée

This is a subset of FEAT_HAFDBS which we have already implemented.

---
 docs/system/arm/emulation.rst | 1 +
 1 file changed, 1 insertion(+)
docs/system/arm/emulation.rst +1 -0
index 903a5f90880..9930974a501 100644
@@ -95,6 +95,7 @@ the following architecture extensions:
 - FEAT_FlagM2 (Enhancements to flag manipulation instructions)
 - FEAT_GCS (Guarded Control Stack Extension)
 - FEAT_GTG (Guest translation granule size)
+- FEAT_HAF (Hardware management of the Access flag)
 - FEAT_HAFDBS (Hardware management of the access flag and dirty bit state)
 - FEAT_HBC (Hinted conditional branches)
 - FEAT_HCX (Support for the HCRX_EL2 register)
Signature · 1 line
2.47.3
Reviewed-by on the v1 series
#9 lore raw
In reply to Alex Bennée
Quoted 9 lines · Alex Bennée

Alex Bennée (8):
docs/system: declare support for FEAT_EVT2 docs/system: add big and little endian features names docs/system: document FEAT_Secure docs/system: document FEAT_MTE4
docs/system: document FEAT_IVIPT docs/system: fix sorting of FEAT_S2[PIE|FWB] docs/system: add FEAT_S2TGran[4|16|64]K features docs/system: add FEAT_HAF

r~

#10 lore raw
In reply to Alex Bennée
Quoted 10 lines · Alex Bennée

While reviewing the latest Arm ARM (M.c) I found a few more feature names that have been added for old existing features or we forgot to update in our emulation list.

These are all documentation updates so should be good for merging during softfreeze.

Alex.

Applied to target-arm.next, thanks.

-- PMM