Re: [PATCH] Quirk to fix suspend/resume on Lenovo Edge 11,13,14,15

From: Borislav Petkov
Date: Thu Jan 13 2011 - 14:07:18 EST


On Thu, Jan 13, 2011 at 06:58:07PM +0000, Matthew Garrett wrote:
> On Thu, Jan 13, 2011 at 07:51:49PM +0100, Thomas Gleixner wrote:
>
> > What's odd is that the machines actually boot. I would have expected
> > that they do not boot at all if the BIOS IRQ0 pin2 override is
> > ignored. But it seems that takes effect just when the machine does a
> > suspend/resume. Weird!
>
> The only thing that springs to mind is some BIOS code making incorrect
> assumptions about timer setup when we trap into it. Is reprogramming the
> timer back to the boot state over suspend plausible? If so, that'd
> probably be a more general fix.

Well, Andreas did boot with 'hpet=verbose' on an affected machine here
and did a suspend/resume and the hpet config registers looked ok before
suspend and after resume. It might be that the HPET is temporarily
"insane" while resume lasts but we don't have any hard facts confirming
that so far. We've contemplated switching to the pit timer before
suspend and back to hpet after resume, as a brown-paper bag solution.
And this issue pertains only to SB800, that's why my machine here wasn't
affected - it has an SB700.

--
Regards/Gruss,
Boris.

Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach
General Managers: Alberto Bozzo, Andrew Bowd
Registration: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
--
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/