From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Herrenschmidt Subject: Re: [PATCH] Framebuffer: 2nd try: client notification mecanism & PM Date: 07 Aug 2003 11:38:22 +0200 Sender: linux-fbdev-devel-admin@lists.sourceforge.net Message-ID: <1060249101.1077.67.camel@gaston> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Received: from mix-lyon-308-2-184.w80-9.abo.wanadoo.fr ([80.9.175.184] helo=gaston) by sc8-sf-list1.sourceforge.net with esmtp (Exim 3.31-VA-mm2 #1 (Debian)) id 19khEk-0004fa-00 for ; Thu, 07 Aug 2003 02:39:11 -0700 In-Reply-To: Errors-To: linux-fbdev-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" To: James Simmons Cc: linux-kernel mailing list , Linux Fbdev development list , Pavel Machek On Thu, 2003-08-07 at 01:52, James Simmons wrote: > > James, if you are ok, can you get that upstream to Linus asap so > > I can start pushing the driver bits for radeon & aty128 ? > > Working on it. I'm thinking about also how it effects userland and how > userland affects the console if present. Basically the logic will go > > pci suspend -> framebuffer driver supend function -> call each client > > Just give me a few days to piece it together. Right now, we don't have a proper userland notification. So far, the main affected thing is XFree, but this is ok as it will have received a suspend request via /dev/apm_bios (which we emulate on PowerMacs), and so won't touch the framebuffer until resumed. There isn't much we can do against a userland client tapping the framebuffer that it mmap'ed previously. I don't know how feasible it would be to sort of "hack" this process mapping on the fly (would involve some nasty SMP synchronisation issues) so that the userland process is just put to sleep on fb access while the fb is suspended (or get a SEGV). We probably want to extend the notification mecanism to userland in some way, but this isn't something i cover in this patch. Ben. ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01