From owner-freebsd-x11@FreeBSD.ORG Sun Jun 8 15:31:40 2008 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 404391065688 for ; Sun, 8 Jun 2008 15:31:40 +0000 (UTC) (envelope-from rnoland@2hip.net) Received: from gizmo.2hip.net (gizmo.2hip.net [64.74.207.195]) by mx1.freebsd.org (Postfix) with ESMTP id 08EF68FC26 for ; Sun, 8 Jun 2008 15:31:39 +0000 (UTC) (envelope-from rnoland@2hip.net) Received: from [192.168.1.151] (adsl-154-162-206.bna.bellsouth.net [68.154.162.206]) (authenticated bits=0) by gizmo.2hip.net (8.13.8/8.13.8) with ESMTP id m58F9NeO059061 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 8 Jun 2008 11:09:27 -0400 (EDT) (envelope-from rnoland@2hip.net) From: Robert Noland To: Roland Smith In-Reply-To: <20080608104234.GA73057@slackbox.xs4all.nl> References: <20080608104234.GA73057@slackbox.xs4all.nl> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-Tc4D2jJye7X2wYEiFL7b" Organization: 2Hip Networks Date: Sun, 08 Jun 2008 11:09:17 -0400 Message-Id: <1212937757.1471.23.camel@wombat.2hip.net> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 FreeBSD GNOME Team Port X-Spam-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_00, RCVD_IN_SORBS_DUL autolearn=no version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on gizmo.2hip.net Cc: freebsd-x11@freebsd.org Subject: Re: 7-STABLE and Intel G33 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jun 2008 15:31:40 -0000 --=-Tc4D2jJye7X2wYEiFL7b Content-Type: multipart/mixed; boundary="=-mKcborsnwz5/Cuk1OpPU" --=-mKcborsnwz5/Cuk1OpPU Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sun, 2008-06-08 at 12:42 +0200, Roland Smith wrote: > My PC has built-in intel G33 graphics, which I'm trying to get to work > in something better then vesa. >=20 > Following the instructions in > http://lists.freebsd.org/pipermail/freebsd-stable/2008-January/039638.htm= l > I have compiled and installed the driver and kernel modules from the git > trees for drm and the xf86-video-intel driver from June 5th. >=20 > I also patched agp_i810.c to remove the comments from the chipset > identifiers and rebuilt the kernel. >=20 > After loading the i915.ko kernel module from the git tree, and starting > X with a config file using the intel driver, I still get; >=20 > (II) intel(0): xf86BindGARTMemory: bind key 1 at 0x006ff000 (pgoffset 17= 91) > (WW) intel(0): xf86BindGARTMemory: binding of gart memory with key 1 > at offset 0x6ff000 failed (Invalid argument) >=20 > Fatal server error: > Couldn't bind memory for front buffer >=20 > In dmesg output I see: >=20 > agp0: trying to bind into stolen memory >=20 > Looking at the Xorg.0.log, the xf86-video-intel driver and the drm and > dri drivers seem to initialize OK. >=20 > Grepping through the source, this error seems to originate in > /usr/src/sys/pci/agp_i810.c;=20 >=20 > if ( sc->chiptype !=3D CHIP_I810 ) { > if ( (offset >> AGP_PAGE_SHIFT) < sc->stolen ) { > device_printf(dev, "trying to bind into stolen me= mory"); > return EINVAL; > } >=20 > [disclaimer: I'm not a software engineer by education or trade, just a > mechanical engineer who likes to tinker with computers and software] >=20 > I've been reading the agp code, the intel driver code and I've skimmed > the intel docs. I find the code quite hard to understand, and the intel > docs nigh-on unreadable.=20 >=20 > Would modifying the if-statement to not produce this error on the > CHIP_G33 fix this problem? Or would it horribly blow up in my face? I can try to look into it, but my time is a bit scattered for the next few weeks. If I'm parsing Eric's analysis correctly, the attached patch along with the other items he pointed out, may do it. Apply the patch to agp_i810.c and see if it makes a difference. robert. > Any help to get this to work would be very much appreciated! >=20 > Roland --=-mKcborsnwz5/Cuk1OpPU Content-Disposition: attachment; filename=i810-g33.diff Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name=i810-g33.diff; charset=us-ascii LS0tIGFncF9pODEwLmMub3JpZwkyMDA4LTA2LTA4IDExOjAzOjI5LjAwMDAwMDAwMCAtMDQwMA0K KysrIGFncF9pODEwLmMJMjAwOC0wNi0wOCAxMTowNToyOC4wMDAwMDAwMDAgLTA0MDANCkBAIC00 OTIsNyArNDkyLDYgQEANCiAJCWNhc2UgQ0hJUF9JOTE1Og0KIAkJCWd0dF9zaXplID0gMjU2Ow0K IAkJCWJyZWFrOw0KLQkJY2FzZSBDSElQX0k5NjU6DQogCQljYXNlIENISVBfRzMzOg0KIAkJCXN3 aXRjaCAoYnVzX3JlYWRfNChzYy0+c2NfcmVzWzBdLCBBR1BfSTgxMF9QR1RCTF9DVEwpICYNCiAJ CQkgICAgQUdQX0k4MTBfUEdUQkxfU0laRV9NQVNLKSB7DQpAQCAtNTE0LDYgKzUxMyw5IEBADQog CQkJCXJldHVybiBFSU5WQUw7DQogCQkJfQ0KIAkJCWJyZWFrOw0KKwkJY2FzZSBDSElQX0k5NjU6 DQorCQkJZ3R0X3NpemUgPSAwOw0KKwkJCWJyZWFrOw0KIAkJZGVmYXVsdDoNCiAJCQlkZXZpY2Vf cHJpbnRmKGRldiwgIkJhZCBjaGlwdHlwZVxuIik7DQogCQkJYnVzX3JlbGVhc2VfcmVzb3VyY2Vz KGRldiwgc2MtPnNjX3Jlc19zcGVjLA0K --=-mKcborsnwz5/Cuk1OpPU-- --=-Tc4D2jJye7X2wYEiFL7b Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEABECAAYFAkhL9h0ACgkQM4TrQ4qfRONHCwCeP3IYYnFFaGocYT15kJ5EKWSJ 57UAn151kQPlEiXd+8tHUCF/BfBmVG49 =Q1EI -----END PGP SIGNATURE----- --=-Tc4D2jJye7X2wYEiFL7b--