You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SPI: Errno 110 (Connection timed out) with transfer > 64 bytes on Pi 5 #5696
Same here - we're not getting an interrupt at the end of the RX DMA. This is a regression, probably with the DMA code, probably with one of the kernel updates.
The transfer was timing out because the DMA stalls when the FIFO level falls below the programmed threshold. A hacky patch forcing the threshold to 1 got dropped somewhere along the way. #5699 is a slightly less hacky patch that defers the lowering of the threshold until the TX transfer completes (if there is one).
If you wait about an hour for the auto-builds/checks to complete, sudo rpi-update pulls/5699 will install a trial kernel with the patch.
Interestingly spidev has a very light touch on gpio, not marking them as claimed so I can still grab one of the ostensibly SPI pins to use as data/command. I wonder how long that'll last 😬
Activity
pelwell commentedon Nov 6, 2023
Same here - we're not getting an interrupt at the end of the RX DMA. This is a regression, probably with the DMA code, probably with one of the kernel updates.
spi: dw-dma: Get the last DMA scoop out of the FIFO
pelwell commentedon Nov 7, 2023
The transfer was timing out because the DMA stalls when the FIFO level falls below the programmed threshold. A hacky patch forcing the threshold to 1 got dropped somewhere along the way. #5699 is a slightly less hacky patch that defers the lowering of the threshold until the TX transfer completes (if there is one).
If you wait about an hour for the auto-builds/checks to complete,
sudo rpi-update pulls/5699will install a trial kernel with the patch.pelwell commentedon Nov 7, 2023
The GitHub elves must have had more coffee today - the builds are complete.
Gadgetoid commentedon Nov 7, 2023
Thank you. Updated and confirmed fixed.
Interestingly spidev has a very light touch on gpio, not marking them as claimed so I can still grab one of the ostensibly SPI pins to use as data/command. I wonder how long that'll last 😬
spi: dw-dma: Get the last DMA scoop out of the FIFO
pelwell commentedon Nov 7, 2023
Thanks for the confirmation - the patch is now merged.
spi: dw-dma: Get the last DMA scoop out of the FIFO
spi: dw-dma: Get the last DMA scoop out of the FIFO
spi: dw-dma: Get the last DMA scoop out of the FIFO
spi: dw-dma: Get the last DMA scoop out of the FIFO
spi: dw-dma: Get the last DMA scoop out of the FIFO
spi: dw-dma: Get the last DMA scoop out of the FIFO
86 remaining items
spi: dw-dma: Get the last DMA scoop out of the FIFO
spi: dw-dma: Get the last DMA scoop out of the FIFO
spi: dw-dma: Get the last DMA scoop out of the FIFO
spi: dw-dma: Get the last DMA scoop out of the FIFO
spi: dw-dma: Get the last DMA scoop out of the FIFO
spi: dw-dma: Get the last DMA scoop out of the FIFO
spi: dw-dma: Get the last DMA scoop out of the FIFO
spi: dw-dma: Get the last DMA scoop out of the FIFO
spi: dw-dma: Get the last DMA scoop out of the FIFO
spi: dw-dma: Get the last DMA scoop out of the FIFO
spi: dw-dma: Get the last DMA scoop out of the FIFO
spi: dw-dma: Get the last DMA scoop out of the FIFO
spi: dw-dma: Get the last DMA scoop out of the FIFO
spi: dw-dma: Get the last DMA scoop out of the FIFO
spi: dw-dma: Get the last DMA scoop out of the FIFO