netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] net: axienet: fix DMA Tx error
@ 2022-06-13  3:42 Andy Chiu
  2022-06-13  3:42 ` [PATCH net-next 1/2] net: axienet: make the 64b addresable DMA depends on 64b archectures Andy Chiu
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Andy Chiu @ 2022-06-13  3:42 UTC (permalink / raw)
  To: radhey.shyam.pandey, davem, edumazet, kuba, pabeni, michal.simek,
	netdev
  Cc: linux-arm-kernel, Andy Chiu

We ran into multiple DMA TX errors while writing files over a network
block device running on top of a DMA-connected AXI Ethernet device on
64-bit RISC-V machines. The errors indicated that the DMA had fetched a
null descriptor and we found that the reason for this is that AXI DMA had
unexpectedly processed a partially updated tail descriptor pointer. To
fix it, we suggest that the driver should use one 64-bit write instead
of two 32-bit writes to perform such update if possible. For those
archectures where double-word load/stores are unavailable, e.g. 32-bit
archectures, force a driver probe failure if the driver finds 64-bit
capability on DMA.

Andy Chiu (2):
  net: axienet: make the 64b addresable DMA depends on 64b archectures
  net: axienet: Use iowrite64 to write all 64b descriptor pointers

 drivers/net/ethernet/xilinx/xilinx_axienet.h  | 51 +++++++++++++++++++
 .../net/ethernet/xilinx/xilinx_axienet_main.c | 28 ++--------
 2 files changed, 55 insertions(+), 24 deletions(-)

-- 
2.36.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-06-13 22:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-13  3:42 [PATCH net-next 0/2] net: axienet: fix DMA Tx error Andy Chiu
2022-06-13  3:42 ` [PATCH net-next 1/2] net: axienet: make the 64b addresable DMA depends on 64b archectures Andy Chiu
2022-06-13  8:18   ` Andy Chiu
2022-06-13  3:42 ` [PATCH net-next 2/2] net: axienet: Use iowrite64 to write all 64b descriptor pointers Andy Chiu
2022-06-13  8:18   ` Andy Chiu
2022-06-13 22:54   ` kernel test robot
2022-06-13 11:40 ` [PATCH net-next 0/2] net: axienet: fix DMA Tx error patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).