Skip to contentSkip to conversation

iommu: Kconfig: Fix missing config option for CONFIG_ARM_SMMU_QCOM

RFC PATCH In review John Stultz 2 participants 3 messages Oct 12, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 iommu: Kconfig: Fix missing config option for CONFIG_ARM_SMMU_QCOM

In commit 424953cf3c665 ("qcom_scm: hide Kconfig symbol"), some logic was added to make the code depend on CONFIG_ARM_SMMU_QCOM, however no such option exist.

This caused regressions on db845c (and I suspect other qcom platforms), but can be easily fixed up by adding a new option to re-enable the newly conditionalized code.

I set it to default to ARCH_QCOM, so folks don't have to discover this new option to keep things booting, but if folks would rather, I'm ok to drop that line.

Cc Arnd Bergmann <[email protected]>
Cc Bjorn Andersson <[email protected]>
Cc Amit Pundir <[email protected]>
Cc Caleb Connolly <[email protected]>
Cc Kalle Valo <[email protected]>
Cc linux-arm-kernel <[email protected]>
Cc linux-arm-msm <[email protected]>
Fixes 424953cf3c665 ("qcom_scm: hide Kconfig symbol")
---
 drivers/iommu/Kconfig | 10 ++++++++++
 1 file changed, 10 insertions(+)
drivers/iommu/Kconfig +10 -0
index c5c71b7ab7e83..e674796b1174d 100644
@@ -380,6 +380,16 @@ config ARM_SMMU_V3_SVA
 	  Say Y here if your system supports SVA extensions such as PCIe PASID
 	  and PRI.
 
+config ARM_SMMU_QCOM
+	bool "QCOM Specific ARM SMMU implementation support"
+	depends on ARM_SMMU
+	default ARCH_QCOM
+	help
+          Support for the QCOM implementation of the ARM System MMU architecture.
+
+          Say Y here if your SoC includes an QCOM IOMMU device implementing
+          the ARM SMMU architecture.
+
 config S390_IOMMU
 	def_bool y if S390 && PCI
 	depends on S390 && PCI
Signature · 1 line
2.25.1
#1 lore raw
Quoted 4 lines · John Stultz

In commit 424953cf3c665 ("qcom_scm: hide Kconfig symbol"), some logic was added to make the code depend on CONFIG_ARM_SMMU_QCOM, however no such option exist.

Quoted 8 lines

This caused regressions on db845c (and I suspect other qcom platforms), but can be easily fixed up by adding a new option to re-enable the newly conditionalized code.

I set it to default to ARCH_QCOM, so folks don't have to discover this new option to keep things booting, but if folks would rather, I'm ok to drop that line.

I've not looked where the discussion went, but Dmitry posted this end of last week:

https://lore.kernel.org/linux-arm-msm/[email protected]/

Regards,
Bjorn

Quoted 37 lines
Cc Arnd Bergmann <[email protected]>
Cc Bjorn Andersson <[email protected]>
Cc Amit Pundir <[email protected]>
Cc Caleb Connolly <[email protected]>
Cc Kalle Valo <[email protected]>
Cc linux-arm-kernel <[email protected]>
Cc linux-arm-msm <[email protected]>
Fixes 424953cf3c665 ("qcom_scm: hide Kconfig symbol")
---
 drivers/iommu/Kconfig | 10 ++++++++++
 1 file changed, 10 insertions(+)
drivers/iommu/Kconfig +10 -0
index c5c71b7ab7e83..e674796b1174d 100644
@@ -380,6 +380,16 @@ config ARM_SMMU_V3_SVA
 	  Say Y here if your system supports SVA extensions such as PCIe PASID
 	  and PRI.
 
+config ARM_SMMU_QCOM
+	bool "QCOM Specific ARM SMMU implementation support"
+	depends on ARM_SMMU
+	default ARCH_QCOM
+	help
+          Support for the QCOM implementation of the ARM System MMU architecture.
+
+          Say Y here if your SoC includes an QCOM IOMMU device implementing
+          the ARM SMMU architecture.
+
 config S390_IOMMU
 	def_bool y if S390 && PCI
 	depends on S390 && PCI
Signature · 1 line
2.25.1
#2 lore raw
Quoted 16 lines · Bjorn Andersson
Quoted 4 lines · John Stultz

In commit 424953cf3c665 ("qcom_scm: hide Kconfig symbol"), some logic was added to make the code depend on CONFIG_ARM_SMMU_QCOM, however no such option exist.

Quoted 8 lines

This caused regressions on db845c (and I suspect other qcom platforms), but can be easily fixed up by adding a new option to re-enable the newly conditionalized code.

I set it to default to ARCH_QCOM, so folks don't have to discover this new option to keep things booting, but if folks would rather, I'm ok to drop that line.

Quoted 4 lines

I've not looked where the discussion went, but Dmitry posted this end of last week:

https://lore.kernel.org/linux-arm-msm/[email protected]/

Oh, my apologies for not seeing this! I did search my mail log earlier, but I must have missed it.

So yes, I validated earlier that reverting the problematic chunks works as well, and I see Arnd did already have a similar patch to what I sent out.

I'd probably lean towards Arnd's patch, as he has been uncovering the problematic Kconfig edge cases.

thanks
-john