linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC][PATCH] iommu: Kconfig: Fix missing config option for CONFIG_ARM_SMMU_QCOM
@ 2021-10-12  3:26 John Stultz
  2021-10-12  3:37 ` Bjorn Andersson
  0 siblings, 1 reply; 3+ messages in thread
From: John Stultz @ 2021-10-12  3:26 UTC (permalink / raw)
  To: lkml
  Cc: John Stultz, Arnd Bergmann, Bjorn Andersson, Amit Pundir,
	Caleb Connolly, Kalle Valo, linux-arm-kernel, linux-arm-msm

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 <arnd@arndb.de>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Amit Pundir <amit.pundir@linaro.org>
Cc: Caleb Connolly <caleb.connolly@linaro.org>
Cc: Kalle Valo <kvalo@codeaurora.org>
Cc: linux-arm-kernel <linux-arm-kernel@lists.infradead.org>
Cc: linux-arm-msm <linux-arm-msm@vger.kernel.org>
Fixes: 424953cf3c665 ("qcom_scm: hide Kconfig symbol")
Signed-off-by: John Stultz <john.stultz@linaro.org>
---
 drivers/iommu/Kconfig | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig
index c5c71b7ab7e83..e674796b1174d 100644
--- a/drivers/iommu/Kconfig
+++ b/drivers/iommu/Kconfig
@@ -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
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [RFC][PATCH] iommu: Kconfig: Fix missing config option for CONFIG_ARM_SMMU_QCOM
  2021-10-12  3:26 [RFC][PATCH] iommu: Kconfig: Fix missing config option for CONFIG_ARM_SMMU_QCOM John Stultz
@ 2021-10-12  3:37 ` Bjorn Andersson
  2021-10-12  3:51   ` John Stultz
  0 siblings, 1 reply; 3+ messages in thread
From: Bjorn Andersson @ 2021-10-12  3:37 UTC (permalink / raw)
  To: John Stultz
  Cc: lkml, Arnd Bergmann, Amit Pundir, Caleb Connolly, Kalle Valo,
	linux-arm-kernel, linux-arm-msm

On Mon 11 Oct 22:26 CDT 2021, John Stultz wrote:

> 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.
> 

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

https://lore.kernel.org/linux-arm-msm/20211010023350.978638-1-dmitry.baryshkov@linaro.org/

Regards,
Bjorn

> Cc: Arnd Bergmann <arnd@arndb.de>
> Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
> Cc: Amit Pundir <amit.pundir@linaro.org>
> Cc: Caleb Connolly <caleb.connolly@linaro.org>
> Cc: Kalle Valo <kvalo@codeaurora.org>
> Cc: linux-arm-kernel <linux-arm-kernel@lists.infradead.org>
> Cc: linux-arm-msm <linux-arm-msm@vger.kernel.org>
> Fixes: 424953cf3c665 ("qcom_scm: hide Kconfig symbol")
> Signed-off-by: John Stultz <john.stultz@linaro.org>
> ---
>  drivers/iommu/Kconfig | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig
> index c5c71b7ab7e83..e674796b1174d 100644
> --- a/drivers/iommu/Kconfig
> +++ b/drivers/iommu/Kconfig
> @@ -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
> -- 
> 2.25.1
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFC][PATCH] iommu: Kconfig: Fix missing config option for CONFIG_ARM_SMMU_QCOM
  2021-10-12  3:37 ` Bjorn Andersson
@ 2021-10-12  3:51   ` John Stultz
  0 siblings, 0 replies; 3+ messages in thread
From: John Stultz @ 2021-10-12  3:51 UTC (permalink / raw)
  To: Bjorn Andersson
  Cc: lkml, Arnd Bergmann, Amit Pundir, Caleb Connolly, Kalle Valo,
	linux-arm-kernel, linux-arm-msm

On Mon, Oct 11, 2021 at 8:37 PM Bjorn Andersson
<bjorn.andersson@linaro.org> wrote:
>
> On Mon 11 Oct 22:26 CDT 2021, John Stultz wrote:
>
> > 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.
> >
>
> I've not looked where the discussion went, but Dmitry posted this end of
> last week:
>
> https://lore.kernel.org/linux-arm-msm/20211010023350.978638-1-dmitry.baryshkov@linaro.org/

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-12  3:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-12  3:26 [RFC][PATCH] iommu: Kconfig: Fix missing config option for CONFIG_ARM_SMMU_QCOM John Stultz
2021-10-12  3:37 ` Bjorn Andersson
2021-10-12  3:51   ` John Stultz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).