On Mon, May 19, 2008 at 4:35 PM, Keith Whitwell <[EMAIL PROTECTED]> wrote: >> The biggest question is where we can write or read pages to swap at >> suspend to RAM and resume from RAM under all occasions. >> >> If not we have no other option then to have pages as backing store if >> we want to support suspend to ram for cards with VRAM that turn the >> ram of at suspend to RAM. > > It should be possible. The two-phased approach that seems to be > ascendent would give all the opportunity you need in the "prepare" > phase, while the full system is still running. > > http://lwn.net/Articles/274008/ > > Keith
Yes a two step program can work. At prepare we turn on backing storage mode for VRAM, that is all buffers in VRAM gain backing storage and all buffers that are moved to VRAM keep their pages. Then at suspend we copy everything down from VRAM and turn the card off. The problem is that after prepare things must still work as before so clients can still render so we can't copy pages down then. I also don't think we can count on swap being around at the call to suspend. Heck a system might not even have swap. Cheers Jakob. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -- _______________________________________________ Dri-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dri-devel
