Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 25 Mar 2003 13:19:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 25 Mar 2003 13:18:39 -0500 Received: from AMarseille-201-1-1-200.abo.wanadoo.fr ([193.252.38.200]:18727 "EHLO zion.wanadoo.fr") by vger.kernel.org with ESMTP id ; Tue, 25 Mar 2003 13:18:35 -0500 Subject: Re: [BK FBDEV] A few more updates. From: Benjamin Herrenschmidt To: James Simmons Cc: Linus Torvalds , Linux Fbdev development list , Linux Kernel Mailing List In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Message-Id: <1048616901.10476.3.camel@zion.wanadoo.fr> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 25 Mar 2003 19:28:21 +0100 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1363 Lines: 36 On Tue, 2003-03-25 at 19:32, James Simmons wrote: > Linus, please do a > > bk pull http://fbdev.bkbits.net/fbdev-2.5 > > This will update the following files: > > drivers/video/aty/aty128fb.c | 16 +++++++--------- > drivers/video/console/fbcon.c | 4 ++-- > drivers/video/controlfb.c | 18 +++--------------- > drivers/video/platinumfb.c | 28 ++++++++-------------------- > drivers/video/radeonfb.c | 10 ++++++++++ > drivers/video/softcursor.c | 2 +- > 6 files changed, 31 insertions(+), 47 deletions(-) > > through these ChangeSets: > > (03/03/25 1.981) > [FBCON] Could be called outside of a process context. This fixes that. You "fixed" it by using GFP_ATOMIC but didn't test the result of kmalloc. That is very bad. GFP_ATOMIC can fail (return NULL), thus you will crash the kernel under high memory pressure. I think the proper fix is, as you asked me, using a workqueue, that way, you can both use GFP_KERNEL allocations, and avoid the spinlock you added to fbmem.c, thus letting the fb_sync() ops on fbdev's be able to block. Ben. - 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/