Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Sep 2008 10:03:11 -0400
From:      Robert Noland <rnoland@FreeBSD.org>
To:        Alex <mailinglist@ahhyes.net>
Cc:        freebsd-x11@freebsd.org, Szilveszter Adam <sziszi@bsd.hu>
Subject:   Re: DRI not working
Message-ID:  <1222524191.1662.3.camel@wombat.2hip.net>
In-Reply-To: <48DD9ECD.40309@ahhyes.net>
References:  <48DD9ECD.40309@ahhyes.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-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: <Intel i852GM/i855GM GMCH> on vgapci0
> info: [drm] AGP at 0xf0000000 128MB
> info: [drm] Initialized i915 1.5.0 20060119
> drm1: <Intel i852GM/i855GM GMCH> 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+--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1222524191.1662.3.camel>