On Saturday 10 October 2009, Thomas Hellstrom wrote:
> Hi!
> 
> I'm trying to port a graphics DRM device driver over to the new power 
> management hooks in
> 
> struct dev_pm_ops.
> 
> During the "prepare" call, Video RAM contents may be copied either to 
> shmem objects or pages allocated using alloc_page().
> Unfortunately, this seems to lead to the hibernation process running out 
> of free pages.
> 
> One possible cause is that the function swsusp_shrink_memory() is called 
> before the prepare() call, and therefore doesn't free up enough memory.
> 
> What would be the correct way around this? Should swsusp_shrink_memory() 
> be moved to after prepare(), or is it possible to get some kind of 
> notification after user space processes is stopped, but before 
> swsusp_shrink_memory()?

There are suspend/hibernation notifiers that can be used for this purpose.

Thanks,
Rafael

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to