All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: James Simmons <jsimmons@infradead.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Linux Fbdev development list
	<linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: Framebuffer updates.
Date: Tue, 25 Mar 2003 19:20:43 +0100	[thread overview]
Message-ID: <20030325182043.GH30908@suse.de> (raw)
In-Reply-To: <Pine.LNX.4.33.0303251032320.4272-100000@maxwell.earthlink.net>

On Tue, Mar 25 2003, James Simmons wrote:
> 
> As usually I have a patch avalaible at 
> 
> http://phoenix.infradead.org/~jsimmons/fbdev.diff.gz
> 
>  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(-)
> 
> The patch has updates for the ATI Rage 128, Control, and Platnium 
> framebuffer driver. The Radeon patch adds PLL times for the R* series of
> cards. Memory is now safe to allocate for the software cursor and inside 
> fbcon. There still are issues with syncing which cause the cursor on some 
> systems to become corrupt sometimes. 

-       data = kmalloc(size, GFP_KERNEL);
-       mask = kmalloc(size, GFP_KERNEL);
+       data = kmalloc(size, GFP_ATOMIC);
+       mask = kmalloc(size, GFP_ATOMIC);

        if (cursor->set & FB_CUR_SETSIZE) {
                memset(data, 0xff, size);


irk, you replaced GFP_KERNEL with GFP_ATOMIC, and even unconditionally
memset the return without even bothering to check if it succeeded or
not.

-- 
Jens Axboe



-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en

WARNING: multiple messages have this Message-ID (diff)
From: Jens Axboe <axboe@suse.de>
To: James Simmons <jsimmons@infradead.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Linux Fbdev development list 
	<linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: Framebuffer updates.
Date: Tue, 25 Mar 2003 19:20:43 +0100	[thread overview]
Message-ID: <20030325182043.GH30908@suse.de> (raw)
In-Reply-To: <Pine.LNX.4.33.0303251032320.4272-100000@maxwell.earthlink.net>

On Tue, Mar 25 2003, James Simmons wrote:
> 
> As usually I have a patch avalaible at 
> 
> http://phoenix.infradead.org/~jsimmons/fbdev.diff.gz
> 
>  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(-)
> 
> The patch has updates for the ATI Rage 128, Control, and Platnium 
> framebuffer driver. The Radeon patch adds PLL times for the R* series of
> cards. Memory is now safe to allocate for the software cursor and inside 
> fbcon. There still are issues with syncing which cause the cursor on some 
> systems to become corrupt sometimes. 

-       data = kmalloc(size, GFP_KERNEL);
-       mask = kmalloc(size, GFP_KERNEL);
+       data = kmalloc(size, GFP_ATOMIC);
+       mask = kmalloc(size, GFP_ATOMIC);

        if (cursor->set & FB_CUR_SETSIZE) {
                memset(data, 0xff, size);


irk, you replaced GFP_KERNEL with GFP_ATOMIC, and even unconditionally
memset the return without even bothering to check if it succeeded or
not.

-- 
Jens Axboe


  reply	other threads:[~2003-03-25 18:39 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-25 17:57 Framebuffer updates James Simmons
2003-03-25 17:57 ` James Simmons
2003-03-25 18:20 ` Jens Axboe [this message]
2003-03-25 18:20   ` Jens Axboe
2003-03-25 18:47   ` James Simmons
2003-03-25 18:47     ` James Simmons
2003-03-25 18:27 ` Florin Iucha
2003-03-25 20:50   ` James Simmons
2003-03-25 20:50     ` James Simmons
2003-03-26 13:16     ` Benjamin Herrenschmidt
2003-03-26 20:08       ` James Simmons
2003-03-26 20:08         ` James Simmons
2003-03-26 14:03 ` Scott Robert Ladd
2003-03-26 14:03   ` Scott Robert Ladd
2003-03-26 20:07   ` James Simmons
2003-03-26 20:07     ` James Simmons
  -- strict thread matches above, loose matches on Subject: below --
2003-03-18 17:16 James Simmons
2003-03-18 17:16 ` James Simmons

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030325182043.GH30908@suse.de \
    --to=axboe@suse.de \
    --cc=jsimmons@infradead.org \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.