Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 08 Jun 2008 11:09:17 -0400
From:      Robert Noland <rnoland@2hip.net>
To:        Roland Smith <rsmith@xs4all.nl>
Cc:        freebsd-x11@freebsd.org
Subject:   Re: 7-STABLE and Intel G33
Message-ID:  <1212937757.1471.23.camel@wombat.2hip.net>
In-Reply-To: <20080608104234.GA73057@slackbox.xs4all.nl>
References:  <20080608104234.GA73057@slackbox.xs4all.nl>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-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--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1212937757.1471.23.camel>