Re: PCI PM: Restore standard config registers of all devices early

From: Benjamin Herrenschmidt
Date: Mon Feb 02 2009 - 17:29:25 EST


On Mon, 2009-02-02 at 22:39 +0100, Rafael J. Wysocki wrote:
> Yes, which is why I thought it might be a good idea to make the AML interpreter
> allow is to execute AML with interrupts off, so that we can put devices into
> low power states and/or put them into D0 with interrupts off.
>
> Then, we'll be able to make ACPI happy (up to some strange ordering
> expectations of some insane BIOSes maybe) and fix the interrupts issue at
> the same time.
>
> The idea would be to have a special code path(s) where AML can be executed
> with interrupts off and a couple of special entry points into the AML
> interpreter for this purpose.

Right. That way, I can also use the same hooks for my clock gating and
be confident they'll be called at the right time.

Now, we need some ACPI folks to tell us why this won't work :-)

Ben.


--
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/