netdev
[Top] [All Lists]

[PATCH] use mmiowb in tg3.c

To: akpm@xxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
Subject: [PATCH] use mmiowb in tg3.c
From: Jesse Barnes <jbarnes@xxxxxxxxxxxx>
Date: Thu, 21 Oct 2004 16:28:06 -0700
Cc: netdev@xxxxxxxxxxx, jgarzik@xxxxxxxxx, davem@xxxxxxxxxxxxx, gnb@xxxxxxx, akepner@xxxxxxx
In-reply-to: <200410211613.19601.jbarnes@engr.sgi.com>
References: <200410211613.19601.jbarnes@engr.sgi.com>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: KMail/1.7
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: Greg Banks <gnb@xxxxxxx>
Signed-off-by: Jesse Barnes <jbarnes@xxxxxxx

Thanks,
Jesse

Attachment: tg3-mmiowb-2.patch
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>