• Andrew Morton's avatar
    [TG3]: Use mmiowb in tg3.c · ff53177b
    Andrew Morton authored
    From: Jesse Barnes <jbarnes@engr.sgi.com>
    
    This patch originally from Greg Banks.  Some parts of the tg3 driver depend
    on PIO writes arriving in order.  This patch ensures that in two key places
    using the new mmiowb macro.  This not only prevents bugs (the queues can be
    corrupted), but is much faster than ensuring ordering using PIO reads
    (which involve a few round trips to the target bus on some platforms).
    
    Arthur has another patch that uses mmiowb in tg3 that he posted earlier as
    well.
    Signed-off-by: default avatarGreg Banks <gnb@sgi.com>
    Signed-off-by: default avatarJesse Barnes <jbarnes@sgi.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    ff53177b
tg3.c 250 KB