diff options
author | Will Deacon <will@kernel.org> | 2021-06-24 15:06:54 +0200 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2021-06-24 15:06:54 +0200 |
commit | a4a49140ae84e74f5d831c2416fe4860c8ff9d34 (patch) | |
tree | 343653adb9306ff140fd292bc2d35d9b137f8a3d /drivers/firmware | |
parent | Merge branch 'for-next/selftests' into for-next/core (diff) | |
parent | arm64: smccc: Support SMCCC v1.3 SVE register saving hint (diff) | |
download | linux-a4a49140ae84e74f5d831c2416fe4860c8ff9d34.tar.xz linux-a4a49140ae84e74f5d831c2416fe4860c8ff9d34.zip |
Merge branch 'for-next/smccc' into for-next/core
Add support for versions v1.2 and 1.3 of the SMC calling convention.
* for-next/smccc:
arm64: smccc: Support SMCCC v1.3 SVE register saving hint
arm64: smccc: Add support for SMCCCv1.2 extended input/output registers
Diffstat (limited to 'drivers/firmware')
-rw-r--r-- | drivers/firmware/smccc/smccc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/firmware/smccc/smccc.c b/drivers/firmware/smccc/smccc.c index 028f81d702cc..9f937b125ab0 100644 --- a/drivers/firmware/smccc/smccc.c +++ b/drivers/firmware/smccc/smccc.c @@ -15,6 +15,7 @@ static u32 smccc_version = ARM_SMCCC_VERSION_1_0; static enum arm_smccc_conduit smccc_conduit = SMCCC_CONDUIT_NONE; bool __ro_after_init smccc_trng_available = false; +u64 __ro_after_init smccc_has_sve_hint = false; void __init arm_smccc_version_init(u32 version, enum arm_smccc_conduit conduit) { @@ -22,6 +23,9 @@ void __init arm_smccc_version_init(u32 version, enum arm_smccc_conduit conduit) smccc_conduit = conduit; smccc_trng_available = smccc_probe_trng(); + if (IS_ENABLED(CONFIG_ARM64_SVE) && + smccc_version >= ARM_SMCCC_VERSION_1_3) + smccc_has_sve_hint = true; } enum arm_smccc_conduit arm_smccc_1_1_get_conduit(void) |