This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM4372: SPI DMA causes kernel hang

Part Number: AM4372
Other Parts Discussed in Thread: AM4376

Tool/software: Linux

Hi,

I'm using mainline 4.12 kernel and in bootlog I get an following warning:

spi spi1.0: not using DMA for McSPI (-19) 

Based on this thread e2e.ti.com/.../701141 I've tried to add to my &spi1 node dma channels but IMO 16 17 are used for spi0 not spi1. I've tried to add both variants (with 16,17 and 18, 19): 


dmas = <&edma 18 0
&edma 19 0>;

dma-names = "tx0", "rx0";

but in both cases warning is gone but when send 160byte buffer kernel hang. I find out that also when dma channel is missing then when sending 160bytes payload I get random garbage only (I have pullup on MISO so 0xFF should be read). Any ideas? Thanks. Marek

I'm trying to verify spi1 port on am4376 processor. I'm using spidev_test program which works fine when payload is less then < 160 bytes. When payload is with 160 bytes then I get hang