From owner-freebsd-bugbusters@FreeBSD.ORG Mon May 29 15:23:06 2006 Return-Path: X-Original-To: bugbusters@freebsd.org Delivered-To: freebsd-bugbusters@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB40F16AC4C for ; Mon, 29 May 2006 15:23:06 +0000 (UTC) (envelope-from ceri@submonkey.net) Received: from shrike.submonkey.net (cpc2-cdif2-0-0-cust107.cdif.cable.ntl.com [81.104.168.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6858C43D66 for ; Mon, 29 May 2006 15:22:58 +0000 (GMT) (envelope-from ceri@submonkey.net) Received: from ceri by shrike.submonkey.net with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1Fkja5-000Kyl-5A; Mon, 29 May 2006 16:22:57 +0100 Date: Mon, 29 May 2006 16:22:57 +0100 From: Ceri Davies To: Mike M Message-ID: <20060529152257.GU21998@submonkey.net> Mail-Followup-To: Ceri Davies , Mike M , bugbusters@freebsd.org References: <20060529050346.34974.qmail@web52301.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ijf6z65S790CMqo8" Content-Disposition: inline In-Reply-To: <20060529050346.34974.qmail@web52301.mail.yahoo.com> X-PGP: finger ceri@FreeBSD.org User-Agent: Mutt/1.5.11 Sender: Ceri Davies Cc: bugbusters@freebsd.org Subject: Re: AGP driver misconfigures aperture size on Athlon64 with SiS 760 controller (+PATCH) X-BeenThere: freebsd-bugbusters@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Coordination of the Problem Report handling effort." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 May 2006 15:23:16 -0000 --ijf6z65S790CMqo8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Filed as kern/98094, Mike. Thanks for sending it in. Ceri On Sun, May 28, 2006 at 10:03:46PM -0700, Mike M wrote: > Sorry about the formatting - send-pr doesn't work for > me, and I couldn't see the images on the web form to > submit it there... >=20 > To: FreeBSD-gnats-submit@freebsd.org > From: User & > Reply-To: User & > Cc:=20 > X-send-pr-version: 3.113 > X-GNATS-Notify:=20 >=20 >=20 > >Submitter-Id: current-users > >Originator: Mike M > >Organization: none > >Confidential: no > >Synopsis: AGP driver misconfigures aperture size on > Athlon64 with SiS 760 controller (+PATCH) > >Severity: non-critical > >Priority: low > >Category: kern > >Class: sw-bug > >Release: FreeBSD 6.1-STABLE i386 > >Environment: > System: FreeBSD blunderbox.domain.actdsltmp 6.1-STABLE > FreeBSD 6.1-STABLE #3: Sun May 28 20:40:21 PDT 2006 > mmcg@blunderbox.domain.actdsltmp:/M/0/a/usr.obj/M/0/a/usr.src6/sys/BLUNDE= RBOX32 > i386 >=20 >=20 > Athlon 64, running FreeBSD/i386 >=20 > >Description: >=20 > Running FreeBSD-i386 on an Athlon 64, with a radeon > 9600 video card and a SiS760 AGP bridge, using X.org > 6.9; GENERIC kernel with agp, dri, and radeon dri > compiled in. >=20 > When starting Xorg using the system as configured > above, DRM fails to initialize with the following: >=20 > agp0: binding memory at bad offset 0 >=20 > This causes DRM, hence DRI to fail, resulting in no > acceleration for GLX under X. Somewhat frustrating, > as I had purchased the radeon card to solve precisely > this problem (with the built-in graphics). >=20 > The reason: the AGP driver thinks that the aperture > size is 4M - when, in fact, it is 64M. The aperture > initialization then fails because AGP_GET_APERTURE() > is returning 4M, whereas the radeon DRI driver is > using the size information returned by agp_get_info() > (which retrieves the size of the allocated resource > directly from the resource manager, using > rman_get_size(sc->as_aperture) - this may or may not > be a bug). So agp_alloc_gatt() fails because it's > asked to allocate 64M but only believes 4M is > available. >=20 >=20 > >How-To-Repeat: > Use an Athlon 64 motherboard with a SiS 760 AGP bridge > and (in my case) a radeon 9600 video card. Start > Xorg. No DRI. >=20 > >Fix: >=20 > After the following patch, things magically started > working (it just adds the SiS760 device ID to the > agp_amd64.c handler): >=20 > diff -c /usr/src/sys/pci/agp_amd64.c{.ctm,} > *** /usr/src/sys/pci/agp_amd64.c.ctm Sun May 28 > 19:37:02 2006 > --- /usr/src/sys/pci/agp_amd64.c Sun May 28 > 19:41:42 2006 > *************** > *** 97,102 **** > --- 97,104 ---- > return ("AMD 8151 AGP graphics > tunnel"); > case 0x07551039: > return ("SiS 755 host to AGP bridge"); > + case 0x07601039: > + return ("SiS 760 host to AGP bridge"); > case 0x168910b9: > return ("ULi M1689 AGP Controller"); > case 0x00d110de: >=20 > glxgears went from 90fps to 1200fps. >=20 > WARNING: I do not know how (or whether) this will > affect non-athlon64s. >=20 >=20 >=20 >=20 > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around=20 > http://mail.yahoo.com=20 > _______________________________________________ > freebsd-bugbusters@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-bugbusters > To unsubscribe, send any mail to "freebsd-bugbusters-unsubscribe@freebsd.= org" --=20 That must be wonderful! I don't understand it at all. -- Moliere --ijf6z65S790CMqo8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEexHQocfcwTS3JF8RApXlAKCKzf3fc3PCQPvIhQGs49ajTB2iZACeLE9M D42BFD1gaD7Y9ZnP6Qqg/1U= =gXnO -----END PGP SIGNATURE----- --ijf6z65S790CMqo8--