Re: [PATCH] starfire net driver update for 2.4.19pre2

David S. Miller (davem@redhat.com)
Wed, 06 Mar 2002 14:18:09 -0800 (PST)


From: Jeff Garzik <jgarzik@mandrakesoft.com>
Date: Wed, 06 Mar 2002 17:01:45 -0500

> And, in general, are there any other tricks one can do to speed up the PCI
> transactions on non-x86 platforms? I'm still getting occasional overruns
> on sparc64 (card receiving packets faster than it can push them over PCI),
> which is somewhat disturbing..

Dynamically tune your RX and TX DMA burst settings when you notice these
conditions... It is indeed possible to saturate PCI bus bandwidth.

On sparc64 you should set the burst settings to 64-byte read/write
bursts because the PCI chipset is going to disconnect you on 64-byte
boundaries anyways. If the chip is bursting more than this, you
are wasting lots of PCI cycles with the retries done after the
disconnect.

Also make sure to use PCI READ MULTIPLE commands for DMA if the chip
provides such an option, this helps performance on many PCI
controllers to no end.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/