[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20221218102608.bzfyjnz64hcm4fj5@SoMainline.org>
Date: Sun, 18 Dec 2022 11:26:08 +0100
From: Marijn Suijten <marijn.suijten@...ainline.org>
To: phone-devel@...r.kernel.org, Will Deacon <will@...nel.org>,
Joerg Roedel <joro@...tes.org>,
Bjorn Andersson <andersson@...nel.org>
Cc: ~postmarketos/upstreaming@...ts.sr.ht,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@...ainline.org>,
Konrad Dybcio <konrad.dybcio@...ainline.org>,
Martin Botka <martin.botka@...ainline.org>,
Jami Kettunen <jami.kettunen@...ainline.org>,
Lux Aliaga <they@...t.lgbt>,
Robin Murphy <robin.murphy@....com>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Andy Gross <agross@...nel.org>,
Konrad Dybcio <konrad.dybcio@...aro.org>,
Dmitry Baryshkov <dmitry.baryshkov@...aro.org>,
Thierry Reding <treding@...dia.com>,
Melody Olvera <quic_molvera@...cinc.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Bhupesh Sharma <bhupesh.sharma@...aro.org>,
Douglas Anderson <dianders@...omium.org>,
linux-arm-kernel@...ts.infradead.org, iommu@...ts.linux.dev,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-msm@...r.kernel.org
Subject: Re: [PATCH v4 3/4] arm64: dts: qcom: sm6125: Add apps_smmu with
streamID to SDHCI 1/2 nodes
On 2022-12-16 22:58:18, Marijn Suijten wrote:
> When enabling the APPS SMMU the mainline driver reconfigures the SMMU
> from its bootloader configuration, loosing the stream mapping for (among
> which) the SDHCI hardware and breaking its ADMA feature. This feature
> can be disabled with:
>
> sdhci.debug_quirks=0x40
>
> But it is of course desired to have this feature enabled and working
> through the SMMU.
>
> Signed-off-by: Marijn Suijten <marijn.suijten@...ainline.org>
> ---
> arch/arm64/boot/dts/qcom/sm6125.dtsi | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/sm6125.dtsi b/arch/arm64/boot/dts/qcom/sm6125.dtsi
> index 347665c2067c..f560499cc0ca 100644
> --- a/arch/arm64/boot/dts/qcom/sm6125.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sm6125.dtsi
> @@ -468,6 +468,7 @@ sdhc_1: mmc@...4000 {
> <&gcc GCC_SDCC1_APPS_CLK>,
> <&xo_board>;
> clock-names = "iface", "core", "xo";
> + iommus = <&apps_smmu 0x160 0>;
I'll make the mask 0x0 (same below) in the next revision, please do not
apply this patch.
- Marijn
> power-domains = <&rpmpd SM6125_VDDCX>;
>
> @@ -494,6 +495,7 @@ sdhc_2: mmc@...4000 {
> <&gcc GCC_SDCC2_APPS_CLK>,
> <&xo_board>;
> clock-names = "iface", "core", "xo";
> + iommus = <&apps_smmu 0x180 0>;
>
> pinctrl-0 = <&sdc2_on_state>;
> pinctrl-1 = <&sdc2_off_state>;
> --
> 2.39.0
>
Powered by blists - more mailing lists