mbox series

[v2,0/8] Qualcomm QCS404 CDSP improvements and fastrpc

Message ID 20190510043421.31393-1-bjorn.andersson@linaro.org
Headers show
Series Qualcomm QCS404 CDSP improvements and fastrpc | expand

Message

Bjorn Andersson May 10, 2019, 4:34 a.m. UTC
This series introduces the non-Trustzone based CDSP support, restructures the
remoteproc nodes in the dts, introduces the IOMMU and adds the fastrpc nodes.

The matrix_multi app is used for verification, the test completes 100% of the
time, but exits only succesfully 70% of the time.

Bjorn Andersson (7):
  dt-bindings: remoteproc: Rename and amend Hexagon v56 binding
  remoteproc: qcom: qdsp6-adsp: Add support for QCS404 CDSP
  arm64: dts: qcom: qcs404-evb: Mark CDSP clocks protected
  arm64: dts: qcom: qcs404: Add TCSR node
  arm64: dts: qcom: qcs404: Fully describe the CDSP
  arm64: dts: qcom: qcs404: Move lpass and q6 into soc
  arm64: dts: qcom: qcs404: Define APPS IOMMU

Thierry Escande (1):
  arm64: dts: qcom: qcs404: Add fastrpc nodes

 ...qcom,adsp-pil.txt => qcom,hexagon-v56.txt} |  35 +-
 arch/arm64/boot/dts/qcom/qcs404-evb.dtsi      |   7 +
 arch/arm64/boot/dts/qcom/qcs404.dtsi          | 364 +++++++++++++-----
 drivers/remoteproc/qcom_q6v5_adsp.c           |  73 +++-
 4 files changed, 358 insertions(+), 121 deletions(-)
 rename Documentation/devicetree/bindings/remoteproc/{qcom,adsp-pil.txt => qcom,hexagon-v56.txt} (74%)

-- 
2.18.0

Comments

Vinod Koul May 13, 2019, 4:54 a.m. UTC | #1
On 09-05-19, 21:34, Bjorn Andersson wrote:
> The APPS IOMMU provides contexts for FastRPC, MDP and WLAN, among other

> things.  Define these. We use the qcom_iommu binding because the

        ^^^
Double spaces crept in..

> firmware restrictions in incompatible with the arm-smmu.

> 

> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>

> ---

>  arch/arm64/boot/dts/qcom/qcs404.dtsi | 85 ++++++++++++++++++++++++++++

>  1 file changed, 85 insertions(+)

> 

> diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi

> index b213f6acad76..fcde4f0334c2 100644

> --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi

> +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi

> @@ -378,6 +378,91 @@

>  			reg = <0x01937000 0x25000>;

>  		};

>  

> +		apps_iommu: iommu@1e20000 {

> +			compatible = "qcom,qcs404-iommu", "qcom,msm-iommu-v1";


Did we define qcom,qcs404-iommu in bindings, It does not seem to be
there in this patch, next or integration one

-- 
~Vinod
Bjorn Andersson May 13, 2019, 6:28 p.m. UTC | #2
On Sun 12 May 21:54 PDT 2019, Vinod Koul wrote:

> On 09-05-19, 21:34, Bjorn Andersson wrote:

> > The APPS IOMMU provides contexts for FastRPC, MDP and WLAN, among other

> > things.  Define these. We use the qcom_iommu binding because the

>         ^^^

> Double spaces crept in..

> 


That's to give you some breathing room while reading it - but not as
much as a new paragraph :)

> > firmware restrictions in incompatible with the arm-smmu.

> > 

> > Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>

> > ---

> >  arch/arm64/boot/dts/qcom/qcs404.dtsi | 85 ++++++++++++++++++++++++++++

> >  1 file changed, 85 insertions(+)

> > 

> > diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi

> > index b213f6acad76..fcde4f0334c2 100644

> > --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi

> > +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi

> > @@ -378,6 +378,91 @@

> >  			reg = <0x01937000 0x25000>;

> >  		};

> >  

> > +		apps_iommu: iommu@1e20000 {

> > +			compatible = "qcom,qcs404-iommu", "qcom,msm-iommu-v1";

> 

> Did we define qcom,qcs404-iommu in bindings, It does not seem to be

> there in this patch, next or integration one

> 


No, this was entirely intended to fall back on the generic compatible.

That said, further testing of this series indicates that we have a
cache issue related to the SMMU. In working out this I came up with a
series of patches to the arm-smmu driver that allow us to use this with
the standard Qualcomm bootloader.

So let's ignore patch 7 and 8 in this series until we know how to deal
with the SMMU.

Regards,
Bjorn