public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v2 0/8] ArmCpuInfo improvements
@ 2023-06-05  6:37 Marcin Juszkiewicz
  2023-06-05  6:37 ` [PATCH v2 1/1] ArmPkg: add SMC defines for SiP service calls Marcin Juszkiewicz
                   ` (8 more replies)
  0 siblings, 9 replies; 12+ messages in thread
From: Marcin Juszkiewicz @ 2023-06-05  6:37 UTC (permalink / raw)
  To: devel; +Cc: Sami Mujawar, Ard Biesheuvel, Leif Lindholm, Marcin Juszkiewicz

This changeset was supposed to add SVE/SME information but got some
updates to improve output of ArmCpuInfo application a bit too.

Probably would need to definition of system registers for older
toolchains.

Changes since v1:
- show stage 2 granule support on Neoverse-N1

Marcin Juszkiewicz (8):
  ArmPkg: fix reading of first nibbles in ArmCpuInfo
  ArmPkg: shorten register field in ArmCpuInfo
  ArmPkg: add functions to read SVE/SME info
  ArmPkg: skip empty system registers in ArmCpuInfo
  ArmPkg: format output in one place in ArmCpuInfo
  ArmPkg: handle SVE/SME in ArmCpuInfo
  ArmPkg: cleaning output of ArmCpuInfo
  ArmPkg: show stage2 granule support on Neoverse-N1

 ArmPkg/Library/ArmLib/ArmBaseLib.inf          |   5 +
 ArmPkg/Library/ArmLib/AArch64/AArch64Lib.h    |  12 +
 ArmPkg/Application/ArmCpuInfo/ArmCpuInfo.c    | 472 ++++++++++++++++--
 .../Library/ArmLib/AArch64/AArch64Support.S   |  10 +
 4 files changed, 453 insertions(+), 46 deletions(-)

-- 
2.40.1


^ permalink raw reply	[flat|nested] 12+ messages in thread
* [PATCH v2 1/1] ArmPkg: add SMC defines for SiP service calls
@ 2023-06-01 17:14 Marcin Juszkiewicz
  2023-06-02 11:40 ` Leif Lindholm
  0 siblings, 1 reply; 12+ messages in thread
From: Marcin Juszkiewicz @ 2023-06-01 17:14 UTC (permalink / raw)
  To: devel; +Cc: Leif Lindholm, Ard Biesheuvel, Sami Mujawar, Marcin Juszkiewicz

They are useful for those platforms where SMC SiP calls exist.

Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
---
 ArmPkg/Include/IndustryStandard/ArmStdSmc.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/ArmPkg/Include/IndustryStandard/ArmStdSmc.h b/ArmPkg/Include/IndustryStandard/ArmStdSmc.h
index 374b9ded7f5f..616c650d07c8 100644
--- a/ArmPkg/Include/IndustryStandard/ArmStdSmc.h
+++ b/ArmPkg/Include/IndustryStandard/ArmStdSmc.h
@@ -244,4 +244,13 @@
 #define TRNG_STATUS_INVALID_PARAMETER  (INT32)(-2)
 #define TRNG_STATUS_NO_ENTROPY         (INT32)(-3)
 
+/*
+ *  SMC64 SiP Service Calls
+ */
+
+#define SMC_FASTCALL           0x80000000
+#define SMC64_FUNCTION         (SMC_FASTCALL     | 0x40000000)
+#define SMC_SIP_FUNCTION       (SMC64_FUNCTION   | 0x02000000)
+#define SMC_SIP_FUNCTION_ID(n) (SMC_SIP_FUNCTION | (n))
+
 #endif // ARM_STD_SMC_H_
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-06-05  6:38 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-05  6:37 [PATCH v2 0/8] ArmCpuInfo improvements Marcin Juszkiewicz
2023-06-05  6:37 ` [PATCH v2 1/1] ArmPkg: add SMC defines for SiP service calls Marcin Juszkiewicz
2023-06-05  6:37 ` [PATCH v2 1/8] ArmPkg: fix reading of first nibbles in ArmCpuInfo Marcin Juszkiewicz
2023-06-05  6:37 ` [PATCH v2 2/8] ArmPkg: shorten register field " Marcin Juszkiewicz
2023-06-05  6:37 ` [PATCH v2 3/8] ArmPkg: add functions to read SVE/SME info Marcin Juszkiewicz
2023-06-05  6:37 ` [PATCH v2 4/8] ArmPkg: skip empty system registers in ArmCpuInfo Marcin Juszkiewicz
2023-06-05  6:37 ` [PATCH v2 5/8] ArmPkg: format output in one place " Marcin Juszkiewicz
2023-06-05  6:37 ` [PATCH v2 6/8] ArmPkg: handle SVE/SME " Marcin Juszkiewicz
2023-06-05  6:37 ` [PATCH v2 7/8] ArmPkg: cleaning output of ArmCpuInfo Marcin Juszkiewicz
2023-06-05  6:37 ` [PATCH v2 8/8] ArmPkg: show stage2 granule support on Neoverse-N1 Marcin Juszkiewicz
  -- strict thread matches above, loose matches on Subject: below --
2023-06-01 17:14 [PATCH v2 1/1] ArmPkg: add SMC defines for SiP service calls Marcin Juszkiewicz
2023-06-02 11:40 ` Leif Lindholm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox