Message ID | 1617809456-17693-1-git-send-email-yibin.gong@nxp.com (mailing list archive) |
---|---|
Headers | show |
Series | add ecspi ERR009165 for i.mx6/7 soc family | expand |
Hi Robin, On Wed, Apr 7, 2021 at 4:15 AM Robin Gong <yibin.gong@nxp.com> wrote: > > There is ecspi ERR009165 on i.mx6/7 soc family, which cause FIFO > transfer to be send twice in DMA mode. Please get more information from: > https://www.nxp.com/docs/en/errata/IMX6DQCE.pdf. The workaround is adding > new sdma ram script which works in XCH mode as PIO inside sdma instead > of SMC mode, meanwhile, 'TX_THRESHOLD' should be 0. The issue should be > exist on all legacy i.mx6/7 soc family before i.mx6ul. > NXP fix this design issue from i.mx6ul, so newer chips including i.mx6ul/ > 6ull/6sll do not need this workaroud anymore. All other i.mx6/7/8 chips > still need this workaroud. This patch set add new 'fsl,imx6ul-ecspi' > for ecspi driver and 'ecspi_fixed' in sdma driver to choose if need errata > or not. > The first two reverted patches should be the same issue, though, it > seems 'fixed' by changing to other shp script. Hope Sean or Sascha could > have the chance to test this patch set if could fix their issues. > Besides, enable sdma support for i.mx8mm/8mq and fix ecspi1 not work > on i.mx8mm because the event id is zero. > > PS: > Please get sdma firmware from below linux-firmware and copy it to your > local rootfs /lib/firmware/imx/sdma. > https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/imx/sdma Without this series, SPI DMA does not work on i.MX8MM: [ 41.315984] spi_master spi1: I/O Error in DMA RX I applied your series and SPI DMA works now: Reviewed-by: Fabio Estevam <festevam@gmail.com> Thanks
On 06/11/21 21:51 Fabio Estevam <festevam@gmail.com> wrote: > Hi Robin, > > On Wed, Apr 7, 2021 at 4:15 AM Robin Gong <yibin.gong@nxp.com> wrote: > > > > There is ecspi ERR009165 on i.mx6/7 soc family, which cause FIFO > > transfer to be send twice in DMA mode. Please get more information from: > > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww. > > > nxp.com%2Fdocs%2Fen%2Ferrata%2FIMX6DQCE.pdf&data=04%7C01%7 > Cyibin.g > > > ong%40nxp.com%7Cab59d4a2e95a4351e48708d92cdffc09%7C686ea1d3bc2 > b4c6fa92 > > > cd99c5c301635%7C0%7C1%7C637590162781662129%7CUnknown%7CTWF > pbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVC > I6Mn0%3D%7C1000&sdata=DIbrrAYvpoJ4lKrkDJYvyoixR9DcMCgVDwuW > gI5fuVw%3D&reserved=0. The workaround is adding new sdma ram > script which works in XCH mode as PIO inside sdma instead of SMC mode, > meanwhile, 'TX_THRESHOLD' should be 0. The issue should be exist on all > legacy i.mx6/7 soc family before i.mx6ul. > > NXP fix this design issue from i.mx6ul, so newer chips including > > i.mx6ul/ 6ull/6sll do not need this workaroud anymore. All other > > i.mx6/7/8 chips still need this workaroud. This patch set add new > 'fsl,imx6ul-ecspi' > > for ecspi driver and 'ecspi_fixed' in sdma driver to choose if need > > errata or not. > > The first two reverted patches should be the same issue, though, it > > seems 'fixed' by changing to other shp script. Hope Sean or Sascha > > could have the chance to test this patch set if could fix their issues. > > Besides, enable sdma support for i.mx8mm/8mq and fix ecspi1 not work > > on i.mx8mm because the event id is zero. > > > > PS: > > Please get sdma firmware from below linux-firmware and copy it to > > your local rootfs /lib/firmware/imx/sdma. > > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit. > > > kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ffirmware%2Flinux-fir > mw > > > are.git%2Ftree%2Fimx%2Fsdma&data=04%7C01%7Cyibin.gong%40nxp.c > om%7C > > > ab59d4a2e95a4351e48708d92cdffc09%7C686ea1d3bc2b4c6fa92cd99c5c301 > 635%7C > > > 0%7C1%7C637590162781662129%7CUnknown%7CTWFpbGZsb3d8eyJWIjoi > MC4wLjAwMDA > > > iLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=uL > %2F > > > 6w%2F7JF76dqTfKYk4BT%2F5flWr0d3U2O86ABSq2UhI%3D&reserved=0 > > Without this series, SPI DMA does not work on i.MX8MM: > > [ 41.315984] spi_master spi1: I/O Error in DMA RX > > I applied your series and SPI DMA works now: > > Reviewed-by: Fabio Estevam <festevam@gmail.com> Thanks Fabio. Hello Vinod, Mark, Is my patch set good enough to merge? I remember someone else are requesting it from last year like Fabio.
Hi Robin, On Wed, Apr 7, 2021 at 4:15 AM Robin Gong <yibin.gong@nxp.com> wrote: > > There is ecspi ERR009165 on i.mx6/7 soc family, which cause FIFO > transfer to be send twice in DMA mode. Please get more information from: > https://www.nxp.com/docs/en/errata/IMX6DQCE.pdf. The workaround is adding > new sdma ram script which works in XCH mode as PIO inside sdma instead > of SMC mode, meanwhile, 'TX_THRESHOLD' should be 0. The issue should be Could you please confirm whether the sdma-imx7d.bin firmware available at https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/log/imx/sdma/sdma-imx7d.bin contains the "new sdma ram script which works in XCH mode as PIO inside sdma instead of SMC mode" fix? Thanks, Fabio Estevam
On 06/15/21 10:13 Fabio Estevam <festevam@gmail.com> wrote: > Hi Robin, > > On Wed, Apr 7, 2021 at 4:15 AM Robin Gong <yibin.gong@nxp.com> wrote: > > > > There is ecspi ERR009165 on i.mx6/7 soc family, which cause FIFO > > transfer to be send twice in DMA mode. Please get more information from: > > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww. > > > nxp.com%2Fdocs%2Fen%2Ferrata%2FIMX6DQCE.pdf&data=04%7C01%7 > Cyibin.g > > > ong%40nxp.com%7C3c61a5cfd0574c1bc4eb08d92fa31257%7C686ea1d3bc2 > b4c6fa92 > > > cd99c5c301635%7C0%7C1%7C637593199700307681%7CUnknown%7CTWF > pbGZsb3d8eyJ > > > WIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7 > C1000 > > > &sdata=g2%2FwpDG22czIhj7ELil2kiiGPG0d74Ac7D8H3g0YtJc%3D&r > eserv > > ed=0. The workaround is adding new sdma ram script which works in XCH > > mode as PIO inside sdma instead of SMC mode, meanwhile, 'TX_THRESHOLD' > > should be 0. The issue should be > > Could you please confirm whether the sdma-imx7d.bin firmware available at > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kern > el.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ffirmware%2Flinux-firmwa > re.git%2Flog%2Fimx%2Fsdma%2Fsdma-imx7d.bin&data=04%7C01%7Cyi > bin.gong%40nxp.com%7C3c61a5cfd0574c1bc4eb08d92fa31257%7C686ea1d > 3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C637593199700307681%7CUnkn > own%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1 > haWwiLCJXVCI6Mn0%3D%7C1000&sdata=6UDEjl3ehC49af38OI%2FQhE > mbeLYgQSJB91Kriihw1Jk%3D&reserved=0 > > contains the "new sdma ram script which works in XCH mode as PIO inside > sdma instead of SMC mode" fix? Yes, it contains.
On 15-06-21, 01:55, Robin Gong wrote: > On 06/11/21 21:51 Fabio Estevam <festevam@gmail.com> wrote: > > Without this series, SPI DMA does not work on i.MX8MM: > > > > [ 41.315984] spi_master spi1: I/O Error in DMA RX > > > > I applied your series and SPI DMA works now: > > > > Reviewed-by: Fabio Estevam <festevam@gmail.com> > Thanks Fabio. > Hello Vinod, Mark, > Is my patch set good enough to merge? I remember someone else are > requesting it from last year like Fabio. I have acked the last dmaengine patch, is there any else required from me? Which tree will be this merged thru?
On 15/06/21 14:08 Vinod Koul <vkoul@kernel.org> wrote: > On 15-06-21, 01:55, Robin Gong wrote: > > On 06/11/21 21:51 Fabio Estevam <festevam@gmail.com> wrote: > > > > Without this series, SPI DMA does not work on i.MX8MM: > > > > > > [ 41.315984] spi_master spi1: I/O Error in DMA RX > > > > > > I applied your series and SPI DMA works now: > > > > > > Reviewed-by: Fabio Estevam <festevam@gmail.com> > > Thanks Fabio. > > Hello Vinod, Mark, > > Is my patch set good enough to merge? I remember someone else are > > requesting it from last year like Fabio. > > I have acked the last dmaengine patch, is there any else required from me? > Which tree will be this merged thru? Thanks Vinod, mainline is enough I think.
On 15-06-21, 06:36, Robin Gong wrote: > On 15/06/21 14:08 Vinod Koul <vkoul@kernel.org> wrote: > > On 15-06-21, 01:55, Robin Gong wrote: > > > On 06/11/21 21:51 Fabio Estevam <festevam@gmail.com> wrote: > > > > > > Without this series, SPI DMA does not work on i.MX8MM: > > > > > > > > [ 41.315984] spi_master spi1: I/O Error in DMA RX > > > > > > > > I applied your series and SPI DMA works now: > > > > > > > > Reviewed-by: Fabio Estevam <festevam@gmail.com> > > > Thanks Fabio. > > > Hello Vinod, Mark, > > > Is my patch set good enough to merge? I remember someone else are > > > requesting it from last year like Fabio. > > > > I have acked the last dmaengine patch, is there any else required from me? > > Which tree will be this merged thru? > Thanks Vinod, mainline is enough I think. I meant which subsystem tree will this go thru :)
On 15/06/21 20:08 Vinod Koul <vkoul@kernel.org> wrote: > On 15-06-21, 06:36, Robin Gong wrote: > > On 15/06/21 14:08 Vinod Koul <vkoul@kernel.org> wrote: > > > On 15-06-21, 01:55, Robin Gong wrote: > > > > On 06/11/21 21:51 Fabio Estevam <festevam@gmail.com> wrote: > > > > > > > > Without this series, SPI DMA does not work on i.MX8MM: > > > > > > > > > > [ 41.315984] spi_master spi1: I/O Error in DMA RX > > > > > > > > > > I applied your series and SPI DMA works now: > > > > > > > > > > Reviewed-by: Fabio Estevam <festevam@gmail.com> > > > > Thanks Fabio. > > > > Hello Vinod, Mark, > > > > Is my patch set good enough to merge? I remember someone else are > > > > requesting it from last year like Fabio. > > > > > > I have acked the last dmaengine patch, is there any else required from me? > > > Which tree will be this merged thru? > > Thanks Vinod, mainline is enough I think. > > I meant which subsystem tree will this go thru :) I thought the patches with 'spi' tag could be merged into spi tree while 'dmaengine' merged into dmaengine tree, the rest of dts patch merged into i.mx branch. But from HW errata view, maybe merging all into i.mx branch is a better way?
On 15-06-21, 14:10, Robin Gong wrote: > On 15/06/21 20:08 Vinod Koul <vkoul@kernel.org> wrote: > > On 15-06-21, 06:36, Robin Gong wrote: > > > On 15/06/21 14:08 Vinod Koul <vkoul@kernel.org> wrote: > > > > On 15-06-21, 01:55, Robin Gong wrote: > > > > > On 06/11/21 21:51 Fabio Estevam <festevam@gmail.com> wrote: > > > > > > > > > > Without this series, SPI DMA does not work on i.MX8MM: > > > > > > > > > > > > [ 41.315984] spi_master spi1: I/O Error in DMA RX > > > > > > > > > > > > I applied your series and SPI DMA works now: > > > > > > > > > > > > Reviewed-by: Fabio Estevam <festevam@gmail.com> > > > > > Thanks Fabio. > > > > > Hello Vinod, Mark, > > > > > Is my patch set good enough to merge? I remember someone else are > > > > > requesting it from last year like Fabio. > > > > > > > > I have acked the last dmaengine patch, is there any else required from me? > > > > Which tree will be this merged thru? > > > Thanks Vinod, mainline is enough I think. > > > > I meant which subsystem tree will this go thru :) > I thought the patches with 'spi' tag could be merged into spi tree while > 'dmaengine' merged into dmaengine tree, the rest of dts patch merged > into i.mx branch. But from HW errata view, maybe merging all into i.mx > branch is a better way? Are there any dependecies between patches? If not all can merge thru respective subsystem. You already have the ack, so I dont mind if you pick thru imx tree
On 16/06/21 18:16 Vinod Koul <vkoul@kernel.org> wrote: > On 15-06-21, 14:10, Robin Gong wrote: > > On 15/06/21 20:08 Vinod Koul <vkoul@kernel.org> wrote: > > I thought the patches with 'spi' tag could be merged into spi tree > > while 'dmaengine' merged into dmaengine tree, the rest of dts patch > > merged into i.mx branch. But from HW errata view, maybe merging all > > into i.mx branch is a better way? > > Are there any dependecies between patches? If not all can merge thru > respective subsystem. You already have the ack, so I dont mind if you pick thru > imx tree Yes, this errata need both spi/dma work together, thanks Vinod. Hi Shawn, Do you have any comment for v14? If not, could it be merged into imx tree including spi/dmaengine?