]> git.karo-electronics.de Git - karo-tx-linux.git/commit
stmmac: Fix for nfs hang on multiple reboot
authorDeepak Sikri <deepak.sikri@st.com>
Sun, 8 Jul 2012 21:14:45 +0000 (21:14 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 25 Jul 2012 03:11:45 +0000 (04:11 +0100)
commitb5ff5ad1b9299fccc11c801764fa23ca696161cf
treecd0d240eb78524caaf66c3716e250ba200d4a37f
parent91256cf4a1df58edad1147dd619d5bc50a1748dd
stmmac: Fix for nfs hang on multiple reboot

commit 8e83989106562326bfd6aaf92174fe138efd026b upstream.

It was observed that during multiple reboots nfs hangs. The status of
receive descriptors shows that all the descriptors were in control of
CPU, and none were assigned to DMA.
Also the DMA status register confirmed that the Rx buffer is
unavailable.

This patch adds the fix for the same by adding the memory barriers to
ascertain that the all instructions before enabling the Rx or Tx DMA are
completed which involves the proper setting of the ownership bit in DMA
descriptors.

Signed-off-by: Deepak Sikri <deepak.sikri@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c