2.4.5-ac8 hardlocks when going to standby
Quoted 8 lines · Remi Turk
Quoted 7 lines · Alan Cox
Quoted 6 lines
2.4.5-ac[4678] all lock hard (no sysreq) when pushing my power-button (setup from the bios to go to standby) or when running apm --standby. (apm version 3.0final, RH6.2) apm --suspend works the way it should.
2.4.5/2.4.6-pre1 don't hardlock.
Quoted 7 lines
Quoted 2 lines
Are you using the same build options for both
What machine is this - laptop ?It's not a laptop.
Tbird 950 + Abit KT7 (KT133)UP APIC is enabled in -ac[4678] and emu10k1 is the in-kernel
and later quoted Alan as saying:
Quoted 2 lines · Alan Cox
Quoted 1 line
Thanks. UP-APIC is a real candidate for this case.
Actually, I suspect apm.c is at fault here. Suspend works, which proves that the PM code in apic.c and nmi.c works.
But note how apm.c:send_event() ignores standby events and fails to propagate them to PM clients. Thus, Remi's box will have an activated local APIC and live NMI watchdog when the APM BIOS finally gets to do whatever it does at standby.
It is fatal to have an active local APIC and NMI watchdog at suspend, and I can only assume that this is true for standby as well.
Please try changing apm.c:send_event() to propagate standbys to PM clients just like suspends. Does this fix the problem?
(Any why use standby in the first place? Any reason you don't want to / can't use suspend?)
/Mikael
Quoted 13 lines · Mikael Pettersson
Quoted 2 lines · Alan Cox
Quoted 1 line
Thanks. UP-APIC is a real candidate for this case.
Actually, I suspect
apm.cis at fault here. Suspend works, which proves that the PM code inapic.candnmi.cworks.But note how apm.c:send_event() ignores standby events and fails to propagate them to PM clients. Thus, Remi's box will have an activated local APIC and live NMI watchdog when the APM BIOS finally gets to do whatever it does at standby.
It is fatal to have an active local APIC and NMI watchdog at suspend, and I can only assume that this is true for standby as well.
Quoted 2 lines
Please try changing apm.c:send_event() to propagate standbys to PM clients just like suspends. Does this fix the problem?
By applying the following patch (lookalike)?
arch/i386/kernel/apm.c:send_event():
case APM_SYS_SUSPEND:
case APM_CRITICAL_SUSPEND:
case APM_USER_SUSPEND:
+ case APM_USER_STANDBY:
+ case APM_SYS_STANDBY:
/* map all suspends to ACPI D3 */
if (pm_send_all(PM_SUSPEND, (void
*)3)) {Quoted 3 lines
(Any why use standby in the first place? Any reason you don't want to / can't use suspend?)
Because IIRC I can only choose between power-off and standby as functions of my powerbutton ;-)
Quoted 2 lines
/Mikael
Signature · 1 line
Linux 2.4.5-ac9 #5 Wed Jun 6 18:30:24 CEST 2001
Quoted 10 lines · Remi Turk
By applying the following patch (lookalike)?
arch/i386/kernel/apm.c:send_event():
case
APM_SYS_SUSPEND:
caseAPM_CRITICAL_SUSPEND:
caseAPM_USER_SUSPEND:(quoted diff) +2
-0+ case APM_USER_STANDBY: + case APM_SYS_STANDBY:
Quoted 3 lines
/* map all suspends to ACPI D3 */
if (pm_send_all(PM_SUSPEND, (void
*)3)) {Well, I tried this one (did I understand correctly wat you meant???) and it didn't make any difference.
Signature · 1 line
Linux 2.4.6-pre1 #1 Wed Jun 6 18:25:37 CEST 2001