Skip to contentSkip to conversation

x86 acpi: normalize segment descriptor register on resume

RFT H. Peter Anvin 1 participant 1 message Jul 12, 2008 ACPI

lore
Share & tools
lore
#0 lore raw

It seems like a reasonable guess at least. I won't have a chance to dig into the details until late this evening or tomorrow, depending on when I get home tonight.

Signature · 1 line
Sent from my mobile phone (pardon any lack of formatting)

-----Original Message-----
From: Rafael J. Wysocki <[email protected]>
Sent: Saturday, July 12, 2008 13:53
To: Andy Lutomirski <[email protected]>; H. Peter Anvin <[email protected]>
Cc: Andi Kleen <[email protected]>; Ingo Molnar <[email protected]>; [email protected]; ACPI Devel Maling List <[email protected]>; LKML <[email protected]>; pm list <[email protected]>; Pavel Machek <[email protected]>
Subject: Re: [RFT] x86 acpi: normalize segment descriptor register on resume

Quoted 21 lines · Andy Lutomirski
Quoted 20 lines · Rafael J. Wysocki
Quoted 5 lines · Andy Lutomirski

My Lenovo X61s fails to resume if I suspend it from within X, on both 2.6.26-rc9 and recent wireless-testing. 2.6.26-rc8 is fine, as is wireless-testing with 4b4f7280 reverted. My in-progress bisect between -rc8 and -rc9 is also consistent with this being the problem.

Quoted 7 lines

The symptom is that, when I push the power button to resume, the hard drive light turns on, the fan turns on, then the hard drive light turns off, the sleep light stays on, and the fan keeps running. Sometimes the battery light will blink off very briefly (1/4 sec, maybe) every few seconds. The system is locked hard at this point.

I'm using Ubuntu Hardy userspace.

Well, that's bad.

There is the bugzilla entry at http://bugzilla.kernel.org/show_bug.cgi?id=11064
for this bug and you've just confirmed my suspicion that this particular commit is to blame.

Quoted 8 lines
Quoted 1 line

Can you please see if the appended patch changes anything?

More correctly:

If I suspend by typing pm-suspend or echo mem >/sys/power/state, then it resumes just fine. If I log in to Gnome and push the suspend button, then it does not resume. This seems to be the case with or without your patch.

Is there an Intel graphics in your box?

Quoted 2 lines

-rc8 and -rc9 with the original patch 4b4f7280 resume fine no matter how I suspend.

That's _really_ strange.

In fact I have only one explanation, which is that the Gnome suspend button causes some user-space quirks to be applied, which are harmful and break the resume. Also, without commit 4b4f7280 those quirks might have not been really executed. Peter, does it sound reasonable?

Thanks,
Rafael