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

From: Peter Ujfalusi
Date: Sat Jan 04 2020 - 02:37:15 EST


Hi Aaro,

On 1/3/20 10:17 AM, Aaro Koskinen wrote:
> 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.
>
> 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?

I certainly tested the memcpy via dmatest in polled and non polled mode..

I can take a look on Tuesday earliest, but sent a patch (untested) which
should fix the issue:
https://lore.kernel.org/lkml/20200104073453.16077-1-peter.ujfalusi@xxxxxx/


>
> A.
>

- Peter

Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki