]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
Spidernet Memory barrier
authorLinas Vepstas <linas@austin.ibm.com>
Wed, 13 Dec 2006 21:22:04 +0000 (15:22 -0600)
committerJeff Garzik <jeff@garzik.org>
Mon, 5 Feb 2007 21:58:45 +0000 (16:58 -0500)
Add memory barrier to make sure that the rest of the
RX descriptor state is flushed to memory before we tell
the hardware that its ready to go.

Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Cc: James K Lewis <jklewis@us.ibm.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/spider_net.c

index 67bbd7ba406d19cf3507a4434848f9ba3ec55632..3bf4b9b6662a838e13447ca923e3946dbc271cf3 100644 (file)
@@ -419,6 +419,7 @@ spider_net_prepare_rx_descr(struct spider_net_card *card,
                card->spider_stats.rx_iommu_map_error++;
                descr->dmac_cmd_status = SPIDER_NET_DESCR_NOT_IN_USE;
        } else {
+               wmb();
                descr->dmac_cmd_status = SPIDER_NET_DESCR_CARDOWNED |
                                         SPIDER_NET_DMAC_NOINTR_COMPLETE;
        }