RE: Subtle semantic issue with sleep callbacks in drivers

Alan Cox (alan@lxorguk.ukuu.org.uk)
17 Apr 2003 14:35:50 +0100


On Mer, 2003-04-16 at 19:39, Patrick Mochel wrote:
> I completely agree with Andy. We should not re-POST the video hardware, no
> matter what. The idea behind ACPI is that the OS takes care of everything,
> including video save/restore.

Outside of happyville ivory towers you probably have no choice. Only the
BIOS knows stuff like the RAM timings, and some windows drivers just use
the BIOS, others rely on being shipped compiled for the right variant of
card they came with.

We keep the BIOS segment data so you can re-post the card on the 16bit
resume path. Probably there should be a flag for relevant frame buffer
drivers to set that says "don't re-Post but call me later"

> We may not have the documentation to properly do that for all hardware
> currently, but that is something that we have to suck up and deal with.

> For now, we go with hardware that we're able to handle.

Thats pretty close to "there isnt any"

> The drivers that cannot support reinitialization will not be able to
> support suspend-to-RAM. When we get to a point where it really becomes an
> issue (i.e. after we have decent working code), then we concentrate on
> getting the appropriate docuementation (or code itself, source or binary)
> to do it correctly.

X people have been trying to do this for multihead setups for years.
You'll get Matrox, you'll get 3DFX voodoo1/2, you might get early SiS.
Intel - dunno, but the rest - no chance.

> Trying to figure out if we need to POST or not for different hardware,
> based what the driver knows, is going to become quite a mess real fast. I
> don't want to deal with the pain, and would rather take the high ground,
> even if it means suffering in the short term.

Short, long and forever. I agree we want drivers to be able to say "Don't POST
I can hack this one", however we need to accept the real world that most
hardware wants posting and that in many cases its what the windows driver
does anyway.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/