All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: imx8mm: fix dma peripheral type for SAI nodes
@ 2020-03-31 20:35 ` Matt Porter
  0 siblings, 0 replies; 8+ messages in thread
From: Matt Porter @ 2020-03-31 20:35 UTC (permalink / raw)
  To: Shawn Guo, Sascha Hauer
  Cc: Rob Herring, Mark Rutland, Anson Huang, Leonard Crestez,
	Daniel Baluta, Devicetree List, Linux ARM Kernel List,
	Linux Kernel Mailing List

The peripheral type specified in the dma phandle for each SAI node
is incorrect. Change it to specify the SAI peripheral.

Signed-off-by: Matt Porter <mporter@konsulko.com>
---
 arch/arm64/boot/dts/freescale/imx8mm.dtsi | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi
index 1e5e11592f7b..ddc93fc4817a 100644
--- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi
@@ -240,7 +240,7 @@
 					 <&clk IMX8MM_CLK_SAI1_ROOT>,
 					 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
 				clock-names = "bus", "mclk1", "mclk2", "mclk3";
-				dmas = <&sdma2 0 2 0>, <&sdma2 1 2 0>;
+				dmas = <&sdma2 0 24 0>, <&sdma2 1 24 0>;
 				dma-names = "rx", "tx";
 				status = "disabled";
 			};
@@ -253,7 +253,7 @@
 					<&clk IMX8MM_CLK_SAI2_ROOT>,
 					<&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
 				clock-names = "bus", "mclk1", "mclk2", "mclk3";
-				dmas = <&sdma2 2 2 0>, <&sdma2 3 2 0>;
+				dmas = <&sdma2 2 24 0>, <&sdma2 3 24 0>;
 				dma-names = "rx", "tx";
 				status = "disabled";
 			};
@@ -267,7 +267,7 @@
 					 <&clk IMX8MM_CLK_SAI3_ROOT>,
 					 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
 				clock-names = "bus", "mclk1", "mclk2", "mclk3";
-				dmas = <&sdma2 4 2 0>, <&sdma2 5 2 0>;
+				dmas = <&sdma2 4 24 0>, <&sdma2 5 24 0>;
 				dma-names = "rx", "tx";
 				status = "disabled";
 			};
@@ -280,7 +280,7 @@
 					 <&clk IMX8MM_CLK_SAI5_ROOT>,
 					 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
 				clock-names = "bus", "mclk1", "mclk2", "mclk3";
-				dmas = <&sdma2 8 2 0>, <&sdma2 9 2 0>;
+				dmas = <&sdma2 8 24 0>, <&sdma2 9 24 0>;
 				dma-names = "rx", "tx";
 				status = "disabled";
 			};
@@ -293,7 +293,7 @@
 					 <&clk IMX8MM_CLK_SAI6_ROOT>,
 					 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
 				clock-names = "bus", "mclk1", "mclk2", "mclk3";
-				dmas = <&sdma2 10 2 0>, <&sdma2 11 2 0>;
+				dmas = <&sdma2 10 24 0>, <&sdma2 11 24 0>;
 				dma-names = "rx", "tx";
 				status = "disabled";
 			};
-- 
2.20.1


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

* [PATCH] arm64: dts: imx8mm: fix dma peripheral type for SAI nodes
@ 2020-03-31 20:35 ` Matt Porter
  0 siblings, 0 replies; 8+ messages in thread
From: Matt Porter @ 2020-03-31 20:35 UTC (permalink / raw)
  To: Shawn Guo, Sascha Hauer
  Cc: Mark Rutland, Devicetree List, Anson Huang,
	Linux Kernel Mailing List, Rob Herring, Leonard Crestez,
	Daniel Baluta, Linux ARM Kernel List

The peripheral type specified in the dma phandle for each SAI node
is incorrect. Change it to specify the SAI peripheral.

Signed-off-by: Matt Porter <mporter@konsulko.com>
---
 arch/arm64/boot/dts/freescale/imx8mm.dtsi | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi
index 1e5e11592f7b..ddc93fc4817a 100644
--- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi
@@ -240,7 +240,7 @@
 					 <&clk IMX8MM_CLK_SAI1_ROOT>,
 					 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
 				clock-names = "bus", "mclk1", "mclk2", "mclk3";
-				dmas = <&sdma2 0 2 0>, <&sdma2 1 2 0>;
+				dmas = <&sdma2 0 24 0>, <&sdma2 1 24 0>;
 				dma-names = "rx", "tx";
 				status = "disabled";
 			};
@@ -253,7 +253,7 @@
 					<&clk IMX8MM_CLK_SAI2_ROOT>,
 					<&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
 				clock-names = "bus", "mclk1", "mclk2", "mclk3";
-				dmas = <&sdma2 2 2 0>, <&sdma2 3 2 0>;
+				dmas = <&sdma2 2 24 0>, <&sdma2 3 24 0>;
 				dma-names = "rx", "tx";
 				status = "disabled";
 			};
@@ -267,7 +267,7 @@
 					 <&clk IMX8MM_CLK_SAI3_ROOT>,
 					 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
 				clock-names = "bus", "mclk1", "mclk2", "mclk3";
-				dmas = <&sdma2 4 2 0>, <&sdma2 5 2 0>;
+				dmas = <&sdma2 4 24 0>, <&sdma2 5 24 0>;
 				dma-names = "rx", "tx";
 				status = "disabled";
 			};
@@ -280,7 +280,7 @@
 					 <&clk IMX8MM_CLK_SAI5_ROOT>,
 					 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
 				clock-names = "bus", "mclk1", "mclk2", "mclk3";
-				dmas = <&sdma2 8 2 0>, <&sdma2 9 2 0>;
+				dmas = <&sdma2 8 24 0>, <&sdma2 9 24 0>;
 				dma-names = "rx", "tx";
 				status = "disabled";
 			};
@@ -293,7 +293,7 @@
 					 <&clk IMX8MM_CLK_SAI6_ROOT>,
 					 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
 				clock-names = "bus", "mclk1", "mclk2", "mclk3";
-				dmas = <&sdma2 10 2 0>, <&sdma2 11 2 0>;
+				dmas = <&sdma2 10 24 0>, <&sdma2 11 24 0>;
 				dma-names = "rx", "tx";
 				status = "disabled";
 			};
-- 
2.20.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH] arm64: dts: imx8mm: fix dma peripheral type for SAI nodes
  2020-03-31 20:35 ` Matt Porter
@ 2020-04-15 18:04   ` Daniel Baluta
  -1 siblings, 0 replies; 8+ messages in thread
From: Daniel Baluta @ 2020-04-15 18:04 UTC (permalink / raw)
  To: Matt Porter
  Cc: Shawn Guo, Sascha Hauer, Rob Herring, Mark Rutland, Anson Huang,
	Leonard Crestez, Daniel Baluta, Devicetree List,
	Linux ARM Kernel List, Linux Kernel Mailing List, yibin.gong

On Tue, Mar 31, 2020 at 11:36 PM Matt Porter <mporter@konsulko.com> wrote:
>
> The peripheral type specified in the dma phandle for each SAI node
> is incorrect. Change it to specify the SAI peripheral.
>
> Signed-off-by: Matt Porter <mporter@konsulko.com>

Hi Matt,

Why do you think this is incorrect?  AFAIK script number 2 works fine
for SAI. Can you add
more details on what bug are you encountering?

Adding Robin the owner of SDMA.

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

* Re: [PATCH] arm64: dts: imx8mm: fix dma peripheral type for SAI nodes
@ 2020-04-15 18:04   ` Daniel Baluta
  0 siblings, 0 replies; 8+ messages in thread
From: Daniel Baluta @ 2020-04-15 18:04 UTC (permalink / raw)
  To: Matt Porter
  Cc: Mark Rutland, Devicetree List, yibin.gong, Anson Huang,
	Daniel Baluta, Sascha Hauer, Linux Kernel Mailing List,
	Rob Herring, Leonard Crestez, Shawn Guo, Linux ARM Kernel List

On Tue, Mar 31, 2020 at 11:36 PM Matt Porter <mporter@konsulko.com> wrote:
>
> The peripheral type specified in the dma phandle for each SAI node
> is incorrect. Change it to specify the SAI peripheral.
>
> Signed-off-by: Matt Porter <mporter@konsulko.com>

Hi Matt,

Why do you think this is incorrect?  AFAIK script number 2 works fine
for SAI. Can you add
more details on what bug are you encountering?

Adding Robin the owner of SDMA.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH] arm64: dts: imx8mm: fix dma peripheral type for SAI nodes
  2020-04-15 18:04   ` Daniel Baluta
@ 2020-04-15 18:45     ` Matt Porter
  -1 siblings, 0 replies; 8+ messages in thread
From: Matt Porter @ 2020-04-15 18:45 UTC (permalink / raw)
  To: Daniel Baluta
  Cc: Shawn Guo, Sascha Hauer, Rob Herring, Mark Rutland, Anson Huang,
	Leonard Crestez, Daniel Baluta, Devicetree List,
	Linux ARM Kernel List, Linux Kernel Mailing List, yibin.gong

On Wed, Apr 15, 2020 at 09:04:43PM +0300, Daniel Baluta wrote:
> On Tue, Mar 31, 2020 at 11:36 PM Matt Porter <mporter@konsulko.com> wrote:
> >
> > The peripheral type specified in the dma phandle for each SAI node
> > is incorrect. Change it to specify the SAI peripheral.
> >
> > Signed-off-by: Matt Porter <mporter@konsulko.com>
> 
> Hi Matt,
> 
> Why do you think this is incorrect?  AFAIK script number 2 works fine
> for SAI. Can you add
> more details on what bug are you encountering?
> 
> Adding Robin the owner of SDMA.

Hi Daniel,

Thanks for the response. I was experiencing timeouts that were traced
back to dma incompletions. Changing the script at the time fixed that
issue. Now, given your response I went back and checked this again and
verified that script 2 does work for me now. I did change firmware to
the latest v4.4 from something quite old so now I'm suspecting I had
bad firmware loaded up. Does that sound plausible? In any case, I can
confirm this is not needed.

-Matt

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

* Re: [PATCH] arm64: dts: imx8mm: fix dma peripheral type for SAI nodes
@ 2020-04-15 18:45     ` Matt Porter
  0 siblings, 0 replies; 8+ messages in thread
From: Matt Porter @ 2020-04-15 18:45 UTC (permalink / raw)
  To: Daniel Baluta
  Cc: Mark Rutland, Devicetree List, yibin.gong, Anson Huang,
	Daniel Baluta, Sascha Hauer, Linux Kernel Mailing List,
	Rob Herring, Leonard Crestez, Shawn Guo, Linux ARM Kernel List

On Wed, Apr 15, 2020 at 09:04:43PM +0300, Daniel Baluta wrote:
> On Tue, Mar 31, 2020 at 11:36 PM Matt Porter <mporter@konsulko.com> wrote:
> >
> > The peripheral type specified in the dma phandle for each SAI node
> > is incorrect. Change it to specify the SAI peripheral.
> >
> > Signed-off-by: Matt Porter <mporter@konsulko.com>
> 
> Hi Matt,
> 
> Why do you think this is incorrect?  AFAIK script number 2 works fine
> for SAI. Can you add
> more details on what bug are you encountering?
> 
> Adding Robin the owner of SDMA.

Hi Daniel,

Thanks for the response. I was experiencing timeouts that were traced
back to dma incompletions. Changing the script at the time fixed that
issue. Now, given your response I went back and checked this again and
verified that script 2 does work for me now. I did change firmware to
the latest v4.4 from something quite old so now I'm suspecting I had
bad firmware loaded up. Does that sound plausible? In any case, I can
confirm this is not needed.

-Matt

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* RE: [PATCH] arm64: dts: imx8mm: fix dma peripheral type for SAI nodes
  2020-04-15 18:45     ` Matt Porter
@ 2020-04-20  7:21       ` Robin Gong
  -1 siblings, 0 replies; 8+ messages in thread
From: Robin Gong @ 2020-04-20  7:21 UTC (permalink / raw)
  To: Matt Porter, Daniel Baluta
  Cc: Shawn Guo, Sascha Hauer, Rob Herring, Mark Rutland, Anson Huang,
	Leonard Crestez, Daniel Baluta, Devicetree List,
	Linux ARM Kernel List, Linux Kernel Mailing List

On 2020/04/16 Matt Porter <mporter@konsulko.com> wrote:d
> On Wed, Apr 15, 2020 at 09:04:43PM +0300, Daniel Baluta wrote:
> > On Tue, Mar 31, 2020 at 11:36 PM Matt Porter <mporter@konsulko.com>
> wrote:
> > >
> > > The peripheral type specified in the dma phandle for each SAI node
> > > is incorrect. Change it to specify the SAI peripheral.
> > >
> > > Signed-off-by: Matt Porter <mporter@konsulko.com>
> >
> > Hi Matt,
> >
> > Why do you think this is incorrect?  AFAIK script number 2 works fine
> > for SAI. Can you add more details on what bug are you encountering?
> >
> > Adding Robin the owner of SDMA.
> 
> Hi Daniel,
> 
> Thanks for the response. I was experiencing timeouts that were traced back to
> dma incompletions. Changing the script at the time fixed that issue. Now, given
> your response I went back and checked this again and verified that script 2
> does work for me now. I did change firmware to the latest v4.4 from something
> quite old so now I'm suspecting I had bad firmware loaded up. Does that sound
> plausible? In any case, I can confirm this is not needed.
No, that's not related with firmware version since both scripts are all ROM scripts instead of RAM scripts which's in sdma firmware.

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

* RE: [PATCH] arm64: dts: imx8mm: fix dma peripheral type for SAI nodes
@ 2020-04-20  7:21       ` Robin Gong
  0 siblings, 0 replies; 8+ messages in thread
From: Robin Gong @ 2020-04-20  7:21 UTC (permalink / raw)
  To: Matt Porter, Daniel Baluta
  Cc: Mark Rutland, Devicetree List, Anson Huang, Daniel Baluta,
	Sascha Hauer, Linux Kernel Mailing List, Rob Herring,
	Leonard Crestez, Shawn Guo, Linux ARM Kernel List

On 2020/04/16 Matt Porter <mporter@konsulko.com> wrote:d
> On Wed, Apr 15, 2020 at 09:04:43PM +0300, Daniel Baluta wrote:
> > On Tue, Mar 31, 2020 at 11:36 PM Matt Porter <mporter@konsulko.com>
> wrote:
> > >
> > > The peripheral type specified in the dma phandle for each SAI node
> > > is incorrect. Change it to specify the SAI peripheral.
> > >
> > > Signed-off-by: Matt Porter <mporter@konsulko.com>
> >
> > Hi Matt,
> >
> > Why do you think this is incorrect?  AFAIK script number 2 works fine
> > for SAI. Can you add more details on what bug are you encountering?
> >
> > Adding Robin the owner of SDMA.
> 
> Hi Daniel,
> 
> Thanks for the response. I was experiencing timeouts that were traced back to
> dma incompletions. Changing the script at the time fixed that issue. Now, given
> your response I went back and checked this again and verified that script 2
> does work for me now. I did change firmware to the latest v4.4 from something
> quite old so now I'm suspecting I had bad firmware loaded up. Does that sound
> plausible? In any case, I can confirm this is not needed.
No, that's not related with firmware version since both scripts are all ROM scripts instead of RAM scripts which's in sdma firmware.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2020-04-20  7:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-31 20:35 [PATCH] arm64: dts: imx8mm: fix dma peripheral type for SAI nodes Matt Porter
2020-03-31 20:35 ` Matt Porter
2020-04-15 18:04 ` Daniel Baluta
2020-04-15 18:04   ` Daniel Baluta
2020-04-15 18:45   ` Matt Porter
2020-04-15 18:45     ` Matt Porter
2020-04-20  7:21     ` Robin Gong
2020-04-20  7:21       ` Robin Gong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.