linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marcelo Tosatti <marcelo@conectiva.com.br>
To: Ani Joshi <ajoshi@unixbox.com>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: Patch for radeon framebuffer (fwd)
Date: Wed, 19 Mar 2003 17:43:08 -0300 (BRT)	[thread overview]
Message-ID: <Pine.LNX.4.53L.0303191742580.6210@freak.distro.conectiva> (raw)


Forwarded to the radeon maintainer.


Danke

---------- Forwarded message ----------
Date: Sat, 15 Mar 2003 14:24:08 +0100
From: "Hanno [ISO-8859-15] Böck" <hanno@gmx.de>
To: linux-kernel@vger.kernel.org
Cc: marcelo@conectiva.com.br
Subject: Patch for radeon framebuffer

The patch below has been around for ages now.
It is needed on some radeon mobility cards, because they report 0 for
their video-ram-size.
Without the patch, the radeonfb will not work.

Can you include this in the next kernel release?


--- radeonfb.c.orig	Thu May  9 16:51:26 2002
+++ radeonfb.c	Thu May  9 16:48:46 2002
@@ -877,6 +877,14 @@
 	/* mem size is bits [28:0], mask off the rest */
 	rinfo->video_ram = tmp & CONFIG_MEMSIZE_MASK;

+	/* According to XFree86 4.2.0, some production M6's return 0
+	   for 8MB. */
+	if (rinfo->video_ram == 0 &&
+	    (pdev->device == PCI_DEVICE_ID_RADEON_LY ||
+	     pdev->device == PCI_DEVICE_ID_RADEON_LZ)) {
+	    rinfo->video_ram = 8192 * 1024;
+	  }
+
 	/* ram type */
 	tmp = INREG(MEM_SDRAM_MODE_REG);
 	switch ((MEM_CFG_TYPE & tmp) >> 30) {

             reply	other threads:[~2003-03-19 20:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-19 20:43 Marcelo Tosatti [this message]
2003-03-20 13:46 ` Patch for radeon framebuffer (fwd) Mauro Chiarugi

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=Pine.LNX.4.53L.0303191742580.6210@freak.distro.conectiva \
    --to=marcelo@conectiva.com.br \
    --cc=ajoshi@unixbox.com \
    --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).