Re: [PATCH 2/2] arm64: dts: imx8mp: add reserve-memory nodes for DSP

2023-09-12 Thread Mathieu Poirier
On Tue, Sep 12, 2023 at 01:51:42PM +0300, Iuliana Prodan wrote:
> On 9/12/2023 12:36 PM, Krzysztof Kozlowski wrote:
> > On 12/09/2023 10:49, Iuliana Prodan wrote:
> > > > > Should I test this on other tree(s)?
> > > > You test the patch on the tree you send it. What is the point to test it
> > > > on some old code, cherry-pick with bugs and then send?
> > > > 
> > > > If you have cross-tree dependencies between subsystem, isn't linux-next
> > > > for this?
> > > TBH, I don't know, that's why I asked.
> > > 
> > > For sure one patch is for remoteproc.
> > > For the other, I don't know who will pick it, but I'll tested on
> > > linux-next, as you suggested.
> > MAINTAINERS file (and get_maintainers.pl) will tell you. Specifically,
> > this does not look really related to remoteproc patch, so it should not
> > be together in one patchset.
> 
> Hi Mathieu,
> 
> I need to send a v2 - to fix the dtsi missing bracket on patch 2.
> So, should I keep the 2 patches together or send them separately?
>

Marco is already aware of this patchset so I would keep them together.

> Thanks,
> Iulia
> 
> 
> 


Re: [PATCH 2/2] arm64: dts: imx8mp: add reserve-memory nodes for DSP

2023-09-12 Thread Marco Felsch
On 23-09-12, Iuliana Prodan wrote:
> On 9/12/2023 2:30 PM, Marco Felsch wrote:
> > Hi Iuliana,
> > 
> > On 23-09-12, Iuliana Prodan (OSS) wrote:
> > > From: Iuliana Prodan 
> > > 
> > > Add the reserve-memory nodes used by DSP when the rpmsg
> > > feature is enabled.
> > > These can be later used in a dsp node, like:
> > > dsp: dsp@3b6e8000 {
> > >   compatible = "fsl,imx8mp-dsp";
> > >   reg = <0x3b6e8000 0x88000>;
> > >   mbox-names = "tx0", "rx0", "rxdb0";
> > >   mboxes = < 2 0>, < 2 1>,
> > >   < 3 0>, < 3 1>;
> > >   memory-region = <_vdev0buffer>, <_vdev0vring0>,
> > >   <_vdev0vring1>, <_reserved>;
> > >   status = "okay";
> > > };
> > > 
> > > Signed-off-by: Iuliana Prodan 
> > > ---
> > >   arch/arm64/boot/dts/freescale/imx8mp.dtsi | 12 
> > >   1 file changed, 12 insertions(+)
> > > 
> > > diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi 
> > > b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
> > > index cc406bb338fe..eedc1921af62 100644
> > > --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi
> > > +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
> > > @@ -210,6 +210,18 @@
> > >   dsp_reserved: dsp@9240 {
> > >   reg = <0 0x9240 0 0x200>;
> > >   no-map;
> > This seems broken.
> 
> 
> You're right.
> Already answered to this here:
> https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg2558691.html

Sorry, saw it to late..

Regards,
  Marco


Re: [PATCH 2/2] arm64: dts: imx8mp: add reserve-memory nodes for DSP

2023-09-12 Thread Iuliana Prodan

On 9/12/2023 2:30 PM, Marco Felsch wrote:

Hi Iuliana,

On 23-09-12, Iuliana Prodan (OSS) wrote:

From: Iuliana Prodan 

Add the reserve-memory nodes used by DSP when the rpmsg
feature is enabled.
These can be later used in a dsp node, like:
dsp: dsp@3b6e8000 {
compatible = "fsl,imx8mp-dsp";
reg = <0x3b6e8000 0x88000>;
mbox-names = "tx0", "rx0", "rxdb0";
mboxes = < 2 0>, < 2 1>,
< 3 0>, < 3 1>;
memory-region = <_vdev0buffer>, <_vdev0vring0>,
<_vdev0vring1>, <_reserved>;
status = "okay";
};

Signed-off-by: Iuliana Prodan 
---
  arch/arm64/boot/dts/freescale/imx8mp.dtsi | 12 
  1 file changed, 12 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi 
b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
index cc406bb338fe..eedc1921af62 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
@@ -210,6 +210,18 @@
dsp_reserved: dsp@9240 {
reg = <0 0x9240 0 0x200>;
no-map;

This seems broken.



You're right.
Already answered to this here: 
https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg2558691.html


Thanks,
Iulia


Regards,
   Marco


+   dsp_vdev0vring0: vdev0vring0@942f {
+   reg = <0 0x942f 0 0x8000>;
+   no-map;
+   };
+   dsp_vdev0vring1: vdev0vring1@942f8000 {
+   reg = <0 0x942f8000 0 0x8000>;
+   no-map;
+   };
+   dsp_vdev0buffer: vdev0buffer@9430 {
+   compatible = "shared-dma-pool";
+   reg = <0 0x9430 0 0x10>;
+   no-map;
};
};
  
--

2.17.1





Re: [PATCH 2/2] arm64: dts: imx8mp: add reserve-memory nodes for DSP

2023-09-12 Thread Marco Felsch
Hi Iuliana,

On 23-09-12, Iuliana Prodan (OSS) wrote:
> From: Iuliana Prodan 
> 
> Add the reserve-memory nodes used by DSP when the rpmsg
> feature is enabled.
> These can be later used in a dsp node, like:
> dsp: dsp@3b6e8000 {
>   compatible = "fsl,imx8mp-dsp";
>   reg = <0x3b6e8000 0x88000>;
>   mbox-names = "tx0", "rx0", "rxdb0";
>   mboxes = < 2 0>, < 2 1>,
>   < 3 0>, < 3 1>;
>   memory-region = <_vdev0buffer>, <_vdev0vring0>,
>   <_vdev0vring1>, <_reserved>;
>   status = "okay";
> };
> 
> Signed-off-by: Iuliana Prodan 
> ---
>  arch/arm64/boot/dts/freescale/imx8mp.dtsi | 12 
>  1 file changed, 12 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi 
> b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
> index cc406bb338fe..eedc1921af62 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
> @@ -210,6 +210,18 @@
>   dsp_reserved: dsp@9240 {
>   reg = <0 0x9240 0 0x200>;
>   no-map;

This seems broken.

Regards,
  Marco

> + dsp_vdev0vring0: vdev0vring0@942f {
> + reg = <0 0x942f 0 0x8000>;
> + no-map;
> + };
> + dsp_vdev0vring1: vdev0vring1@942f8000 {
> + reg = <0 0x942f8000 0 0x8000>;
> + no-map;
> + };
> + dsp_vdev0buffer: vdev0buffer@9430 {
> + compatible = "shared-dma-pool";
> + reg = <0 0x9430 0 0x10>;
> + no-map;
>   };
>   };
>  
> -- 
> 2.17.1
> 
> 
> 


Re: [PATCH 2/2] arm64: dts: imx8mp: add reserve-memory nodes for DSP

2023-09-12 Thread Daniel Baluta
On Tue, Sep 12, 2023 at 12:54 PM Iuliana Prodan  wrote:
>
> On 9/12/2023 11:26 AM, Krzysztof Kozlowski wrote:
> > On 12/09/2023 10:13, Iuliana Prodan wrote:
> >> On 9/12/2023 10:07 AM, Krzysztof Kozlowski wrote:
> >>> On 12/09/2023 00:44, Iuliana Prodan (OSS) wrote:
>  From: Iuliana Prodan 
> 
>  Add the reserve-memory nodes used by DSP when the rpmsg
>  feature is enabled.
>  These can be later used in a dsp node, like:
>  dsp: dsp@3b6e8000 {
> compatible = "fsl,imx8mp-dsp";
> reg = <0x3b6e8000 0x88000>;
> mbox-names = "tx0", "rx0", "rxdb0";
> mboxes = < 2 0>, < 2 1>,
> < 3 0>, < 3 1>;
> memory-region = <_vdev0buffer>, <_vdev0vring0>,
> <_vdev0vring1>, <_reserved>;
> status = "okay";
> >>> Drop this example from commit msg, useless and not really correct.
> >> Ok, will drop it. But this is a correct example, is just incomplete.
> > No, status=okay is redundant, thus it is not a correct example.
> ok
>  };
> 
>  Signed-off-by: Iuliana Prodan 
>  ---
> arch/arm64/boot/dts/freescale/imx8mp.dtsi | 12 
> 1 file changed, 12 insertions(+)
> 
>  diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi 
>  b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
>  index cc406bb338fe..eedc1921af62 100644
>  --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi
>  +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
>  @@ -210,6 +210,18 @@
> dsp_reserved: dsp@9240 {
> reg = <0 0x9240 0 0x200>;
> no-map;
> >>> Please test the patches before sending. This does not build.
> >> I've tested on remoteproc tree, but it seems I missed a bracket when
> >> sending upstream. Sorry abut this, will fix it in v2.
> > No, this is not how testing works. You must test this patch. This means
> > you tested something, then ported patch to entirely different tree,
> > resolved conflicts in buggy way and send it without testing. Nope.
> >
> >> Should I test this on other tree(s)?
> > You test the patch on the tree you send it. What is the point to test it
> > on some old code, cherry-pick with bugs and then send?
> >
> > If you have cross-tree dependencies between subsystem, isn't linux-next
> > for this?

linux-next tree is the tree we want.


Re: [PATCH 2/2] arm64: dts: imx8mp: add reserve-memory nodes for DSP

2023-09-12 Thread Iuliana Prodan

On 9/12/2023 12:36 PM, Krzysztof Kozlowski wrote:

On 12/09/2023 10:49, Iuliana Prodan wrote:

Should I test this on other tree(s)?

You test the patch on the tree you send it. What is the point to test it
on some old code, cherry-pick with bugs and then send?

If you have cross-tree dependencies between subsystem, isn't linux-next
for this?

TBH, I don't know, that's why I asked.

For sure one patch is for remoteproc.
For the other, I don't know who will pick it, but I'll tested on
linux-next, as you suggested.

MAINTAINERS file (and get_maintainers.pl) will tell you. Specifically,
this does not look really related to remoteproc patch, so it should not
be together in one patchset.


Hi Mathieu,

I need to send a v2 - to fix the dtsi missing bracket on patch 2.
So, should I keep the 2 patches together or send them separately?

Thanks,
Iulia





Re: [PATCH 2/2] arm64: dts: imx8mp: add reserve-memory nodes for DSP

2023-09-12 Thread Krzysztof Kozlowski
On 12/09/2023 10:49, Iuliana Prodan wrote:
>>> Should I test this on other tree(s)?
>> You test the patch on the tree you send it. What is the point to test it
>> on some old code, cherry-pick with bugs and then send?
>>
>> If you have cross-tree dependencies between subsystem, isn't linux-next
>> for this?
> 
> TBH, I don't know, that's why I asked.
> 
> For sure one patch is for remoteproc.
> For the other, I don't know who will pick it, but I'll tested on 
> linux-next, as you suggested.

MAINTAINERS file (and get_maintainers.pl) will tell you. Specifically,
this does not look really related to remoteproc patch, so it should not
be together in one patchset.

Best regards,
Krzysztof



Re: [PATCH 2/2] arm64: dts: imx8mp: add reserve-memory nodes for DSP

2023-09-12 Thread Iuliana Prodan

On 9/12/2023 11:26 AM, Krzysztof Kozlowski wrote:

On 12/09/2023 10:13, Iuliana Prodan wrote:

On 9/12/2023 10:07 AM, Krzysztof Kozlowski wrote:

On 12/09/2023 00:44, Iuliana Prodan (OSS) wrote:

From: Iuliana Prodan 

Add the reserve-memory nodes used by DSP when the rpmsg
feature is enabled.
These can be later used in a dsp node, like:
dsp: dsp@3b6e8000 {
compatible = "fsl,imx8mp-dsp";
reg = <0x3b6e8000 0x88000>;
mbox-names = "tx0", "rx0", "rxdb0";
mboxes = < 2 0>, < 2 1>,
< 3 0>, < 3 1>;
memory-region = <_vdev0buffer>, <_vdev0vring0>,
<_vdev0vring1>, <_reserved>;
status = "okay";

Drop this example from commit msg, useless and not really correct.

Ok, will drop it. But this is a correct example, is just incomplete.

No, status=okay is redundant, thus it is not a correct example.

ok

};

Signed-off-by: Iuliana Prodan 
---
   arch/arm64/boot/dts/freescale/imx8mp.dtsi | 12 
   1 file changed, 12 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi 
b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
index cc406bb338fe..eedc1921af62 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
@@ -210,6 +210,18 @@
dsp_reserved: dsp@9240 {
reg = <0 0x9240 0 0x200>;
no-map;

Please test the patches before sending. This does not build.

I've tested on remoteproc tree, but it seems I missed a bracket when
sending upstream. Sorry abut this, will fix it in v2.

No, this is not how testing works. You must test this patch. This means
you tested something, then ported patch to entirely different tree,
resolved conflicts in buggy way and send it without testing. Nope.


Should I test this on other tree(s)?

You test the patch on the tree you send it. What is the point to test it
on some old code, cherry-pick with bugs and then send?

If you have cross-tree dependencies between subsystem, isn't linux-next
for this?


TBH, I don't know, that's why I asked.

For sure one patch is for remoteproc.
For the other, I don't know who will pick it, but I'll tested on 
linux-next, as you suggested.


Thanks,
Iulia



Best regards,
Krzysztof



Re: [PATCH 2/2] arm64: dts: imx8mp: add reserve-memory nodes for DSP

2023-09-12 Thread Krzysztof Kozlowski
On 12/09/2023 10:13, Iuliana Prodan wrote:
> On 9/12/2023 10:07 AM, Krzysztof Kozlowski wrote:
>> On 12/09/2023 00:44, Iuliana Prodan (OSS) wrote:
>>> From: Iuliana Prodan 
>>>
>>> Add the reserve-memory nodes used by DSP when the rpmsg
>>> feature is enabled.
>>> These can be later used in a dsp node, like:
>>> dsp: dsp@3b6e8000 {
>>> compatible = "fsl,imx8mp-dsp";
>>> reg = <0x3b6e8000 0x88000>;
>>> mbox-names = "tx0", "rx0", "rxdb0";
>>> mboxes = < 2 0>, < 2 1>,
>>> < 3 0>, < 3 1>;
>>> memory-region = <_vdev0buffer>, <_vdev0vring0>,
>>> <_vdev0vring1>, <_reserved>;
>>> status = "okay";
>> Drop this example from commit msg, useless and not really correct.
> Ok, will drop it. But this is a correct example, is just incomplete.

No, status=okay is redundant, thus it is not a correct example.

>>> };
>>>
>>> Signed-off-by: Iuliana Prodan 
>>> ---
>>>   arch/arm64/boot/dts/freescale/imx8mp.dtsi | 12 
>>>   1 file changed, 12 insertions(+)
>>>
>>> diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi 
>>> b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
>>> index cc406bb338fe..eedc1921af62 100644
>>> --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi
>>> +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
>>> @@ -210,6 +210,18 @@
>>> dsp_reserved: dsp@9240 {
>>> reg = <0 0x9240 0 0x200>;
>>> no-map;
>> Please test the patches before sending. This does not build.
> 
> I've tested on remoteproc tree, but it seems I missed a bracket when 
> sending upstream. Sorry abut this, will fix it in v2.

No, this is not how testing works. You must test this patch. This means
you tested something, then ported patch to entirely different tree,
resolved conflicts in buggy way and send it without testing. Nope.

> Should I test this on other tree(s)?

You test the patch on the tree you send it. What is the point to test it
on some old code, cherry-pick with bugs and then send?

If you have cross-tree dependencies between subsystem, isn't linux-next
for this?


Best regards,
Krzysztof



Re: [PATCH 2/2] arm64: dts: imx8mp: add reserve-memory nodes for DSP

2023-09-12 Thread Iuliana Prodan

On 9/12/2023 10:07 AM, Krzysztof Kozlowski wrote:

On 12/09/2023 00:44, Iuliana Prodan (OSS) wrote:

From: Iuliana Prodan 

Add the reserve-memory nodes used by DSP when the rpmsg
feature is enabled.
These can be later used in a dsp node, like:
dsp: dsp@3b6e8000 {
compatible = "fsl,imx8mp-dsp";
reg = <0x3b6e8000 0x88000>;
mbox-names = "tx0", "rx0", "rxdb0";
mboxes = < 2 0>, < 2 1>,
< 3 0>, < 3 1>;
memory-region = <_vdev0buffer>, <_vdev0vring0>,
<_vdev0vring1>, <_reserved>;
status = "okay";

Drop this example from commit msg, useless and not really correct.

Ok, will drop it. But this is a correct example, is just incomplete.

};

Signed-off-by: Iuliana Prodan 
---
  arch/arm64/boot/dts/freescale/imx8mp.dtsi | 12 
  1 file changed, 12 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi 
b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
index cc406bb338fe..eedc1921af62 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
@@ -210,6 +210,18 @@
dsp_reserved: dsp@9240 {
reg = <0 0x9240 0 0x200>;
no-map;

Please test the patches before sending. This does not build.


I've tested on remoteproc tree, but it seems I missed a bracket when 
sending upstream. Sorry abut this, will fix it in v2.


Should I test this on other tree(s)?

Thanks,
Iulia


Best regards,
Krzysztof



Re: [PATCH 2/2] arm64: dts: imx8mp: add reserve-memory nodes for DSP

2023-09-12 Thread Krzysztof Kozlowski
On 12/09/2023 00:44, Iuliana Prodan (OSS) wrote:
> From: Iuliana Prodan 
> 
> Add the reserve-memory nodes used by DSP when the rpmsg
> feature is enabled.
> These can be later used in a dsp node, like:
> dsp: dsp@3b6e8000 {
>   compatible = "fsl,imx8mp-dsp";
>   reg = <0x3b6e8000 0x88000>;
>   mbox-names = "tx0", "rx0", "rxdb0";
>   mboxes = < 2 0>, < 2 1>,
>   < 3 0>, < 3 1>;
>   memory-region = <_vdev0buffer>, <_vdev0vring0>,
>   <_vdev0vring1>, <_reserved>;
>   status = "okay";

Drop this example from commit msg, useless and not really correct.

> };
> 
> Signed-off-by: Iuliana Prodan 
> ---
>  arch/arm64/boot/dts/freescale/imx8mp.dtsi | 12 
>  1 file changed, 12 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi 
> b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
> index cc406bb338fe..eedc1921af62 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
> @@ -210,6 +210,18 @@
>   dsp_reserved: dsp@9240 {
>   reg = <0 0x9240 0 0x200>;
>   no-map;

Please test the patches before sending. This does not build.

Best regards,
Krzysztof



[PATCH 2/2] arm64: dts: imx8mp: add reserve-memory nodes for DSP

2023-09-11 Thread Iuliana Prodan (OSS)
From: Iuliana Prodan 

Add the reserve-memory nodes used by DSP when the rpmsg
feature is enabled.
These can be later used in a dsp node, like:
dsp: dsp@3b6e8000 {
compatible = "fsl,imx8mp-dsp";
reg = <0x3b6e8000 0x88000>;
mbox-names = "tx0", "rx0", "rxdb0";
mboxes = < 2 0>, < 2 1>,
< 3 0>, < 3 1>;
memory-region = <_vdev0buffer>, <_vdev0vring0>,
<_vdev0vring1>, <_reserved>;
status = "okay";
};

Signed-off-by: Iuliana Prodan 
---
 arch/arm64/boot/dts/freescale/imx8mp.dtsi | 12 
 1 file changed, 12 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi 
b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
index cc406bb338fe..eedc1921af62 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
@@ -210,6 +210,18 @@
dsp_reserved: dsp@9240 {
reg = <0 0x9240 0 0x200>;
no-map;
+   dsp_vdev0vring0: vdev0vring0@942f {
+   reg = <0 0x942f 0 0x8000>;
+   no-map;
+   };
+   dsp_vdev0vring1: vdev0vring1@942f8000 {
+   reg = <0 0x942f8000 0 0x8000>;
+   no-map;
+   };
+   dsp_vdev0buffer: vdev0buffer@9430 {
+   compatible = "shared-dma-pool";
+   reg = <0 0x9430 0 0x10>;
+   no-map;
};
};
 
-- 
2.17.1