Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 11 Dec 2002 07:15:24 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 11 Dec 2002 07:14:29 -0500 Received: from ns.suse.de ([213.95.15.193]:50699 "EHLO Cantor.suse.de") by vger.kernel.org with ESMTP id ; Wed, 11 Dec 2002 07:13:14 -0500 Date: Wed, 11 Dec 2002 13:20:59 +0100 From: Dave Jones To: Nicolas ASPERT Cc: Margit Schubert-While , linux-kernel@vger.kernel.org, faith@redhat.com, dri-devel@lists.sourceforge.net Subject: Re: 2.4.20 AGP for I845 wrong ? Message-ID: <20021211132059.C11689@suse.de> Mail-Followup-To: Dave Jones , Nicolas ASPERT , Margit Schubert-While , linux-kernel@vger.kernel.org, faith@redhat.com, dri-devel@lists.sourceforge.net References: <3DF72A91.5080804@epfl.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3DF72A91.5080804@epfl.ch>; from Nicolas.Aspert@epfl.ch on Wed, Dec 11, 2002 at 01:07:45PM +0100 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2248 Lines: 48 On Wed, Dec 11, 2002 at 01:07:45PM +0100, Nicolas ASPERT wrote: > IIRC, the 845G is a "new" version of the 830MP chipset (it had been > added by Abraham vd Merwe & Graeme Fisher some months ago), but acts > basically just as the 830MP. Therefore the entry is correct.... Or maybe > if it gets confusing adding a comment would not hurt... I'll check the chipset docs when I get time, and add a comment if necessary. No-one seems to be complaining that it isn't working, so I'm inclined to believe your diagnosis is correct. > > Also in drivers/char/drm/drm_agpsupport.h, the switch statement at 262 > > is missing the > > cases for INTEL_I830_M, INTEL_I845_G. > That's true. It is also missing in 2.5.51. > I attach two patches, one for 2.4.21-pre1 and one for 2.5.51 that should > fix this. > diff -ru linux-2.5.51.clean/drivers/char/drm/drm_agpsupport.h linux-2.5.51/drivers/char/drm/drm_agpsupport.h > --- linux-2.5.51.clean/drivers/char/drm/drm_agpsupport.h Tue Dec 10 03:45:39 2002 > +++ linux-2.5.51/drivers/char/drm/drm_agpsupport.h Wed Dec 11 12:55:08 2002 > @@ -271,10 +271,12 @@ > #if LINUX_VERSION_CODE >= 0x02040f /* KERNEL_VERSION(2,4,15) */ > case INTEL_I820: head->chipset = "Intel i820"; break; > #endif > + case INTEL_I830_M: head->chipset = "Intel i830M"; break; > case INTEL_I840: head->chipset = "Intel i840"; break; > #if LINUX_VERSION_CODE >= 0x02040f /* KERNEL_VERSION(2,4,15) */ > case INTEL_I845: head->chipset = "Intel i845"; break; > #endif > + case INTEL_I845: head->chipset = "Intel i845G"; break; > case INTEL_I850: head->chipset = "Intel i850"; break; > case INTEL_460GX: head->chipset = "Intel 460GX"; break; DRI folks, this seems like duplication given that this data is available in agpgart. How about changing this to read whatever agpgart has set in .chipset_name ? Keeping these two lists in sync seems somewhat pointless. Dave -- | Dave Jones. http://www.codemonkey.org.uk | SuSE Labs - 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/