[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211012151841.2639732-1-arnd@kernel.org>
Date: Tue, 12 Oct 2021 17:18:00 +0200
From: Arnd Bergmann <arnd@...nel.org>
To: Joerg Roedel <joro@...tes.org>, Will Deacon <will@...nel.org>
Cc: Arnd Bergmann <arnd@...db.de>,
Daniel Lezcano <daniel.lezcano@...aro.org>,
Dmitry Baryshkov <dmitry.baryshkov@...aro.org>,
John Stultz <john.stultz@...aro.org>,
Jean-Philippe Brucker <jean-philippe@...aro.org>,
Zhen Lei <thunder.leizhen@...wei.com>,
Robin Murphy <robin.murphy@....com>,
Yong Wu <yong.wu@...iatek.com>,
Kalle Valo <kvalo@...eaurora.org>,
Alex Elder <elder@...aro.org>,
iommu@...ts.linux-foundation.org, linux-kernel@...r.kernel.org
Subject: [PATCH] iommu/arm: fix ARM_SMMU_QCOM compilation
From: Arnd Bergmann <arnd@...db.de>
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.
Fixes: 424953cf3c66 ("qcom_scm: hide Kconfig symbol")
Reported-by: Daniel Lezcano <daniel.lezcano@...aro.org>
Reported-by: Dmitry Baryshkov <dmitry.baryshkov@...aro.org>
Reported-by: John Stultz <john.stultz@...aro.org>
Link: https://lore.kernel.org/lkml/20211010023350.978638-1-dmitry.baryshkov@linaro.org/
Signed-off-by: Arnd Bergmann <arnd@...db.de>
---
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(+)
diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig
index c5c71b7ab7e8..3eb68fa1b8cc 100644
--- a/drivers/iommu/Kconfig
+++ b/drivers/iommu/Kconfig
@@ -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
--
2.29.2
Powered by blists - more mailing lists