Re: xe(4) MPSAFE patch

From: M. Warner Losh <imp_at_bsdimp.com>
Date: Wed, 04 Jun 2008 01:14:45 -0600 (MDT)
In message: <E1K3lMr-0000fG-UI_at_clue.co.za>
            Ian FREISLICH <ianf_at_clue.co.za> writes:
: John Baldwin wrote:
: > Cool, thanks.  If you are still up for testing, try out 
: > http://www.FreeBSD.org/~jhb/patches/xe_intr.patch
: 
: I'm always up for testing :)
: 
: > It uses the bus_read API instead of bus_space and splits the interrupt
: > handler up into sub-functions for tx/rx/MAC events.
: 
: And this, unsurprisingly, also works. :)
: 
: This card however must be a pile of rubbish.  The interrupt usage
: suggests it's just PIO and uses the CPU to bit-bang the line to
: generate the ethernet timing and signals.  73% interrupt on a
: PIII-500 to move data at 100Mbit/s.

PC Card devices generally were PIO only.  DMA was technically in the
standard, but in reality it was never implemented.  The lack of a
standardized DMA interface in the host controller is mostly to blame,
and FreeBSD doesn't support the few cards that did support DMA.

I don't think it is big-banging the line to generate the ethernet
timing, but there are a number of busy loops in the driver that keep
it from peak efficiency.

Warner
Received on Wed Jun 04 2008 - 05:16:53 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:31 UTC