Re: 2.4.x APM interferes with FA311TX/natsemi.o

From: Paul Komarek (komarek@andrew.cmu.edu)
Date: Fri May 04 2001 - 23:49:33 EST


On Tue, 1 May 2001, Alan Cox wrote:

> > When the call
> > apm_bios_call_simple(APM_FUNC_SET_STATE, 0x100, APM_STATE_READY, &eax)
> > is made, the PMEEN (PME enable) bit in the CCSR register on my FA311
> > mysteriously changes from 0 to 1, causing the card to stop processing
>
> The Linux driver set the power management of the card off. The BIOS then
> rudely fiddled with it. If its not a laptop seriously consider just turning
> off APM support. The Linux idle loop halts will do a fair job of power
> saving anyway

Thanks to everyone that has helped me with this problem (Netgear FA311
dies when apm.c's set_power_state() is called to unblank screen, for
instance when an X server exits or the monitor is awakened from
APM-induced sleep). Since everyone has suggested work arounds, I'm going
to assume it isn't worthwhile digging any deeper for causes.

I've sent a two-line patch for the natsemi.c driver to the mainainers,
which simply re-disables power management before checking if there are any
packets to process in the receive buffer. Turning off the APM screen
blanking option in the kernel also works. My patch isn't in the 2.4.4
kernel -- perhaps the maintainers have a better idea than my hack, or are
hoping to find one =-) -- but if anybody wants this patch, my email
address should be valid at least until the 2.6.x kernels.

-Paul Komarek
komarek@andrew.cmu.edu

-
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/



This archive was generated by hypermail 2b29 : Mon May 07 2001 - 21:00:21 EST