iommu/arm: fix ARM_SMMU_QCOM compilation
PATCH 1/1 iommu/arm: fix ARM_SMMU_QCOM compilation
From: Arnd Bergmann <[email protected]>
My previous bugfix ended up making things worse for the QCOM IOMMU driver when it forgot to add the Kconfig symbol that is getting used to control the compilation of the SMMU implementation specific code for Qualcomm.
---
In case we want fix it this way after all, here is the patch I made. Either this one or Dmitry patch from the link above is required for v5.15
--- drivers/iommu/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/iommu/Kconfig +8 -0
@@ -355,6 +355,14 @@ config ARM_SMMU_DISABLE_BYPASS_BY_DEFAULT 'arm-smmu.disable_bypass' will continue to override this config. +config ARM_SMMU_QCOM + def_tristate y + depends on ARM_SMMU && ARCH_QCOM + select QCOM_SCM + help + When running on a Qualcomm platform that has the custom variant + of the ARM SMMU, this needs to be built into the SMMU driver. + config ARM_SMMU_V3 tristate "ARM Ltd. System MMU Version 3 (SMMUv3) Support" depends on ARM64
Signature · 1 line
2.29.2
Quoted 27 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
My previous bugfix ended up making things worse for the QCOM IOMMU driver when it forgot to add the
Kconfigsymbol that is getting used to control the compilation of the SMMU implementation specific code for Qualcomm.Fixes 424953cf3c66 ("qcom_scm: hide Kconfig symbol")Reported-by Daniel Lezcano <[email protected]>Reported-by Dmitry Baryshkov <[email protected]>Reported-by John Stultz <[email protected]>Signed-off-by Arnd Bergmann <[email protected]>---
In case we want fix it this way after all, here is the patch I made. Either this one or Dmitry patch from the link above is required for v5.15--- drivers/iommu/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+)drivers/iommu/Kconfig +0
-0@@ -355,6 +355,14 @@ config ARM_SMMU_DISABLE_BYPASS_BY_DEFAULT 'arm-smmu.disable_bypass' will continue to override this
drivers/iommu/Kconfig config ARM_SMMU_DISABLE_BYPASS_BY_DEFAULT · line 365
Quoted 10 lines
drivers/iommu/Kconfig +8
-0config. +config ARM_SMMU_QCOM + def_tristate y + depends on ARM_SMMU && ARCH_QCOM + select QCOM_SCM + help + When running on a Qualcomm platform that has the custom variant + of the ARM SMMU, this needs to be built into the SMMU driver. +
FWIW, I prefer this solution over changing the driver code, so:
I assume you'll be getting this fixed for 5.15?
Cheers,
Will
Quoted 41 lines · Will Deacon
Quoted 27 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
My previous bugfix ended up making things worse for the QCOM IOMMU driver when it forgot to add the
Kconfigsymbol that is getting used to control the compilation of the SMMU implementation specific code for Qualcomm.Fixes 424953cf3c66 ("qcom_scm: hide Kconfig symbol")Reported-by Daniel Lezcano <[email protected]>Reported-by Dmitry Baryshkov <[email protected]>Reported-by John Stultz <[email protected]>Signed-off-by Arnd Bergmann <[email protected]>---
In case we want fix it this way after all, here is the patch I made. Either this one or Dmitry patch from the link above is required for v5.15--- drivers/iommu/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+)drivers/iommu/Kconfig +0
-0@@ -355,6 +355,14 @@ config ARM_SMMU_DISABLE_BYPASS_BY_DEFAULT 'arm-smmu.disable_bypass' will continue to override thisdrivers/iommu/Kconfig config ARM_SMMU_DISABLE_BYPASS_BY_DEFAULT · line 365
Quoted 10 lines
drivers/iommu/Kconfig +8
-0config. +config ARM_SMMU_QCOM + def_tristate y + depends on ARM_SMMU && ARCH_QCOM + select QCOM_SCM + help + When running on a Qualcomm platform that has the custom variant + of the ARM SMMU, this needs to be built into the SMMU driver. +FWIW, I prefer this solution over changing the driver code, so:
Quoted 3 lines
Acked-by Will Deacon <[email protected]>I assume you'll be getting this fixed for 5.15?
I was hoping you and Joerg could just pick your preferred patch into the iommu fixes tree for v5.15.
I currently have nothing else pending for my asm-generic tree that introduced the regression, but I can take it through there if that helps you.
Arnd
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu
Will Deacon
maintainerHi Arnd,
Quoted 44 lines · Arnd Bergmann
Quoted 43 lines · Will Deacon
Quoted 27 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
My previous bugfix ended up making things worse for the QCOM IOMMU driver when it forgot to add the
Kconfigsymbol that is getting used to control the compilation of the SMMU implementation specific code for Qualcomm.Fixes 424953cf3c66 ("qcom_scm: hide Kconfig symbol")Reported-by Daniel Lezcano <[email protected]>Reported-by Dmitry Baryshkov <[email protected]>Reported-by John Stultz <[email protected]>Signed-off-by Arnd Bergmann <[email protected]>---
In case we want fix it this way after all, here is the patch I made. Either this one or Dmitry patch from the link above is required for v5.15--- drivers/iommu/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+)drivers/iommu/Kconfig +0
-0@@ -355,6 +355,14 @@ config ARM_SMMU_DISABLE_BYPASS_BY_DEFAULT 'arm-smmu.disable_bypass' will continue to override thisdrivers/iommu/Kconfig config ARM_SMMU_DISABLE_BYPASS_BY_DEFAULT · line 365
Quoted 10 lines
drivers/iommu/Kconfig +8
-0config. +config ARM_SMMU_QCOM + def_tristate y + depends on ARM_SMMU && ARCH_QCOM + select QCOM_SCM + help + When running on a Qualcomm platform that has the custom variant + of the ARM SMMU, this needs to be built into the SMMU driver. +FWIW, I prefer this solution over changing the driver code, so:
Acked-by Will Deacon <[email protected]>
Quoted 8 lines
Quoted 1 line
I assume you'll be getting this fixed for 5.15?
I was hoping you and Joerg could just pick your preferred patch into the iommu fixes tree for v5.15.
I currently have nothing else pending for my asm-generic tree that introduced the regression, but I can take it through there if that helps you.
I also don't have any fixes pending, and I don't see any in Joerg's tree so it's probably quickest if you send it on yourself. Is that ok?
Cheers,
Will
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu
Quoted 7 lines · Will Deacon
Quoted 6 lines · Arnd Bergmann
Quoted 1 line · Will Deacon
On Tue, Oct 12, 2021 at 05:18:00PM +0200, Arnd Bergmann wrote:
I was hoping you and Joerg could just pick your preferred patch into the iommu fixes tree for v5.15.
Quoted 6 lines
Quoted 3 lines
I currently have nothing else pending for my asm-generic tree that introduced the regression, but I can take it through there if that helps you.
I also don't have any fixes pending, and I don't see any in Joerg's tree so it's probably quickest if you send it on yourself. Is that ok?
Sure, no problem. I ended up adding it to the arm/fixes branch of the soc tree, as I just merged some other fixes there, and it seems as good as any of the other trees.
Arnd
Will Deacon
maintainerQuoted 12 lines · Arnd Bergmann
Quoted 11 lines · Will Deacon
Quoted 9 lines · Arnd Bergmann
Quoted 1 line · Will Deacon
On Tue, Oct 12, 2021 at 05:18:00PM +0200, Arnd Bergmann wrote:
I was hoping you and Joerg could just pick your preferred patch into the iommu fixes tree for v5.15.
I currently have nothing else pending for my asm-generic tree that introduced the regression, but I can take it through there if that helps you.
Quoted 6 lines
Quoted 2 lines
I also don't have any fixes pending, and I don't see any in Joerg's tree so it's probably quickest if you send it on yourself. Is that ok?
Sure, no problem. I ended up adding it to the arm/fixes branch of the soc tree, as I just merged some other fixes there, and it seems as good as any of the other trees.
Thanks, Arnd!
Will