Re: S3 wakeup code

Ole Myren Rohne
2003-07-25T12:25:36Z

Florian Lohoff <flo-BCn6idZOOBwdnm+yROfE0A@public.gmane.org> writes:

> > * Insert lcall $0xffff,$0 or machin_restart in various places in
> > wakeup.S and upwards and see if your machine reboots on S3 resume
>
> Ok - i tried this - Doesnt work - Machine seems not to execute the
> wakeup code at all.

IIRC, at one point linux wrote the kernel VM address to the firmware
wakeup vector, typically 0xc0000000 + hardware address. Now, there is
of course only one way to interpret that as a real-mode seg:off
address, but it did strike me as weird. I once checked that the
leading 0xc is irrelevant on my P2120, but YMMV.

I would also check that the suspend/resume doesn't choke somewhere in
32-bit land by jumping over the call to acpi_enter_sleep_state in
wakeup.S.

Ole