Skip to content

Commit

Permalink
[tg3] Add missing memory barrier
Browse files Browse the repository at this point in the history
ARM64 has a weaker memory order model than x86.  The missing memory
barrier caused phy initialization notification to be delayed beyond
the link-wait timeout (15 secs).

Signed-off-by: Leendert van Doorn <leendert@paramecium.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
leendert1966 authored and mcb30 committed Jun 13, 2016
1 parent 188789e commit 02d5cff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/drivers/net/tg3/tg3.c
Expand Up @@ -486,6 +486,8 @@ static void tg3_poll(struct net_device *dev)
*/
tp->hw_status->status &= ~SD_STATUS_UPDATED;

mb();

tg3_poll_link(tp);
tg3_tx_complete(dev);
tg3_rx_complete(dev);
Expand Down

0 comments on commit 02d5cff

Please sign in to comment.