From owner-freebsd-questions@FreeBSD.ORG Sun May 18 18:27:51 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF2A71065676 for ; Sun, 18 May 2008 18:27:50 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr4.xs4all.nl (smtp-vbr4.xs4all.nl [194.109.24.24]) by mx1.freebsd.org (Postfix) with ESMTP id 816818FC14 for ; Sun, 18 May 2008 18:27:50 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr4.xs4all.nl (8.13.8/8.13.8) with ESMTP id m4IIRmF5021362 for ; Sun, 18 May 2008 20:27:48 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id BAC5BBA9E; Sun, 18 May 2008 20:27:47 +0200 (CEST) Date: Sun, 18 May 2008 20:27:47 +0200 From: Roland Smith To: freebsd-questions@freebsd.org Message-ID: <20080518182747.GA3807@slackbox.xs4all.nl> Mail-Followup-To: freebsd-questions@freebsd.org References: <20080517100521.GA98116@slackbox.xs4all.nl> <20080517142612.F27585@wojtek.tensor.gdynia.pl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DocE+STaALJfprDB" Content-Disposition: inline In-Reply-To: <20080517142612.F27585@wojtek.tensor.gdynia.pl> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.17 (2007-11-01) X-Virus-Scanned: by XS4ALL Virus Scanner Subject: Re: xf86-video-intel with G33 without agp? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 May 2008 18:27:51 -0000 --DocE+STaALJfprDB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, May 17, 2008 at 02:26:50PM +0200, Wojciech Puchar wrote: >> (EE) intel(0): Couldn't allocate video memory >>=20 >> According to intel(4) allocating memory is usually done with the agp(4) >> driver. This motherboard doesn't have agp, though. I've tried loading >=20 > it may have - internally. It turns out that it's not necessary to have an agp bus to use the agp(4) driver! It is mostly used to create the graphics aperture a.k.a GART. The device is even named /dev/agpgart.=20 I am guessing that on graphics cards with dedicated memory it is used to map that into the address space. With built-in graphics it seems to be used to "steal" RAM for use by the built-in chip. >> the agp, i915 and drm kernel modules, but that doesn't help. >=20 > is agp compiled in kernel and loaded when booting. it doesn't work right= =20 > when started after boot - at least didn't for me. It turned out that the PCI identifier for the G33 was commented out in /usr/src/sys/pci/agp_i810.c due to lack of testing. I've re-activated it, and /dev/agpgart is now created normally. =20 I also added the identifier for this chip to /usr/src/sys/dev/drm/drm_pciid= s.h With these changes, /dev/dri/card0 is also created, and I see the following in dmesg output: dmesg | grep drm drm0: on vgapci0 info: [drm] AGP at 0xe0000000 256MB info: [drm] Initialized i915 1.5.0 20060119 But starting X with the intel driver still produces errors (excerpt from Xorg.0.log): drmOpenDevice: node name is /dev/dri/card0 drmOpenDevice: open result is 9, (OK) drmOpenDevice: node name is /dev/dri/card0 drmOpenDevice: open result is 9, (OK) drmOpenByBusid: Searching for BusID pci:0000:00:02.0 drmOpenDevice: node name is /dev/dri/card0 drmOpenDevice: open result is 9, (OK) drmOpenByBusid: drmOpenMinor returns 9 drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0 (II) [drm] DRM interface version 1.2 (II) [drm] DRM open master succeeded. (II) intel(0): [drm] Using the DRM lock SAREA also for drawables. (II) intel(0): [drm] framebuffer mapped by ddx driver (II) intel(0): [drm] added 1 reserved context for kernel (II) intel(0): X context handle =3D 0x1 (II) intel(0): [drm] installed DRM signal handler (=3D=3D) intel(0): VideoRam: 262144 KB (**) intel(0): Framebuffer compression disabled (**) intel(0): Tiling enabled (=3D=3D) intel(0): Write-combining range (0xfe900000,0x80000) was already c= lear (=3D=3D) intel(0): Write-combining range (0xfe800000,0x40000) was already c= lear (II) intel(0): Attempting memory allocation with tiled buffers. (II) intel(0): Success. (II) intel(0): [drm] Registers =3D 0xfe900000 (II) intel(0): [drm] ring buffer =3D 0xe0000000 (II) intel(0): [drm] mapped front buffer at 0xe0400000, handle =3D 0xe04000= 00 (II) intel(0): [drm] mapped back buffer at 0xe1400000, handle =3D 0xe1400000 (II) intel(0): [drm] mapped depth buffer at 0xe1800000, handle =3D 0xe18000= 00 (II) intel(0): [drm] mapped classic textures at 0xe1c00000, handle =3D 0xe1= c00000 (II) intel(0): [drm] Initialized kernel agp heap manager, 33554432 (II) intel(0): [dri] visual configs initialized (II) intel(0): Page Flipping disabled (=3D=3D) intel(0): Write-combining range (0xfe900000,0x80000) was already c= lear (=3D=3D) intel(0): Write-combining range (0xfe800000,0x40000) was already c= lear (WW) intel(0): Failed to set write-combining range (0xe0000000,0x10000000) Hmm. 0xe0000000 is the base address, and 0x10000000 is 256 MB. Anybody care to guess why this fails? I guess this is the cause of the failure further on. (II) intel(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0, hwp->PIOOffset is 0x0= 000 (=3D=3D) intel(0): Write-combining range (0xa0000,0x10000) was already clear (II) EXA(0): Offscreen pixmap area of 12582912 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): [DRI] installation complete (II) intel(0): xf86BindGARTMemory: bind key 1 at 0x006ff000 (pgoffset 1791) (WW) intel(0): xf86BindGARTMemory: binding of gart memory with key 1 at offset 0x6ff000 failed (Invalid argument) Fatal server error: Couldn't bind memory for front buffer If there are any X gurus out there I would appreciate any assistance. I've been grepping through the xf86-video-intel-2.2.1 source, but it is hard to follow. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --DocE+STaALJfprDB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkgwdSMACgkQEnfvsMMhpyX/ygCdF0qrIe7cBIuZyvUe/oJ1lXE6 xxkAoJdCDz2ctGZPqK+wUv3u4b4vstUT =q8ss -----END PGP SIGNATURE----- --DocE+STaALJfprDB--