[BISECTED, REGRESSION] OMAP3 onenand/DMA broken

From: Aaro Koskinen
Date: Fri Jan 03 2020 - 03:17:39 EST


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?

A.