From: Bhupesh Sharma <bhupesh.sharma@linaro.org>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
agross@kernel.org, bhupesh.linux@gmail.com,
linux-kernel@vger.kernel.org, robh+dt@kernel.org,
krzysztof.kozlowski@linaro.org, konrad.dybcio@linaro.org,
andersson@kernel.org
Subject: Re: [PATCH] arm64: dts: qcom: sm8150: Fix iommu sid values for PCIe nodes
Date: Sat, 10 Dec 2022 21:51:46 +0530 [thread overview]
Message-ID: <CAH=2NtyQKBd3VQczfBzC5GU_y073wBdEH0gJBEfVm1ojsuWSag@mail.gmail.com> (raw)
In-Reply-To: <CAA8EJpqUT+Zy0uD+0NnUTbQWOM_+CAfXTU+ED=GwgcNe2MpVHQ@mail.gmail.com>
On Thu, 8 Dec 2022 at 19:43, Dmitry Baryshkov
<dmitry.baryshkov@linaro.org> wrote:
>
> On Thu, 8 Dec 2022 at 14:05, Bhupesh Sharma <bhupesh.sharma@linaro.org> wrote:
> >
> > On Thu, 8 Dec 2022 at 16:14, Dmitry Baryshkov
> > <dmitry.baryshkov@linaro.org> wrote:
> > >
> > > On Wed, 7 Dec 2022 at 09:29, Bhupesh Sharma <bhupesh.sharma@linaro.org> wrote:
> > > >
> > > > Fix the iommu sid values for the PCIe nodes present on
> > > > Qualcomm SM8150 SoC dtsi (in sync the with downstream code).
> > >
> > > The commit message describes what you did, not why. Is there any
> > > actual issue that you are trying to solve?
> >
> > Right, I will add that in v2. We have a customer facing some sid
> > related IOMMU transactional errors on sm8150 based boards.
> >
> > > It makes me wonder because all modern Qualcomm platforms share more or
> > > less the same setup.
> >
> > Please see sdm845.dtsi, which does the same as suggested via this
> > patch for sm8150.
>
> Should we also apply the same change to other platforms?
That's a good question. But I have no test data points to say that
this should be valid for other platforms as well. Let me check with
the folks @ qcom who reported this, (i.e. whether they see this with
other qcom platforms as well), but let's not hold back this fix while
we wait for more data.
Thanks.
> > > > Fixes: a1c86c680533 ("arm64: dts: qcom: sm8150: Add PCIe nodes")
> > > > Cc: Bjorn Andersson <andersson@kernel.org>
> > > > Cc: Rob Herring <robh+dt@kernel.org>
> > >
> > > No need to have regular maintainers in Cc tags. Please use regular
> > > git-send-email arguments instead.
> > >
> > > > Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
> > > > ---
> > > > arch/arm64/boot/dts/qcom/sm8150.dtsi | 32 ++++++++++++++++++++++++++--
> > > > 1 file changed, 30 insertions(+), 2 deletions(-)
> > > >
> > > > diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi
> > > > index d1b64280ab0b..e88d1617a1ab 100644
> > > > --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi
> > > > +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi
> > > > @@ -1810,9 +1810,23 @@ pcie0: pci@1c00000 {
> > > > "slave_q2a",
> > > > "tbu";
> > > >
> > > > - iommus = <&apps_smmu 0x1d80 0x7f>;
> > > > + iommus = <&apps_smmu 0x1d80 0xf>;
> > > > iommu-map = <0x0 &apps_smmu 0x1d80 0x1>,
> > > > <0x100 &apps_smmu 0x1d81 0x1>;
> > >
> > > it looks like the patch was not even compile-tested.
> > >
> > > > + <0x200 &apps_smmu 0x1d82 0x1>,
> > > > + <0x300 &apps_smmu 0x1d83 0x1>,
> > > > + <0x400 &apps_smmu 0x1d84 0x1>,
> > > > + <0x500 &apps_smmu 0x1d85 0x1>,
> > > > + <0x600 &apps_smmu 0x1d86 0x1>,
> > > > + <0x700 &apps_smmu 0x1d87 0x1>,
> > > > + <0x800 &apps_smmu 0x1d88 0x1>,
> > > > + <0x900 &apps_smmu 0x1d89 0x1>,
> > > > + <0xa00 &apps_smmu 0x1d8a 0x1>,
> > > > + <0xb00 &apps_smmu 0x1d8b 0x1>,
> > > > + <0xc00 &apps_smmu 0x1d8c 0x1>,
> > > > + <0xd00 &apps_smmu 0x1d8d 0x1>,
> > > > + <0xe00 &apps_smmu 0x1d8e 0x1>,
> > > > + <0xf00 &apps_smmu 0x1d8f 0x1>;
> > > >
> > > > resets = <&gcc GCC_PCIE_0_BCR>;
> > > > reset-names = "pci";
> > > > @@ -1909,9 +1923,23 @@ pcie1: pci@1c08000 {
> > > > assigned-clocks = <&gcc GCC_PCIE_1_AUX_CLK>;
> > > > assigned-clock-rates = <19200000>;
> > > >
> > > > - iommus = <&apps_smmu 0x1e00 0x7f>;
> > > > + iommus = <&apps_smmu 0x1e00 0xf>;
> > > > iommu-map = <0x0 &apps_smmu 0x1e00 0x1>,
> > > > <0x100 &apps_smmu 0x1e01 0x1>;
> > > > + <0x200 &apps_smmu 0x1e02 0x1>,
> > > > + <0x300 &apps_smmu 0x1e03 0x1>,
> > > > + <0x400 &apps_smmu 0x1e04 0x1>,
> > > > + <0x500 &apps_smmu 0x1e05 0x1>,
> > > > + <0x600 &apps_smmu 0x1e06 0x1>,
> > > > + <0x700 &apps_smmu 0x1e07 0x1>,
> > > > + <0x800 &apps_smmu 0x1e08 0x1>,
> > > > + <0x900 &apps_smmu 0x1e09 0x1>,
> > > > + <0xa00 &apps_smmu 0x1e0a 0x1>,
> > > > + <0xb00 &apps_smmu 0x1e0b 0x1>,
> > > > + <0xc00 &apps_smmu 0x1e0c 0x1>,
> > > > + <0xd00 &apps_smmu 0x1e0d 0x1>,
> > > > + <0xe00 &apps_smmu 0x1e0e 0x1>,
> > > > + <0xf00 &apps_smmu 0x1e0f 0x1>;
> > > >
> > > > resets = <&gcc GCC_PCIE_1_BCR>;
> > > > reset-names = "pci";
> > > > --
> > > > 2.38.1
> > > >
> > >
> > >
> > > --
> > > With best wishes
> > > Dmitry
>
>
>
> --
> With best wishes
> Dmitry
prev parent reply other threads:[~2022-12-10 16:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-07 6:29 [PATCH] arm64: dts: qcom: sm8150: Fix iommu sid values for PCIe nodes Bhupesh Sharma
2022-12-07 22:25 ` kernel test robot
2022-12-08 9:55 ` Konrad Dybcio
2022-12-08 11:02 ` Bhupesh Sharma
2022-12-08 10:44 ` Dmitry Baryshkov
2022-12-08 11:04 ` Bhupesh Sharma
2022-12-08 14:13 ` Dmitry Baryshkov
2022-12-10 16:21 ` Bhupesh Sharma [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAH=2NtyQKBd3VQczfBzC5GU_y073wBdEH0gJBEfVm1ojsuWSag@mail.gmail.com' \
--to=bhupesh.sharma@linaro.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=bhupesh.linux@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@linaro.org \
--cc=konrad.dybcio@linaro.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).