Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Mar 2008 10:34:48 +0000
From:      Tom Evans <tevans.uk@googlemail.com>
To:        Matthew Willis <matthew.willis@mac.com>
Cc:        freebsd-x11@FreeBSD.org
Subject:   Re: i915/GART broken in CURRENT
Message-ID:  <1205404488.75559.23.camel@localhost>
In-Reply-To: <FC78635D-6A46-474B-85ED-E90281990FAD@mac.com>
References:  <FC78635D-6A46-474B-85ED-E90281990FAD@mac.com>

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

--=-5q2F0N65Y1R0L2Rj8/7n
Content-Type: multipart/mixed; boundary="=-BABlTnsHyZsFElkvN+8P"


--=-BABlTnsHyZsFElkvN+8P
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Tue, 2008-03-04 at 17:53 -0800, Matthew Willis wrote:
> I am on a Intel G33 motherboard: http://www.intel.com/products/motherboar=
d/DG33FB/index.htm
>=20
> My video chip is a GMA 3100, which is in the i915 family.

Its close to an i915, but its more 'second cousin' than family. The
other name for this chipset is G33.

>=20
> I am using the "intel" driver, and I get a "Unable to open /dev/=20
> agpgart (No such file or directory)" message when I start x.
>=20
> In researching this problem, I noticed that there were a few other =20
> mentions of it on boards and mailing lists, with no solutions, leading =20
> me to think that GART is simply broken for my configuration.
>=20
> Thanks for your help!
> Matt


Hi Matt, its not broken, its not supported at all. The highest intel
integrated graphics supported is i965G. G31, G33 and G35 are quite
different to the i810 style chips (i8xx, i9xx).=20

There is an intial implementation of support added in agp_intel.c rev
1.40:

revision 1.40
date: 2007/07/13 16:28:12;  author: anholt;  state: Exp;  lines: +306
-224
Add support for G965/Q965/GM965/GME965/GME945 AGP.

This adds a function to agp.c to set the aperture resource ID if it's
not the usual AGP_APBASE.  Previously, agp.c had been assuming
AGP_APBASE, which resulted in incorrect agp_info, and contortions by
agp_i810.c to work around it.

This also adds functions to agp.c for default AGP_GET_APERTURE() and
AGP_SET_APERTURE(), which return the aperture resource size and disallow
aperture size changes.  Moving to these for our AGP drivers will likely
result in stability improvements.  This should fix 855-class aperture
size detection.

Additionally, refuse to attach agp_i810 when some RAM is above 4GB and
the GART can't reference memory that high.  This should be very rare.
The correct solution would be bus_dma conversion for agp, which is
beyond the scope of this change.  Other AGP drivers could likely use
this change as well.

G33/Q35/Q33 AGP support is also included, but disconnected by default
due to lack of testing.

PR:             kern/109724 (855 aperture issue)
Submitted by:   FUJIMOTO Kou<fujimoto@j.dendai.ac.jp>
Approved by:    re (hrs)


The attached patch will reconnect the AGP support, but it probably won't
work. YMMV

Tom

--=-BABlTnsHyZsFElkvN+8P
Content-Disposition: attachment; filename=agp.diff.txt
Content-Transfer-Encoding: base64
Content-Type: text/x-patch; name=agp.diff.txt; charset=UTF-8

SW5kZXg6IHN5cy9kZXYvYWdwL2FncF9pODEwLmMNCj09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0NClJDUyBmaWxlOiAvaG9t
ZS9uY3ZzL3NyYy9zeXMvZGV2L2FncC9hZ3BfaTgxMC5jLHYNCnJldHJpZXZpbmcgcmV2aXNpb24g
MS40NA0KZGlmZiAtdSAtcjEuNDQgYWdwX2k4MTAuYw0KLS0tIHN5cy9kZXYvYWdwL2FncF9pODEw
LmMgICAgICAyNiBOb3YgMjAwNyAxODoxNzowNyAtMDAwMCAgICAgIDEuNDQNCisrKyBzeXMvZGV2
L2FncC9hZ3BfaTgxMC5jICAgICAgMTMgTWFyIDIwMDggMTA6MjY6MzAgLTAwMDANCkBAIC0xNTYs
MTQgKzE1NiwxMiBAQA0KICAgICAgICAgICAgIkludGVsIFE5NjUgU1ZHQSBjb250cm9sbGVyIn0s
DQogICAgICAgIHsweDI5YTI4MDg2LCBDSElQX0k5NjUsIDB4MDAwMjAwMDAsDQogICAgICAgICAg
ICAiSW50ZWwgRzk2NSBTVkdBIGNvbnRyb2xsZXIifSwNCi0vKg0KICAgICAgICB7MHgyOWIyODA4
NiwgQ0hJUF9HMzMsIDB4MDAwMjAwMDAsDQogICAgICAgICAgICAiSW50ZWwgUTM1IFNWR0EgY29u
dHJvbGxlciJ9LA0KICAgICAgICB7MHgyOWMyODA4NiwgQ0hJUF9HMzMsIDB4MDAwMjAwMDAsDQog
ICAgICAgICAgICAiSW50ZWwgRzMzIFNWR0EgY29udHJvbGxlciJ9LA0KICAgICAgICB7MHgyOWQy
ODA4NiwgQ0hJUF9HMzMsIDB4MDAwMjAwMDAsDQogICAgICAgICAgICAiSW50ZWwgUTMzIFNWR0Eg
Y29udHJvbGxlciJ9LA0KLSovDQogICAgICAgIHsweDJhMDI4MDg2LCBDSElQX0k5NjUsIDB4MDAw
MjAwMDAsDQogICAgICAgICAgICAiSW50ZWwgR005NjUgU1ZHQSBjb250cm9sbGVyIn0sDQogICAg
ICAgIHsweDJhMTI4MDg2LCBDSElQX0k5NjUsIDB4MDAwMjAwMDAsDQoNCg==


--=-BABlTnsHyZsFElkvN+8P--

--=-5q2F0N65Y1R0L2Rj8/7n
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQBH2QNBlcRvFfyds/cRArBVAJ0W4PR2Ieo/VoQb+WwayFHyEuidzgCbBoDO
wZ194Y+pahyeA26U3HRjIOQ=
=Idqh
-----END PGP SIGNATURE-----

--=-5q2F0N65Y1R0L2Rj8/7n--




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