linux/drivers/net/ethernet/xilinx
Peter Crosthwaite 38e96b35cd net: axienet: Handle 0 packet receive gracefully
The AXI-DMA rx-delay interrupt can sometimes be triggered
when there are 0 outstanding packets received. This is due
to the fact that the receive function will greedily consume
as many packets as possible on interrupt. So if two packets
(with a very particular timing) arrive in succession they
will each cause the rx-delay interrupt, but the first interrupt
will consume both packets.
This means the second interrupt is a 0 packet receive.

This is mostly OK, except that the tail pointer register is
updated unconditionally on receive. Currently the tail pointer
is always set to the current bd-ring descriptor under
the assumption that the hardware has moved onto the next
descriptor. What this means for length 0 recv is the current
descriptor that the hardware is potentially yet to use will
be marked as the tail. This causes the hardware to think
its run out of descriptors deadlocking the whole rx path.

Fixed by updating the tail pointer to the most recent
successfully consumed descriptor.

Reported-by: Wendy Liang <wendy.liang@xilinx.com>
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Tested-by: Jason Wu <huanyu@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-05-05 19:33:58 -04:00
..
Kconfig net: emaclite: Enable emaclite for Xilinx Arm Zynq platform 2013-05-30 17:08:43 -07:00
ll_temac_main.c net: xilinx: constify of_device_id array 2015-03-17 15:00:22 -04:00
ll_temac_mdio.c
ll_temac.h
Makefile
xilinx_axienet_main.c net: axienet: Handle 0 packet receive gracefully 2015-05-05 19:33:58 -04:00
xilinx_axienet_mdio.c xilinx: Fix compiler warning 2014-06-22 17:14:56 -07:00
xilinx_axienet.h net: xilinx: Remove unnecessary temac_property in the driver 2014-12-26 17:06:20 -05:00
xilinx_emaclite.c ethernet: Use bool function returns of true/false instead of 1/0 2015-03-31 14:09:49 -04:00