linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: Andrew Morton <akpm@osdl.org>,
	ajoshi@shell.unixbox.com,
	Linux Fbdev development list
	<linux-fbdev-devel@lists.sourceforge.net>,
	Linux Kernel list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] radeonfb: If no video memory, exit with error [repost]
Date: Wed, 27 Oct 2004 09:50:55 +1000	[thread overview]
Message-ID: <1098834655.6916.66.camel@gaston> (raw)
In-Reply-To: <200410261603.24434.bjorn.helgaas@hp.com>

Andrew, looks ok.

On Tue, 2004-10-26 at 16:03 -0600, Bjorn Helgaas wrote:
> Posted this last week (10/21) but haven't seen any response.
> Would you consider this for the next -mm?  Also attached in
> case kmail mangles the whitespace.
> 
> 
> [PATCH] radeonfb: If no video memory, exit with error
> 
> Nothing good will happen if we try to ioremap and use a zero-sized
> frame buffer.  I observed this problem on an ia64 sx1000 box, where
> the BIOS doesn't run the option ROM.  If we try to continue, radeonfb
> just gets hopelessly confused because the card isn't initialized
> correctly.
> 
> Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
> 
> ===== drivers/video/aty/radeon_base.c 1.32 vs edited =====
> --- 1.32/drivers/video/aty/radeon_base.c 2004-10-19 03:40:34 -06:00
> +++ edited/drivers/video/aty/radeon_base.c 2004-10-21 11:50:51 -06:00
> @@ -2186,7 +2186,9 @@
>            rinfo->video_ram = 8192 * 1024;
>            break;
>           default:
> -          break;
> +   printk (KERN_ERR "radeonfb: no video RAM reported\n");
> +   ret = -ENXIO;
> +   goto err_unmap_rom;
>    }
>   }
>  
-- 
Benjamin Herrenschmidt <benh@kernel.crashing.org>



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click

  reply	other threads:[~2004-10-26 23:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-26 22:03 [PATCH] radeonfb: If no video memory, exit with error [repost] Bjorn Helgaas
2004-10-26 23:50 ` Benjamin Herrenschmidt [this message]
2004-10-27  9:42 ` Benjamin Herrenschmidt

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=1098834655.6916.66.camel@gaston \
    --to=benh@kernel.crashing.org \
    --cc=ajoshi@shell.unixbox.com \
    --cc=akpm@osdl.org \
    --cc=bjorn.helgaas@hp.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).