From linux-kernel-owner+willy=40w.ods.org@vger.kernel.org Sat Mar 15 13:26:22 2003 Return-Path: Received: from vax.home.local (vax [10.2.1.2]) by alpha.home.local (8.12.4/8.12.1) with ESMTP id h2FCQLN1027842 for ; Sat, 15 Mar 2003 13:26:22 +0100 Received: from vger.kernel.org (vger.kernel.org [209.116.70.75]) by vax.home.local (8.12.2/8.12.1) with ESMTP id h2FCRY1Q008967 for ; Sat, 15 Mar 2003 13:27:39 +0100 (CET) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 15 Mar 2003 07:13:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 15 Mar 2003 07:13:29 -0500 Received: from mail.gmx.net ([213.165.65.60]:49416 "HELO mail.gmx.net") by vger.kernel.org with SMTP id ; Sat, 15 Mar 2003 07:13:28 -0500 Received: (qmail 2193 invoked by uid 0); 15 Mar 2003 12:24:11 -0000 Received: from pD953B4EB.dip.t-dialin.net (HELO guybrush) (217.83.180.235) by mail.gmx.net (mp010-rz3) with SMTP; 15 Mar 2003 12:24:11 -0000 Date: Sat, 15 Mar 2003 14:24:08 +0100 From: Hanno =?ISO-8859-15?Q?B=F6ck?= To: linux-kernel@vger.kernel.org Cc: marcelo@conectiva.com.br Subject: Patch for radeon framebuffer Message-Id: <20030315142408.7d3bc3c0.hanno@gmx.de> X-Mailer: Sylpheed version 0.8.11claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1040 Lines: 30 Status: RO 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? --- a/drivers/video/radeonfb.c.orig Thu May 9 16:51:26 2002 +++ b/drivers/video/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) { - 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/