Re: [RFT] x86 acpi: normalize segment descriptor register on resume

From: Pavel Machek
Date: Tue Jul 01 2008 - 05:18:50 EST


Hi!

>>> The appended patch fixes a regression and is considered as 2.6.26
>>> material. Everyone having a box with working suspend to RAM is gently
>>> requested to test it and verify if it doesn't break things.
>>>
>>> The patch applies to the current -git.
>>
>> it's been under testing in tip/out-of-tree for about a week:
>>
>> | commit ee901dc1b9ab94a37ba2efc296fe9ba72bc75adf
>> | Author: H. Peter Anvin <hpa@xxxxxxxxx>
>> | AuthorDate: Tue Jun 24 23:03:48 2008 +0200
>> | Commit: Ingo Molnar <mingo@xxxxxxx>
>> | CommitDate: Wed Jun 25 18:48:13 2008 +0200
>> |
>> | x86 ACPI: normalize segment descriptor register on resume
>>
>> no problems caused by it so far.
>>
>
> Here is the incremental patch which should stick "strictly to the script"
> of ljmp immediately after writing CR0.PE. This should be done to the boot
> code as well; I'm waiting for confirmation from the Elan original reporter
> before submitting that patch.
>
> I decided to make this an incremental patch to make it bisectable versus
> the other one, however, it should probably be considered the right thing.
>
> Note: I have not tested this beyond compilation, I'm afraid.

I had to apply it by hand, then I tested it along with Rafael's patch
and it does not seem to break anything here. So feel free to add my
ACK to both.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/