From owner-freebsd-x11@FreeBSD.ORG Sat Sep 27 14:03:48 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 052FF1065686 for ; Sat, 27 Sep 2008 14:03:48 +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 CD4618FC14 for ; Sat, 27 Sep 2008 14:03:47 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from [192.168.2.31] (c-71-56-39-94.hsd1.ga.comcast.net [71.56.39.94]) (authenticated bits=0) by gizmo.2hip.net (8.14.3/8.14.3) with ESMTP id m8RE3H3E001061 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 27 Sep 2008 10:03:17 -0400 (EDT) (envelope-from rnoland@FreeBSD.org) From: Robert Noland To: Alex In-Reply-To: <48DD9ECD.40309@ahhyes.net> References: <48DD9ECD.40309@ahhyes.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-354Y1r65EgqVqpyY6Am+" Organization: FreeBSD Date: Sat, 27 Sep 2008 10:03:11 -0400 Message-Id: <1222524191.1662.3.camel@wombat.2hip.net> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 FreeBSD GNOME Team Port X-Spam-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00, MIME_QP_LONG_LINE,RDNS_DYNAMIC 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, Szilveszter Adam 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: Sat, 27 Sep 2008 14:03:48 -0000 --=-354Y1r65EgqVqpyY6Am+ Content-Type: multipart/mixed; boundary="=-XZBAXjfdbZRnKx99qMEk" --=-XZBAXjfdbZRnKx99qMEk Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sat, 2008-09-27 at 12:47 +1000, Alex wrote: > Hi Guys, >=20 > I seem to be having issues getting DRI to work on my Laptop (Dell=20 > Inspiron 510M, the unit is quite dated now so, hardware support should=20 > be quite good, but it isn't. >=20 > Firstly, some information about my system: >=20 > [root@laptop /usr/home/alex]# uname -a > FreeBSD laptop.xor.net 7.1-BETA FreeBSD 7.1-BETA #0: Fri Sep 26 23:44:00=20 > EST 2008 alex@laptop.xor.net:/usr/obj/usr/src/sys/custom i386 >=20 > [root@laptop /usr/home/alex]# dmesg |grep drm > drm0: on vgapci0 > info: [drm] AGP at 0xf0000000 128MB > info: [drm] Initialized i915 1.5.0 20060119 > drm1: on vgapci1 > info: [drm] AGP at 0xf0000000 128MB > info: [drm] Initialized i915 1.5.0 20060119 drm shouldn't be attaching to the second head. The 852/5 chips have the same pci id on both heads, which none of the other chips do. Please try the attached patch to sys/dev/drm/i915_drv.c and see if that improves things. robert. > In my xorg logs, I see the following information: >=20 > (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 > (**) intel(0): Framebuffer compression enabled > (**) intel(0): Tiling enabled > (=3D=3D) intel(0): Write-combining range (0xfaf80000,0x80000) was already= clear > (=3D=3D) intel(0): VideoRam: 131072 KB > (II) intel(0): Attempting memory allocation with tiled buffers. > (WW) intel(0): xf86AllocateGARTMemory: allocation of 10 pages failed > (Cannot allocate memory) > (WW) intel(0): xf86AllocateGARTMemory: allocation of 4 pages failed > (Cannot allocate memory) > (WW) intel(0): Disabling HW cursor because the cursor memory allocation=20 > failed. > (II) intel(0): Tiled allocation successful. > (--) intel(0): DRI is disabled because it needs HW cursor, 2D accel and=20 > AGPGART. >=20 >=20 > Now, if I add an extra line in my xorg.conf: >=20 > Option "Tiling" "False" >=20 > The memory allocation succeeds and DRI is working, but with a=20 > performance hit?!? DRI should work out of the box right? I tried=20 > updating the video driver to xf86-video-intel-2.4.2 (was 2.4.0), this=20 > made no difference. >=20 > Is this an xorg related issue with freebsd or a problem with the agpgart=20 > driver? I recall having this issue with 7.0-RELEASE on this machine too=20 > some time ago.. I gave up previously because of the lack of=20 > help/interest from the community with the issue. >=20 > Any help/suggestions would be appreciated. >=20 > Thanks! > 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" --=-XZBAXjfdbZRnKx99qMEk Content-Disposition: attachment; filename=i855-no-attach-sec.patch Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name=i855-no-attach-sec.patch; charset=UTF-8 SW5kZXg6IGk5MTVfZHJ2LmMNCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0NCi0tLSBpOTE1X2Rydi5jCShyZXZpc2lvbiAx ODM0MDYpDQorKysgaTkxNV9kcnYuYwkod29ya2luZyBjb3B5KQ0KQEAgLTg1LDYgKzg1LDkgQEAN CiB7DQogCWRybV9kZXZpY2VfdCAqZGV2ID0gZGV2aWNlX2dldF9zb2Z0YyhuYmRldik7DQogDQor CWlmIChkZXZpY2VfZ2V0X3VuaXQobmJkZXYpKQ0KKwkJcmV0dXJuIDA7DQorDQogCWJ6ZXJvKGRl diwgc2l6ZW9mKGRybV9kZXZpY2VfdCkpOw0KIAlpOTE1X2NvbmZpZ3VyZShkZXYpOw0KIAlyZXR1 cm4gZHJtX2F0dGFjaChuYmRldiwgaTkxNV9wY2lpZGxpc3QpOw0K --=-XZBAXjfdbZRnKx99qMEk-- --=-354Y1r65EgqVqpyY6Am+ 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) iEYEABECAAYFAkjePR8ACgkQM4TrQ4qfROOWLACbBFMIrkTmjHoflz1DawfmugyA GNQAnA/T0pzP+SqW4H2OiaeiJow11VIw =wV1X -----END PGP SIGNATURE----- --=-354Y1r65EgqVqpyY6Am+--