u-boot/drivers/dma/ti
Vignesh Raghavendra f8461352b8 dma: ti: k3-udma: Fix channel hang on teardown
Setting RX flow error handling will stall the channel until descriptors
are available to move RX data. Setting this bit causes issues when
tearing down ethernet DMA channel at the end of TFTP transfer as
unrelated network packets can cause teardown to stall indefinitely waiting
for driver to queue add more desc leading to channel hang with error
logs:
udma_stop_dev2mem TIMEOUT !
udma_stop_dev2mem: peer not stopped TIMEOUT !
udma_stop_dev2mem TIMEOUT !

Fix this by clearing rx_error_handling similar to how its done for UDMA
as part of udma_alloc_rchan_sci_req()

This fixes occasional TFTP Failures seen when downloading multiple files
one after the other on AM64/AM62 SoCs.

Fixes: 9a92851c33 ("dma: ti: k3-udma: Add BCDMA and PKTDMA support")
Reported-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
2023-03-22 12:51:15 -04:00
..
k3-psil-am62.c dma: ti: Add PSIL data for AM62x DMASS 2022-06-10 13:37:32 -04:00
k3-psil-am64.c dma: ti: k3-psil-am64: Add AM64 PSIL endpoint data 2021-05-12 16:36:38 +05:30
k3-psil-am654.c dma: ti: k3-psil-am654: Drop unused PSIL EP static data 2021-05-12 16:36:38 +05:30
k3-psil-j721e.c dma: ti: Add static PSIL endpoint information 2020-07-13 20:58:34 +05:30
k3-psil-j721s2.c drivers: dma: Add support for J721S2 2022-02-08 09:41:27 -05:00
k3-psil-priv.h dma: ti: Add PSIL data for AM62x DMASS 2022-06-10 13:37:32 -04:00
k3-psil.c arm: mach-k3: Rename SOC_K3_AM6 to SOC_K3_AM654 2022-07-25 13:02:04 -04:00
k3-psil.h dma: ti: k3-psil: Extend PSIL EP data extension for AM64 2021-05-12 16:36:38 +05:30
k3-udma-hwdef.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
k3-udma-u-boot.c dma: ti: k3-udma: Add support for native configuration of chan/flow 2021-06-11 19:18:52 +05:30
k3-udma.c dma: ti: k3-udma: Fix channel hang on teardown 2023-03-22 12:51:15 -04:00
Kconfig Kconfig: Remove all default n/no options 2021-08-31 17:47:49 -04:00
Makefile arm: mach-k3: Rename SOC_K3_AM6 to SOC_K3_AM654 2022-07-25 13:02:04 -04:00