cvs commit: src/sys/dev/acpica acpi.c

Eric Anderson anderson at centtech.com
Thu Jun 16 11:59:14 GMT 2005


Nate Lawson wrote:
> John Baldwin wrote:
> 
>> On Wednesday 15 June 2005 04:11 pm, Nate Lawson wrote:
>>
>>> Eric Anderson wrote:
>>>
>>>>>>> Ok - I've narrowed it down.  A GENERIC kernel will go into S3 just
>>>>>>> fine on this laptop.  Removing apic from the kernel will break that.
>>>
>>>
>>> It is interesting that the suspend path without the apic support causes
>>> a hang for you.  This should be investigated.  Does it work if you have
>>> apic compiled in but boot with hint.apic.0.disabled="1" ? Any ideas
>>> where to look John?
>>
>>
>> Not for the !APIC case, no.  It would probably be good to get that 
>> working first before trying to work on the APIC case.  Perhaps the 
>> ioapic resume code is using locks when it shouldn't though.  Is it not 
>> safe to grab a spin lock when intr_resume() is called?
> 
> 
> Without apic compiled in (still waiting on his reply to the "compiled in 
> but disabled" case), his system hangs when writing to PM1A, which is an 
> IO port in the ICH that indicates the requested sleep state.  I haven't 
> checked errata for the ICH6 which I think he has.  Perhaps there is a 
> PIC mode erratum for S3.

I replied earlier to this:
Nate Lawson:
 >
 > It is interesting that the suspend path without the apic support 
causes a hang for you.  This should be investigated.  Does it work if 
you have apic compiled in but boot with hint.apic.0.disabled="1" ? Any 
ideas where to look John?

Eric Anderson:
Setting this to 1 does a funny thing.  When I ask the machine to go to 
s3, it acts like it will, the power light dims, the machine clicks like 
it's going into s3, but then immediately the power light comes back on, 
the hard drive spins back up, and the machine starts a normal power up.

So, to reiterate:

With apic support compiled in, and hint.apic.0.disabled="0", the machine 
suspends happily.

With apic support compiled in, and hint.apic.0.disabled="1", the machine 
does the funny thing mentioned above.

Without apic support compiled in, the computer powers off as if it is 
going into S5.

Eric




-- 
------------------------------------------------------------------------
Eric Anderson        Sr. Systems Administrator        Centaur Technology
A lost ounce of gold may be found, a lost moment of time never.
------------------------------------------------------------------------


More information about the freebsd-acpi mailing list