netdev
[Top] [All Lists]

RE: More 2.4.22pre10 ACPI breakage

To: "Jeff Garzik" <jgarzik@xxxxxxxxx>
Subject: RE: More 2.4.22pre10 ACPI breakage
From: "Feldman, Scott" <scott.feldman@xxxxxxxxx>
Date: Wed, 6 Aug 2003 15:34:33 -0700
Cc: "Samuel Flory" <sflory@xxxxxxxxxxxx>, <netdev@xxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
Thread-index: AcNbxpyURp/8RGKwQ4mmXlQY2KiudAAoMH1g
Thread-topic: More 2.4.22pre10 ACPI breakage
> That said... I'm tempted to extend NAPI just a bit, to provide an 
> "always poll" mode.  It seems like all the bug reports I get 
> these days for 8139too are caused by x86 ACPI/APIC/irq routing
troubles 
> completely unrelated to the driver.  Tulip-almost-NAPI in 2.4 has an
> always-poll mode, so I have a convenient excuse :)

NAPI always-poll mode...that would be fun to play with.  JC was getting
his best results for small packets when he modified the dev e100 driver
to stay in polling mode, even if the quota wasn't met.  Basically
running without interrupts.  If there is someway for the the driver to
sample/ack the device for events when interrupts are disabled/unrouted,
then these async events can be handled in the poll routine.  I'm
thinking of events like link-status-change.

Is this what you're thinking: 1) block any place the driver enables
interrupts so interrupts stay disabled, 2) ignore netif_rx_complete so
we stay in polling mode, 3) ignore return code from netdev->poll.

For 1), the driver needs some way to know that we're in always-poll-mode
so enabling interrupts is a nop.

Just thinking out loud - haven't tried any of this.

-scott


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