Re: Issues with i.MX SPI DMA transfers

2019-04-18 Thread Marc Gonzalez
[ Trimming recipients list ] On 03/04/2019 17:51, Igor Plyatov wrote: > 2) I want to improve description and replace magic numbers by constants > in Device Tree for SDMA. I mean strings like "dmas = < 11 7 1>, > < 12 7 2>;"? > > So, finally Device Tree will have strings like > > dmas = <

Re: Issues with i.MX SPI DMA transfers

2019-04-18 Thread Robin Gong
On 2019-04-18 at 06:30 +, Igor Plyatov wrote: > WARNING: This email was created outside of NXP. DO NOT CLICK links or > attachments unless you recognize the sender and know the content is > safe. > > > > Dear Robin, > > > > > Hi Igor, > >   Did you meet any issue with my latest patch?

Re: Issues with i.MX SPI DMA transfers

2019-04-18 Thread Igor Plyatov
Dear Robin, Hi Igor, Did you meet any issue with my latest patch? sorry, but unfortunately I have no time to test it. I have switched to PIO mode and continue other development. Maybe later I will find time to test DMA mode, but not sure when. Thank you for support! -- Igor

RE: Issues with i.MX SPI DMA transfers

2019-04-17 Thread Robin Gong
Hi Igor, Did you meet any issue with my latest patch? > -Original Message- > From: Robin Gong > Sent: April 9, 2019 11:26> > Hi Igor, > Please have a try with the attached patches, and revert 25aaa75df1e6, > ad0d92d7ba6a , dd4b487b32a3, df07101e1c4a before apply. Besides

RE: Issues with i.MX SPI DMA transfers

2019-04-08 Thread Robin Gong
el.org; Vinod Koul ; Dan Williams > ; Andy Duan ; Han Xu > ; Clark Wang > Subject: RE: Issues with i.MX SPI DMA transfers > > > -Original Message- > > From: Igor Plyatov > > Sent: 2019年4月2日 15:20 > > To: Robin Gong ; Uwe Kleine-König > > >

RE: Issues with i.MX SPI DMA transfers

2019-04-08 Thread Robin Gong
; > Sascha Hauer ; Shawn Guo > ; Mark Brown ; > dmaeng...@vger.kernel.org; Vinod Koul ; Dan Williams > ; Andy Duan ; Han Xu > ; Clark Wang > Subject: Re: Issues with i.MX SPI DMA transfers > > Dear Robin, > > > > Please

Re: Issues with i.MX SPI DMA transfers

2019-04-03 Thread Igor Plyatov
Dear Robin, I have made additional tests on another exemplar of board with absolutely same hardware. The spidev_test failed on eCSPI2 and eCSPI5 interfaces, but works successfully on eCSPI1 interface. So, it looks, issue does not correspond to fixed interface number. This is generic issue

Re: Issues with i.MX SPI DMA transfers

2019-04-03 Thread Igor Plyatov
Dear Robin, Please apply the attached patch which is based on linux-next commit 05d08e2995cbe6efdb993482ee0d38a77040861a. Please notice it has already contained two sdma patches revert - "ad0d92d7ba6a" and "25aaa75df1e6" 1) Yours source code is same as mine with exception of SDMA

RE: Issues with i.MX SPI DMA transfers

2019-04-03 Thread Robin Gong
; > Sascha Hauer ; Shawn Guo > ; Mark Brown ; > dmaeng...@vger.kernel.org; Vinod Koul ; Dan Williams > ; Andy Duan ; Han Xu > ; Clark Wang > Subject: Re: Issues with i.MX SPI DMA transfers > > Dear Robin, > > >> now I have reverted patch ad0d92d7ba6a. > &

Re: Issues with i.MX SPI DMA transfers

2019-04-02 Thread Igor Plyatov
Dear Robin, now I have reverted patch ad0d92d7ba6a. Patches 0001-dma-engine-imx-sdma-add-mcu_2_ecspi-script.patch and 0002-spi-spi-imx-fix-ERR009165.patch are applied. Kernel log show messages [   29.202639] imx-sdma 20ec000.sdma: loaded firmware 3.3 [   29.238595] spi_imx 2008000.spi:

RE: Issues with i.MX SPI DMA transfers

2019-04-02 Thread Robin Gong
; > Sascha Hauer ; Shawn Guo > ; Mark Brown ; > dmaeng...@vger.kernel.org; Vinod Koul ; Dan Williams > ; Andy Duan ; Han Xu > ; Clark Wang > Subject: Re: Issues with i.MX SPI DMA transfers > > Dear Robin Gong, > > > >> Sorry...below another sdma patch

Re: Issues with i.MX SPI DMA transfers

2019-04-02 Thread Igor Plyatov
Dear Robin Gong, Sorry...below another sdma patch(ad0d92d7ba6a) need to be reverted, because spi driver may dynamically change burst length. now I have reverted patch ad0d92d7ba6a. Patches 0001-dma-engine-imx-sdma-add-mcu_2_ecspi-script.patch and 0002-spi-spi-imx-fix-ERR009165.patch are

RE: Issues with i.MX SPI DMA transfers

2019-04-01 Thread Robin Gong
el Team ; > Sascha Hauer ; Shawn Guo > ; Mark Brown ; > dmaeng...@vger.kernel.org; Vinod Koul ; Dan Williams > ; Andy Duan ; Han Xu > ; Clark Wang > Subject: Re: Issues with i.MX SPI DMA transfers > > Dear Robin, > > I have applied patches > 0001-dma-engine-imx-

Re: Issues with i.MX SPI DMA transfers

2019-03-29 Thread Igor Plyatov
Dear Uwe, On Thu, Mar 28, 2019 at 10:04:21AM +0300, Igor Plyatov wrote: Dear Uwe, Hello Igor, On Wed, Mar 27, 2019 at 08:40:00PM +0300, Igor Plyatov wrote: please, help to resolve two issues with SPI DMA transfers at i.MX6Q platform. First issue is  [ 4465.008003] spi_master spi0: I/O

Re: Issues with i.MX SPI DMA transfers

2019-03-28 Thread Igor Plyatov
...@lists.infradead.org; linux-...@vger.kernel.org; dl-linux-imx ; Fabio Estevam ; Pengutronix Kernel Team ; Sascha Hauer ; Shawn Guo ; Mark Brown ; dmaeng...@vger.kernel.org; Vinod Koul ; Dan Williams ; Andy Duan ; Han Xu ; Robin Gong ; Clark Wang Subject: Re: Issues with i.MX SPI DMA transfers Dear Uwe

RE: Issues with i.MX SPI DMA transfers

2019-03-28 Thread Robin Gong
l ; Dan Williams > ; Andy Duan ; Han Xu > ; Robin Gong ; Clark Wang > > Subject: Re: Issues with i.MX SPI DMA transfers > > Dear Uwe, > > > > Hello Igor, > > > > On Wed, Mar 27, 2019 at 08:40:00PM +0300, Igor Plyatov wrote: > >> please, help to r

Re: Issues with i.MX SPI DMA transfers

2019-03-28 Thread Uwe Kleine-König
On Thu, Mar 28, 2019 at 10:04:21AM +0300, Igor Plyatov wrote: > Dear Uwe, > > > > Hello Igor, > > > > On Wed, Mar 27, 2019 at 08:40:00PM +0300, Igor Plyatov wrote: > > > please, help to resolve two issues with SPI DMA transfers at i.MX6Q > > > platform. > > > > > > First issue is > > >  [

RE: Issues with i.MX SPI DMA transfers

2019-03-28 Thread Robin Gong
Sascha Hauer ; Shawn Guo > ; Mark Brown ; > dmaeng...@vger.kernel.org; Vinod Koul ; Dan Williams > ; Andy Duan ; Han Xu > ; Robin Gong ; Clark Wang > > Subject: Re: Issues with i.MX SPI DMA transfers > > Dear Uwe, > > > > Hello Igor, > > > > On Wed,

Re: Issues with i.MX SPI DMA transfers

2019-03-28 Thread Igor Plyatov
Dear Uwe, Hello Igor, On Wed, Mar 27, 2019 at 08:40:00PM +0300, Igor Plyatov wrote: please, help to resolve two issues with SPI DMA transfers at i.MX6Q platform. First issue is  [ 4465.008003] spi_master spi0: I/O Error in DMA RX Second issue is duplication for one of received bytes.

Re: Issues with i.MX SPI DMA transfers

2019-03-28 Thread Igor Plyatov
Dear developers, I have update about these issues. 12 hours testing show very fast (some seconds) appearance of byte duplication at interface spi4 (alias for ecspi5), while interfaces spi0 (alias for ecspi1) and spi1 (alias for ecspi2) work flawless (at least without any other OS load).

Re: Issues with i.MX SPI DMA transfers

2019-03-28 Thread Uwe Kleine-König
Hello Igor, On Wed, Mar 27, 2019 at 08:40:00PM +0300, Igor Plyatov wrote: > please, help to resolve two issues with SPI DMA transfers at i.MX6Q > platform. > > First issue is >  [ 4465.008003] spi_master spi0: I/O Error in DMA RX > > Second issue is duplication for one of received bytes. > >

RE: Issues with i.MX SPI DMA transfers

2019-03-27 Thread Aisheng Dong
> From: Igor Plyatov [mailto:plya...@gmail.com] > > Dear developers, > > please, help to resolve two issues with SPI DMA transfers at i.MX6Q platform. > > First issue is >  [ 4465.008003] spi_master spi0: I/O Error in DMA RX > > Second issue is duplication for one of received bytes. > Copy