irqchip: gic-v3: fix unmet dependency on ARM_PSCI_FW
v4 cover irqchip: gic-v3: fix unmet dependency on ARM_PSCI_FW
ARM_GIC_V3 currently selects HAVE_ARM_SMCCC_DISCOVERY without ensuring its dependency, ARM_PSCI_FW, is met.
Patch 1 of this series adds stubs for arm32 so that patch 2 can make the select conditional on arm64.
---
Julian Braha (2):
firmware: smccc: provide stubs when discovery is disabled
irqchip: gic-v3: only select HAVE_ARM_SMCCC_DISCOVERY on arm64
drivers/irqchip/Kconfig | 2 +- include/linux/arm-smccc.h | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-)
Signature · 1 line
2.55.0
PATCH v4 1/2 firmware: smccc: provide stubs when discovery is disabled
Add fallbacks for callers to avoid needing #ifdef guards when HAVE_ARM_SMCCC_DISCOVERY is disabled (32-bit arm).
---
Changes since v3:
- reorder patches to prevent build failure for 32bit ARM without PSCI
Link to v3:
https://lore.kernel.org/all/[email protected]/
Changes since v2:
- split out changes into two patches
Link to v2:
https://lore.kernel.org/all/[email protected]/
Changes since v1:
- remove select and dependency on ARM_PSCI_FW,
- make the HAVE_ARM_SMCCC_DISCOVERY 'select' conditional on arm64
Link to v1: https://lore.kernel.org/all/[email protected]/
--- include/linux/arm-smccc.h | 7 +++++++ 1 file changed, 7 insertions(+)
include/linux/arm-smccc.h +7 -0
@@ -324,6 +324,7 @@ enum arm_smccc_conduit { SMCCC_CONDUIT_HVC, }; +#ifdef CONFIG_HAVE_ARM_SMCCC_DISCOVERY /** * arm_smccc_1_1_get_conduit() *
@@ -363,6 +364,12 @@ s32 arm_smccc_get_soc_id_version(void);* When ARM_SMCCC_ARCH_SOC_ID is not present, returns SMCCC_RET_NOT_SUPPORTED. */ s32 arm_smccc_get_soc_id_revision (void ); +#else /* CONFIG_HAVE_ARM_SMCCC_DISCOVERY */ +#define arm_smccc_1_1_get_conduit () SMCCC_CONDUIT_NONE +#define arm_smccc_get_version () 0 +#define arm_smccc_get_soc_id_version () SMCCC_RET_NOT_SUPPORTED +#define arm_smccc_get_soc_id_revision () SMCCC_RET_NOT_SUPPORTED +#endif /* CONFIG_HAVE_ARM_SMCCC_DISCOVERY */ #ifndef __ASSEMBLY__
Signature · 1 line
2.55.0
PATCH v4 2/2 irqchip: gic-v3: only select HAVE_ARM_SMCCC_DISCOVERY on arm64
In reply to Julian BrahaARM_PSCI_FW is always enabled for arm64, and the GICv3 driver only uses HAVE_ARM_SMCCC_DISCOVERY to identify the NVIDIA T241, which is arm64 anyway.
For ARM_GIC_V3, let's only select HAVE_ARM_SMCCC_DISCOVERY on arm64.
---
Changes since v3:
- reorder patches to prevent build failure for 32bit ARM without PSCI
Link to v3:
https://lore.kernel.org/all/[email protected]/
Changes since v2:
- split out changes into two patches
Link to v2:
https://lore.kernel.org/all/[email protected]/
Changes since v1:
- remove select and dependency on ARM_PSCI_FW,
- make the HAVE_ARM_SMCCC_DISCOVERY 'select' conditional on arm64
Link to v1: https://lore.kernel.org/all/[email protected]/
--- drivers/irqchip/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/Kconfig +1 -1
@@ -37,7 +37,7 @@ config ARM_GIC_V3 bool select IRQ_DOMAIN_HIERARCHY select GENERIC_IRQ_EFFECTIVE_AFF_MASK if SMP - select HAVE_ARM_SMCCC_DISCOVERY + select HAVE_ARM_SMCCC_DISCOVERY if ARM64 select IRQ_MSI_IOMMU config ARM_GIC_ITS_PARENT
Signature · 1 line
2.55.0
Quoted 7 lines · Julian Braha
ARM_GIC_V3currently selectsHAVE_ARM_SMCCC_DISCOVERYwithout ensuring its dependency,ARM_PSCI_FW, is met.Patch 1 of this series adds stubs for arm32 so that patch 2 can make the select conditional on arm64.
Quoted 8 lines
---
Julian Braha (2):
firmware: smccc: provide stubs when discovery is disabled
irqchip: gic-v3: only selectHAVE_ARM_SMCCC_DISCOVERYon arm64drivers/irqchip/Kconfig | 2 +- include/linux/arm-smccc.h | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-)
This probably needs to go via Sudeep's tree.
Thanks,
M.
Signature · 1 line
Without deviation from the norm, progress is not possible.
Sudeep Holla
maintainerQuoted 14 lines · Marc Zyngier
Quoted 12 lines · Julian Braha
ARM_GIC_V3currently selectsHAVE_ARM_SMCCC_DISCOVERYwithout ensuring its dependency,ARM_PSCI_FW, is met.Patch 1 of this series adds stubs for arm32 so that patch 2 can make the select conditional on arm64.
---
Julian Braha (2):
firmware: smccc: provide stubs when discovery is disabled
irqchip: gic-v3: only selectHAVE_ARM_SMCCC_DISCOVERYon arm64
Quoted 6 lines
Quoted 3 lines
drivers/irqchip/Kconfig | 2 +- include/linux/arm-smccc.h | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-)This probably needs to go via Sudeep's tree.
Sure will queue it soon and send it as fixes at -rc1 or later.
Signature · 2 lines
Regards, Sudeep
Quoted 15 lines · Sudeep Holla
Quoted 14 lines · Marc Zyngier
Quoted 12 lines · Julian Braha
ARM_GIC_V3currently selectsHAVE_ARM_SMCCC_DISCOVERYwithout ensuring its dependency,ARM_PSCI_FW, is met.Patch 1 of this series adds stubs for arm32 so that patch 2 can make the select conditional on arm64.
---
Julian Braha (2):
firmware: smccc: provide stubs when discovery is disabled
irqchip: gic-v3: only selectHAVE_ARM_SMCCC_DISCOVERYon arm64
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
drivers/irqchip/Kconfig | 2 +- include/linux/arm-smccc.h | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-)This probably needs to go via Sudeep's tree.
Sure will queue it soon and send it as fixes at -rc1 or later.
Please change the subsystem prefix to "irqchip/gic-v3:" then.
Sudeep Holla
maintainerQuoted 21 lines · Thomas Gleixner
Quoted 19 lines · Sudeep Holla
Quoted 18 lines · Marc Zyngier
Quoted 15 lines · Julian Braha
ARM_GIC_V3currently selectsHAVE_ARM_SMCCC_DISCOVERYwithout ensuring its dependency,ARM_PSCI_FW, is met.Patch 1 of this series adds stubs for arm32 so that patch 2 can make the select conditional on arm64.
---
Julian Braha (2):
firmware: smccc: provide stubs when discovery is disabled
irqchip: gic-v3: only selectHAVE_ARM_SMCCC_DISCOVERYon arm64drivers/irqchip/Kconfig | 2 +- include/linux/arm-smccc.h | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-)
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
This probably needs to go via Sudeep's tree.
Sure will queue it soon and send it as fixes at -rc1 or later.
Please change the subsystem prefix to "irqchip/gic-v3:" then.
Yes I did that already.
Quoted 1 line
Acked-by Thomas Gleixner <[email protected]>
Thanks!
Signature · 2 lines
Regards, Sudeep
Quoted 5 lines · Julian Braha
ARM_GIC_V3currently selectsHAVE_ARM_SMCCC_DISCOVERYwithout ensuring its dependency,ARM_PSCI_FW, is met.Patch 1 of this series adds stubs for arm32 so that patch 2 can make the select conditional on arm64.
Applied to sudeep.holla/linux (for-next/smccc/fixes), thanks!
[1/2] firmware: smccc: provide stubs when discovery is disabled
https://git.kernel.org/sudeep.holla/c/6cc03818814a [2/2] irqchip: gic-v3: only select HAVE_ARM_SMCCC_DISCOVERY on arm64 https://git.kernel.org/sudeep.holla/c/40b097fdfd00
Signature · 2 lines
Regards, Sudeep