From owner-freebsd-stable@FreeBSD.ORG Wed Jan 16 18:42:59 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 61F6A16A421 for ; Wed, 16 Jan 2008 18:42:59 +0000 (UTC) (envelope-from eric@anholt.net) Received: from vonnegut.anholt.net (69-30-77-85.dq1sn.easystreet.com [69.30.77.85]) by mx1.freebsd.org (Postfix) with ESMTP id EBA9413C469 for ; Wed, 16 Jan 2008 18:42:58 +0000 (UTC) (envelope-from eric@anholt.net) Received: from vonnegut.anholt.net (localhost [127.0.0.1]) by vonnegut.anholt.net (8.14.2/8.14.1) with ESMTP id m0GIBKpu007472; Wed, 16 Jan 2008 10:11:20 -0800 (PST) (envelope-from eric@anholt.net) Received: (from anholt@localhost) by vonnegut.anholt.net (8.14.2/8.14.1/Submit) id m0GIBJCF007471; Wed, 16 Jan 2008 10:11:19 -0800 (PST) (envelope-from eric@anholt.net) X-Authentication-Warning: vonnegut.anholt.net: anholt set sender to eric@anholt.net using -f From: Eric Anholt To: "Daniel O'Connor" In-Reply-To: <200801161147.19807.doconnor@gsoft.com.au> References: <200801152012.56683.doconnor@gsoft.com.au> <1200426794.2916.17.camel@localhost> <200801161147.19807.doconnor@gsoft.com.au> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-bx9+UTJD6ejagDMbp/XQ" Date: Wed, 16 Jan 2008 10:11:18 -0800 Message-Id: <1200507078.1786.17.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 FreeBSD GNOME Team Port Cc: freebsd-stable@freebsd.org Subject: Re: Fwd: FreeBSD 6.3 and Intel G33 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jan 2008 18:42:59 -0000 --=-bx9+UTJD6ejagDMbp/XQ Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2008-01-16 at 11:47 +1030, Daniel O'Connor wrote: > On Wed, 16 Jan 2008, Eric Anholt wrote: > > 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. >=20 > OK.. Not sure what GTT is though :) Think page tables on your CPU, but for the graphics device's virtual addressing inside of the AGP aperture. > > 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. > With the ports xf86-video-intel I get.. > (=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 1 at 0x006ff000 (pgoffset 179= 1) > (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 > I tried to build your git repo of the driver but I am getting.. > gmake[3]: Entering directory `/local0/tmp/xf86-video-intel/src' > /usr/local/bin/bash ../libtool --tag=3DCC --mode=3Dcompile gcc -DHAVE_C= ONFIG_H -I. -I.. -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-= prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing= -D_THREAD_SAFE -I/usr/local/include/xorg -I/usr/local/include/pixman-1 -I/= usr/local/include -I/usr/local/include -I/usr/local/include/drm -I/usr/lo= cal/include/X11/dri -DI830_XV -DI830_USE_XAA -DI830_USE_EXA -g -O2 -MT i810= _driver.lo -MD -MP -MF .deps/i810_driver.Tpo -c -o i810_driver.lo i810_driv= er.c > gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wpointer-arith -Wstrict-prototypes -= Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-ali= asing -D_THREAD_SAFE -I/usr/local/include/xorg -I/usr/local/include/pixman-= 1 -I/usr/local/include -I/usr/local/include -I/usr/local/include/drm -I/usr= /local/include/X11/dri -DI830_XV -DI830_USE_XAA -DI830_USE_EXA -g -O2 -MT i= 810_driver.lo -MD -MP -MF .deps/i810_driver.Tpo -c i810_driver.c -fPIC -DP= IC -o .libs/i810_driver.o > i810_driver.c:456: error: `PACKAGE_VERSION_MAJOR' undeclared here (not in= a function) > i810_driver.c:456: error: initializer element is not constant > i810_driver.c:456: error: (near initialization for `intelVersRec.majorver= sion') > i810_driver.c:456: error: `PACKAGE_VERSION_MINOR' undeclared here (not in= a function) > i810_driver.c:456: error: initializer element is not constant > i810_driver.c:456: error: (near initialization for `intelVersRec.minorver= sion') > i810_driver.c:456: error: `PACKAGE_VERSION_PATCHLEVEL' undeclared here (n= ot in a function) > ... Your xorg-macros package is stale. > I modified config.h to add those #defines and the man Makefile (configure= is > fun!) and installed but now I get.. > (=3D=3D) intel(0): Write-combining range (0xa0000,0x10000) was already cl= ear > (II) EXA(0): Offscreen pixmap area of 30720000 bytes > (II) EXA(0): Driver registered support for the following operations: > (II) Solid > (II) Copy > (II) Composite (RENDER acceleration) > (=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 8 at 0x006ff000 (pgoffset 179= 1) > (WW) intel(0): xf86BindGARTMemory: binding of gart memory with key 8 > at offset 0x6ff000 failed (Invalid argument) >=20 > Fatal server error: > Couldn't bind memory for front buffer That's almost surely as a result of the stolen memory issue. > > 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. >=20 > OK. > I really only want the 2D driver so DPMS works and the screen saver can > turn the monitor off (although faster 2D would be good as well) DPMS should work with the VESA driver even, not to discourage you from the right solution. --=20 Eric Anholt anholt@FreeBSD.org eric@anholt.net eric.anholt@intel.com --=-bx9+UTJD6ejagDMbp/XQ 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) iD8DBQBHjkjGHUdvYGzw6vcRAoC4AKCVMFROT4dEHBwb4BlGmMXWbct4qwCeOeM/ kl5zmSq90nO5JphWfah9f+E= =efTe -----END PGP SIGNATURE----- --=-bx9+UTJD6ejagDMbp/XQ--