Subject: Re: CVS commit: src/sys/arch/i386/acpi
To: Andrew Doran <ad@netbsd.org>
From: Jared D. McNeill <jmcneill@invisible.ca>
List: source-changes
Date: 08/02/2007 23:55:35
Andrew Doran wrote:
> On Wed, Aug 01, 2007 at 10:41:59PM +0000, Jared D. McNeill wrote:
>
>> Modified Files:
>> src/sys/arch/i386/acpi: acpi_wakeup.c
>>
>> Log Message:
>> Explicitly reinitialize lapic on resume; gets the clock ticking on the
>> Lenovo T60 and probably many others.
>
> I wonder if that's enough for dual core laptops. Do we need to reinitialize
> the lapic on the other core?
I think you're right. I can almost fully bring back this VAIO (except
for the network and wireless device drivers) from S3 on a UP kernel by
doing the following at resume:
i8259_reinit();
lapic_enable();
lapic_initclocks();
ioapic_enable();
lapic_set_lvt();
What else should I do to ensure that things are configured properly in
the MULTIPROCESSOR case?
Cheers,
Jared