Re: 2.4.22 APM problems with IBM Thinkpad's

From: Jamie Lokier (jamie_at_shareable.org)
Date: 08/14/03

  • Next message: kartikey bhatt: "(no subject)"
    Date:	Thu, 14 Aug 2003 22:40:02 +0100
    To: Mikael Pettersson <mikpe@csd.uu.se>
    
    

    Mikael Pettersson wrote:
    > Jamie Lokier writes:
    > > Alan Cox wrote:
    > > > On Mer, 2003-08-13 at 14:13, Mikael Pettersson wrote:
    > > > > With APIC support enabled (SMP or UP_APIC), APM must be constrained:
    > > > > DISPLAY_BLANK off
    > > > > CPU_IDLE off
    > > > > built-in driver, not module
    > > >
    > > > This isnt sufficient because some of the SMM traps off the FN-key
    > > > sequences also crash thinkpads if APIC is enabled. Basically *dont use
    > > > local apic* except on SMP.
    > >
    > > Is it feasible to disable the APIC during BIOS calls,?
    >
    > I don't think so.
    > One problem is that BIOS calls can be very frequent (one every time
    > the kernel calls pm_idle, if CPU_IDLE=y, and one each time one of those
    > battery-monitoring applets feels like polling the battery status).
    >
    > Each time we'd have to go through a full lapic_suspend/lapic_resume
    > cycle, like we do now for PM suspends, and each time the local APIC
    > timer would lose ticks.

    That'll just be another way of losing ticks, then :)

    > And in an UP_IOAPIC system we'd better disable
    > and reenable the I/O-APIC too (or reprogram it to PIC mode, but that's
    > horrible). Not pretty.
    >
    > Personally I'd prefer checks in apm.c that cause it to refuse to do
    > any BIOS calls except at suspend or poweroff.

    I'd prefer that if APM idle or blanking are enabled, the default
    interrupt mode is to not use the APIC.

    Saving power is pretty desirable on a laptop.

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


  • Next message: kartikey bhatt: "(no subject)"

    Relevant Pages

    • Re: [PATCH] ide-disk.c rev 1.13 killed CONFIG_IDEDISK_STROKE
      ... and I think should be replaced by rereading drive->id from a drive. ... I can't spot place when we get info from a BIOS. ... We can deal with HPA before our geometry info is set ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.5-rc3-mm1
      ... Then it freezes with HD light solid on. ... I shall check to see if there is a later BIOS available. ... Acer 1501LCe laptop, Athlon64 3000+, CD-RW/DVD, fireiwre port, no ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: HELP: Cannot get ALSA working on via82xx
      ... Perhaps you can get them from BIOS. ... maybe I don't have MIDI hardware then. ... Time to look into timidity. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: BIOS overwritten during resume (was: Re: Asus L5D resume on battery power)
      ... Can you verify that your BIOS is properly ... Namely, the BIOS-e820 memory map ... > and the pages in the first two reserved areas are properly marked as reserved. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: /proc/ide/hd?/settings obsolete in 2.6.
      ... > Bartlomiej Zolnierkiewicz wrote: ... >> is not needed for IDE layer to function properly. ... > linux provides to programs be the same as what the bios thinks. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)