From owner-freebsd-x11@FreeBSD.ORG Fri Oct 3 17:21:36 2008 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2CEFF1065689 for ; Fri, 3 Oct 2008 17:21:36 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from gizmo.2hip.net (gizmo.2hip.net [64.74.207.195]) by mx1.freebsd.org (Postfix) with ESMTP id 017288FC18 for ; Fri, 3 Oct 2008 17:21:35 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from [192.168.166.46] ([68.0.14.34]) (authenticated bits=0) by gizmo.2hip.net (8.14.3/8.14.3) with ESMTP id m93HLEit049599 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 3 Oct 2008 13:21:15 -0400 (EDT) (envelope-from rnoland@FreeBSD.org) From: Robert Noland To: Alex In-Reply-To: <48E58D05.7010003@ahhyes.net> References: <48E4CC06.1070802@ahhyes.net> <1222960850.12046.6.camel@squirrel.corp.cox.com> <48E4E95B.3020708@ahhyes.net> <1222965932.12046.14.camel@squirrel.corp.cox.com> <48E58D05.7010003@ahhyes.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-ye7xGYi7LnlnswYsI9ND" Organization: FreeBSD Date: Fri, 03 Oct 2008 13:21:09 -0400 Message-Id: <1223054469.55363.16.camel@squirrel.corp.cox.com> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 FreeBSD GNOME Team Port X-Spam-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00, MIME_QP_LONG_LINE,RDNS_NONE autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on gizmo.2hip.net Cc: freebsd-x11@freebsd.org Subject: Re: DRI not working X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Oct 2008 17:21:36 -0000 --=-ye7xGYi7LnlnswYsI9ND Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2008-10-03 at 13:09 +1000, Alex wrote: > Robert Noland wrote: > > Ok, I found a RELENG_7 test box. It does apply and build cleanly. > > > > robert. > > > > =20 >=20 > Hi Robert, >=20 > Thank you for the patch. The patch applied cleanly and I was able to=20 > rebuild cleanly as well. >=20 > Unfortunately I am seeing the same symptoms as Szilveszter. DRM is no=20 > longer attaching to both heads, which is good. So perhaps the remainder=20 > of the issue is with the intel driver? >=20 > From dmesg: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > vgapci0: port 0xc000-0xc007 mem=20 > 0xf0000000-0xf7ffffff,0xfaf80000-0xfaffffff irq 11 at device 2.0 on pci0 > agp0: on vgapci0 > agp0: detected 892k stolen memory > agp0: aperture size is 128M > drm0: on vgapci0 > info: [drm] AGP at 0xf0000000 128MB > info: [drm] Initialized i915 1.5.0 20060119 > vgapci1: mem=20 > 0xe8000000-0xefffffff,0xfaf00000-0xfaf7ffff at device 2.1 on pci0 > pci0: at device 29.0 (no driver attached) >=20 > From Xorg logs: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > (II) intel(0): I830CheckAvailableMemory: 964608 kB available > drmOpenDevice: node name is /dev/dri/card0 > drmOpenDevice: open result is 8, (OK) > drmOpenDevice: node name is /dev/dri/card0 > drmOpenDevice: open result is 8, (OK) =20 > drmOpenByBusid: Searching for BusID pci:0000:00:02.0 =20 > drmOpenDevice: node name is /dev/dri/card0 =20 > drmOpenDevice: open result is 8, (OK) =20 > drmOpenByBusid: drmOpenMinor returns 8 =20 > drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0 =20 > (II) [drm] DRM interface version 1.2 =20 > (II) [drm] DRM open master succeeded. =20 > (II) intel(0): [drm] Using the DRM lock SAREA also for drawables. > (II) intel(0): [drm] framebuffer mapped by ddx driver =20 > (II) intel(0): [drm] added 1 reserved context for kernel =20 > (II) intel(0): X context handle =3D 0x1 =20 > (II) intel(0): [drm] installed DRM signal handler =20 > (**) intel(0): Framebuffer compression=20 > enabled = =20 >=20 > (**) intel(0): Tiling=20 > enabled = =20 >=20 > (=3D=3D) intel(0): Write-combining range (0xfaf80000,0x80000) was already= =20 > clear =20 > (=3D=3D) intel(0): VideoRam: 131072=20 > KB = =20 >=20 > (II) intel(0): Attempting memory allocation with tiled=20 > buffers. = =20 >=20 > (WW) intel(0): xf86AllocateGARTMemory: allocation of 10 pages=20 > failed = =20 >=20 > (Cannot allocate=20 > memory) = =20 >=20 > (WW) intel(0): xf86AllocateGARTMemory: allocation of 4 pages=20 > failed = =20 >=20 > (Cannot allocate=20 > memory) = =20 Ok, I'm not entirely sure which component is causing this issue... To start chasing it, here is what I need one or both of you to try. Boot with X disabled, then: kldload i915 sysctl hw.dri.0.debug=3D1 startx and send me the logs (should be in /var/log/messages) with the debugging info. We need to figure out why the memory allocations are failing... Hopefully this will point us in the right direction, though I don't believe that drm is at fault. robert. > (WW) intel(0): Disabling HW cursor because the cursor memory allocation=20 > failed. =20 > (II) intel(0): Tiled allocation=20 > successful. = =20 >=20 > (--) intel(0): DRI is disabled because it needs HW cursor, 2D accel and=20 > AGPGART. >=20 > Let us know if you discover anything else. I really appreciate your time=20 > spent on this. >=20 > Thanks again! > Alex >=20 > _______________________________________________ > freebsd-x11@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-x11 > To unsubscribe, send any mail to "freebsd-x11-unsubscribe@freebsd.org" --=-ye7xGYi7LnlnswYsI9ND 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) iEYEABECAAYFAkjmVIUACgkQM4TrQ4qfROMhxACeL9bC9EItAEtjKhGA0tl3JZ2K E/AAnRXO/cazravEXzLsd/CogEHsKtUI =XmXC -----END PGP SIGNATURE----- --=-ye7xGYi7LnlnswYsI9ND--