lkml.org 
[lkml]   [2001]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.4.x APM interferes with FA311TX/natsemi.o
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/

\
 
 \ /
  Last update: 2005-03-22 12:52    [W:0.067 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site