From owner-freebsd-current@FreeBSD.ORG Tue Apr 6 11:39:36 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4339C16A4E1 for ; Tue, 6 Apr 2004 11:39:36 -0700 (PDT) Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C80C43D45 for ; Tue, 6 Apr 2004 11:39:36 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 850 invoked from network); 6 Apr 2004 18:37:22 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 6 Apr 2004 18:37:22 -0000 Received: from 10.50.40.205 (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.10/8.12.10) with ESMTP id i36IbCNG007435; Tue, 6 Apr 2004 14:37:19 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-current@freebsd.org Date: Tue, 6 Apr 2004 14:14:49 -0400 User-Agent: KMail/1.6 References: <20040402232528.GA54705@numachi.com> In-Reply-To: <20040402232528.GA54705@numachi.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200404061414.49846.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx Subject: Re: introducing support for other AGP devices? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2004 18:39:36 -0000 On Friday 02 April 2004 06:25 pm, Brian Reichert wrote: > I'm running FreeBSD 5.2.1-RELEASE on an E-machines M3505 laptop. > I've was hoping to get DRI working under X11. Alas, I am thwarted. > > The video card is an ATI Radeon Mobility U1. > > drm0@pci1:5:0: class=0x030000 card=0x2029161f chip=0x43361002 rev=0x00 > hdr=0x00 vendor = 'ATI Technologies' > device = 'Radeon Mobility U1' > class = display > subclass = VGA > > It was straightforward to patch sys/dev/drm/radeon.h to allow this > card to probe (gotta file a PR soonish): > > {0x1002, 0x4C57, 0, "ATI Radeon LW Mobility 7500 M7"}, \ > + {0x1002, 0x4336, 0, "ATI Radeon Mobility U1"}, \ > {0x1002, 0x4C58, 0, "ATI Radeon LX RV200 Mobility FireGL 7800 M7"}, \ > > # dmesg | grep drm > drm0: port 0x9000-0x90ff mem > 0xf0100000-0xf010ffff,0xf8000000-0xfbffffff irq 10 at device 5.0 on pci1 > info: [drm] Initialized radeon 1.10.0 20020828 on minor 0 > > But, X11R6 4.4.0 doesn't want to play, I get: > > "XFree86-DRI" missing on display ":0.0" > > I've followed the advice on the DRI troubleshooting webpage: > > > > I infer the core issue is this laptop's AGP chipset isn't supported, > acording to agp(4): > > pcib1@pci0:1:0: class=0x060400 card=0x00000000 chip=0x700f1002 rev=0x01 > hdr=0x01 vendor = 'ATI Technologies' > device = 'A3/U1 PCI to AGP Bridge' > class = bridge > subclass = PCI-PCI > > It looks like FreeBSD-current has an easy-to-extend AGP structure > in sys/pci/. But, other than introducing device probes, I have no > grasp how to pull in anything like support. > > Any pointers? I _think_ the Mobility U1 is also known as a 'IGP320M' > Northbridge chipset: > > > > (I'm grasping at straws here...) > > Thanks for any advice. Unfortunately, that link doesn't provide the info needed to write an AGP driver. You need to know the PCI config registers for that device, especially the registers used for setting the size of the aperture, flushing the GART, etc. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org