Skip to content

Commit e5bfb21

Browse files
sudeep-hollawilldeacon
authored andcommitted
firmware: smccc: Add HAVE_ARM_SMCCC_DISCOVERY to identify SMCCC v1.1 and above
SMCCC v1.0 lacked discoverability of version and features. To accelerate adoption of few mitigations and protect systems more rapidly from various vulnerability, PSCI v1.0 was updated to add SMCCC discovery mechanism though the PSCI firmware implementation of PSCI_FEATURES(SMCCC_VERSION) which returns success on firmware compliant to SMCCC v1.1 and above. This inturn makes SMCCC v1.1 and above dependent on ARM_PSCI_FW for backward compatibility. Let us introduce a new hidden config for the same to build more features on top of SMCCC v1.1 and above. While at it, also sort alphabetically the psci entry. Signed-off-by: Sudeep Holla <[email protected]> Tested-by: Etienne Carriere <[email protected]> Reviewed-by: Etienne Carriere <[email protected]> Acked-by: Mark Rutland <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 6a8b55e commit e5bfb21

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

drivers/firmware/Kconfig

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,15 +295,13 @@ config TURRIS_MOX_RWTM
295295
other manufacturing data and also utilize the Entropy Bit Generator
296296
for hardware random number generation.
297297

298-
config HAVE_ARM_SMCCC
299-
bool
300-
301-
source "drivers/firmware/psci/Kconfig"
302298
source "drivers/firmware/broadcom/Kconfig"
303299
source "drivers/firmware/google/Kconfig"
304300
source "drivers/firmware/efi/Kconfig"
305301
source "drivers/firmware/imx/Kconfig"
306302
source "drivers/firmware/meson/Kconfig"
303+
source "drivers/firmware/psci/Kconfig"
304+
source "drivers/firmware/smccc/Kconfig"
307305
source "drivers/firmware/tegra/Kconfig"
308306
source "drivers/firmware/xilinx/Kconfig"
309307

drivers/firmware/smccc/Kconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
config HAVE_ARM_SMCCC
3+
bool
4+
help
5+
Include support for the Secure Monitor Call (SMC) and Hypervisor
6+
Call (HVC) instructions on Armv7 and above architectures.
7+
8+
config HAVE_ARM_SMCCC_DISCOVERY
9+
bool
10+
depends on ARM_PSCI_FW
11+
default y
12+
help
13+
SMCCC v1.0 lacked discoverability and hence PSCI v1.0 was updated
14+
to add SMCCC discovery mechanism though the PSCI firmware
15+
implementation of PSCI_FEATURES(SMCCC_VERSION) which returns
16+
success on firmware compliant to SMCCC v1.1 and above.

0 commit comments

Comments
 (0)