Re: [BISECTED, REGRESSION] OMAP3 onenand/DMA broken

From: H. Nikolaus Schaller
Date: Fri Jan 03 2020 - 03:47:14 EST


Hi,

> Am 03.01.2020 um 09:17 schrieb Aaro Koskinen <aaro.koskinen@xxxxxx>:
>
> Hi,
>
> When booting v5.4 (or v5.5-rc4) on N900, the console gets flooded with:
>
> [ 8.335754] omap2-onenand 1000000.onenand: timeout waiting for DMA
> [ 8.365753] omap2-onenand 1000000.onenand: timeout waiting for DMA
> [ 8.395751] omap2-onenand 1000000.onenand: timeout waiting for DMA
> [ 8.425750] omap2-onenand 1000000.onenand: timeout waiting for DMA
> [ 8.455749] omap2-onenand 1000000.onenand: timeout waiting for DMA
> [ 8.485748] omap2-onenand 1000000.onenand: timeout waiting for DMA
> [ 8.515777] omap2-onenand 1000000.onenand: timeout waiting for DMA
> [ 8.545776] omap2-onenand 1000000.onenand: timeout waiting for DMA
> [ 8.575775] omap2-onenand 1000000.onenand: timeout waiting for DMA
>
> making the system unusable.

I can confirm that this issue exists but so far we failed to bisect
and make a proper report.

Sometimes the system boots fine and sometimes it fails.

It happens on omap3-gta04a5one.dts only, but not with omap3-gta04a4.dts
(both dm3730 but different NAND).

>
> Bisected to:
>
> 4689d35c765c696bdf0535486a990038b242a26b is the first bad commit
> commit 4689d35c765c696bdf0535486a990038b242a26b
> Author: Peter Ujfalusi <peter.ujfalusi@xxxxxx>
> Date: Tue Jul 16 11:24:59 2019 +0300
>
> dmaengine: ti: omap-dma: Improved memcpy polling support
>
> The commit does not revert cleanly anymore. Any ideas how to fix this?
>
> A.

BR, Nikolaus