Skip to contentSkip to conversation

Fixup and extend hwcaps documentation

PATCH New Will Deacon 2 participants 4 messages Oct 1, 2018 Documentation

lore
Share & tools
lore
#0 lore raw

cover Fixup and extend hwcaps documentation

Hi all,

These two patches fix some silly typos in our hwcaps documentation and extend it to cover the SSBS support, which is queued in -next.

Cheers,

Will

--->8

Giacomo Travaglini (1):
arm64: docs: Fix typos in ELF hwcaps

Will Deacon (1):
arm64: docs: Document SSBS HWCAP

 Documentation/arm64/elf_hwcaps.txt | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/2 arm64: docs: Fix typos in ELF hwcaps

From: Giacomo Travaglini <[email protected]>

Fix some typos in our hwcap documentation, where we refer to the wrong ID register for some of the capabilities.

[will: fix amusing binary constants]
---
 Documentation/arm64/elf_hwcaps.txt | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
Documentation/arm64/elf_hwcaps.txt +4 -4
index d6aff2c5e9e2..51ccfab408cc 100644
@@ -78,11 +78,11 @@ HWCAP_EVTSTRM
 
 HWCAP_AES
 
-    Functionality implied by ID_AA64ISAR1_EL1.AES == 0b0001.
+    Functionality implied by ID_AA64ISAR0_EL1.AES == 0b0001.
 
 HWCAP_PMULL
 
-    Functionality implied by ID_AA64ISAR1_EL1.AES == 0b0010.
+    Functionality implied by ID_AA64ISAR0_EL1.AES == 0b0010.
 
 HWCAP_SHA1
 
@@ -153,7 +153,7 @@ HWCAP_ASIMDDP
 
 HWCAP_SHA512
 
-    Functionality implied by ID_AA64ISAR0_EL1.SHA2 == 0b0002.
+    Functionality implied by ID_AA64ISAR0_EL1.SHA2 == 0b0010.
 
 HWCAP_SVE
 
@@ -173,7 +173,7 @@ HWCAP_USCAT
 
 HWCAP_ILRCPC
 
-    Functionality implied by ID_AA64ISR1_EL1.LRCPC == 0b0002.
+    Functionality implied by ID_AA64ISAR1_EL1.LRCPC == 0b0010.
 
 HWCAP_FLAGM
 
Signature · 1 line
2.1.4
#2 lore raw

PATCH 2/2 arm64: docs: Document SSBS HWCAP

In reply to Will Deacon

We advertise the MRS/MSR instructions for toggling SSBS at EL0 using an HWCAP, so document it along with the others.

---
 Documentation/arm64/elf_hwcaps.txt | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/arm64/elf_hwcaps.txt +4 -0
index 51ccfab408cc..ea819ae024dd 100644
@@ -178,3 +178,7 @@ HWCAP_ILRCPC
 HWCAP_FLAGM
 
     Functionality implied by ID_AA64ISAR0_EL1.TS == 0b0001.
+
+HWCAP_SSBS
+
+    Functionality implied by ID_AA64PFR1_EL1.SSBS == 0b0010.
Signature · 1 line
2.1.4
#3 lore raw

cover Fixup and extend hwcaps documentation

In reply to Will Deacon
Quoted 5 lines · Will Deacon

Giacomo Travaglini (1):
arm64: docs: Fix typos in ELF hwcaps

Will Deacon (1):
arm64: docs: Document SSBS HWCAP

Queued for 4.20. Thanks.

Signature · 1 line
Catalin