Date: Tue, 15 Jan 2008 11:53:14 -0800 From: Eric Anholt <anholt@FreeBSD.org> To: "Daniel O'Connor" <doconnor@gsoft.com.au>, freebsd-stable@FreeBSD.org Subject: Re: Fwd: FreeBSD 6.3 and Intel G33 Message-ID: <1200426794.2916.17.camel@localhost> In-Reply-To: <200801152012.56683.doconnor@gsoft.com.au> References: <200801152012.56683.doconnor@gsoft.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-CV7EhRbPOy4kFqtB74Ah Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2008-01-15 at 20:12 +1030, Daniel O'Connor wrote: > I just checked the CVS logs and found that you added G33 support but=20 > left it disconnected due to a lack of testing... Huh, I forgot. > How can I test it? :) I took a quick review of the docs again and I think it's almost complete. The gtt_size detection is broken, though. We should have gtt_size (the amount of graphics stolen memory used for storing the GTT data) equal to zero on this hardware, instead of using the G965 path. However, this also requires current xf86-video-intel, which fixes the mistaken assumption we originally had for xf86-video-intel and linux agp that the gtt stolen memory was stolen out of graphics stolen memory. Updating just the AGP driver for fixing the bad stolen memory assumption means that the 2d driver tries to bind memory lower than the AGP driver will let you, and your server won't start. The "proper" fix would be for us to remember the stolen memory address in the GTT and let you bind over them, but restore them on unbind. Some day we would love to release this memory to the general page allocator and get rid of this stolen memory disaster. To test, install xf86-video-intel from ports, uncomment those PCI IDs, and start X. If things are working, then it probably means you're good to go and we can enable it by default. If you're getting the "agp0: trying to bind into stolen memory" complaint, you need current 2D from git://anongit.freedesktop.org/git/xorg/driver/xf86-video-intel and we should cherry-pick the relevant patch into our ports. To be sure that everything's working, also enable DRI by installing updated DRM from git://anongit.freedesktop.org/git/mesa/drm (bsd-core directory, make all install). It may complain if you have witness enabled, since I haven't brought over the witness fix from -current yet. > email message attachment (forwarded message), ""Daniel O'Connor" > <doconnor@gsoft.com.au>: FreeBSD 6.3 and Intel G33" > > -------- Forwarded Message -------- > > From: Daniel O'Connor <doconnor@gsoft.com.au> > > To: freebsd-stable@freebsd.org > > Cc: Hiroshi Nishida <nishida@asusa.net> > > Subject: FreeBSD 6.3 and Intel G33 > > Date: Tue, 15 Jan 2008 17:01:04 +1030 > >=20 > > Hi, > > I'm trying to get a system with an Intel G33 video chipset in it > > (Supermicro C2SBA) working with the Intel driver but I'm not having muc= h > > luck.. > >=20 > > I took the patch from Hiroshi Nishida and added the G33 PCI ID's for it > > now I get agp/i810 attaching to it.. > > Matched G33 > > Matched for Intel G33 IG SVGA controller > > Matched G33 > > Matched for Intel G33 IG SVGA controller > > agp0: <Intel G33 IG SVGA controller> port 0x1c60-0x1c67 mem 0xd2300000-= 0xd237ffff,0xc0000000-0xcfffffff,0xd2000000-0xd20fffff irq 16 at device 2.0= on pci0 > > agp_i810_attach() called > > Attaching G33 > > Chip Type: 5, rid:10 > > agp0: detected 7676k stolen memory > > agp0: aperture size is 256M > >=20 > > I tried running X and got this in dmesg.. > > agp0: trying to bind into stolen memory > >=20 > > and this in the X log... > > (=3D=3D) intel(0): Backing store disabled > > (=3D=3D) intel(0): Silken mouse enabled > > (II) intel(0): Initializing HW Cursor > > (II) intel(0): xf86BindGARTMemory: bind key 6 at 0x006ff000 (pgoffset 1= 791) > > (WW) intel(0): xf86BindGARTMemory: binding of gart memory with key 6 > > at offset 0x6ff000 failed (Invalid argument) > >=20 > > Fatal server error: > > Couldn't bind memory for front buffer > >=20 > > I then added the PCI ID (0x8086 / 0x29c2) to /usr/src/sys/dev/drm/drm_p= ciids.h > > and now I get this in dmesg.. > > drmsub0: <Intel G33>: (child of agp_i810.c) on agp0 > > info: [drm] AGP at 0xd2300000 0MB > > info: [drm] Initialized i915 1.5.0 20060119 > >=20 > > but that does not affect the error from X. > >=20 > > I see a NetBSD patch at=20 > > http://mail-index.netbsd.org/netbsd-bugs/2007/09/05/0015.html but I hav= en't=20 > > tried shoe horning that in yet.. > >=20 --=20 Eric Anholt anholt@FreeBSD.org eric@anholt.net eric.anholt@intel.com --=-CV7EhRbPOy4kFqtB74Ah 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) iD8DBQBHjQ8qHUdvYGzw6vcRAm70AJ0b+qeEYknMSPVCmOO29QPNTgE5GwCglkW7 dSYVuGPLJkya9l5wWSrsu/Y= =uu74 -----END PGP SIGNATURE----- --=-CV7EhRbPOy4kFqtB74Ah--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1200426794.2916.17.camel>