Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Mar 2009 21:36:33 -0500
From:      Robert Noland <rnoland@FreeBSD.org>
To:        Gustau Perez <gperez@entel.upc.edu>
Cc:        freebsd-x11@freebsd.org
Subject:   Re: [PREVIEW] Nouveau on FreeBSD (Take 2)
Message-ID:  <1237948593.1829.12.camel@balrog.2hip.net>
In-Reply-To: <49C95C7E.7090003@entel.upc.edu>
References:  <1237680263.1938.10.camel@balrog.2hip.net> <49C95C7E.7090003@entel.upc.edu>

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

--=-SOCKWIdxhruE17hRvGxD
Content-Type: multipart/mixed; boundary="=-SKff8dvpZEqE16LW3h4q"


--=-SKff8dvpZEqE16LW3h4q
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Tue, 2009-03-24 at 23:19 +0100, Gustau Perez wrote:
> Robert Noland wrote:
> > Ok, this patch should work on NV50 chips also.
> >
> > What you get is EXA and Xv.
> >
> > You still need:
> >
> > A recent -CURRENT or -STABLE.
> >
> > git master of libdrm and xf86-video-nouveau.
> >
> > This patch.
> >
> > Things I've figured out since the last patch...
> >
> > On NV40 class hardware, you don't need the composite manager.  In fact
> > (at least with Xserver 1.6 which I'm running now), if a composite
> > manager is enabled, I'm seeing high cpu utilization from Xorg under som=
e
> > circumstances.  I don't think this is a drm issue, but still an issue.
> > For me, if I start a video using mplayer in an xterm, cpu is fine as
> > long as that xterm is the foreground window.  If it is not the
> > foreground window, even if it isn't obscured I see the cpu utilization.
> > Disabling the composite manager makes everything fine.
> >
> > http://people.freebsd.org/~rnoland/drm-nouveau-032109.patch
> >
> >  =20
>   Hi.
>=20
>   using git version of both libdrm and xf86-video-nouveau I've been able=20
> to start gnome. My card is a NVS 135M. Seems quite stable (i'm using it=20
> right now).The only thing is that switching from one application to=20
> another felt a llitle slow.
>=20
>      Using composition in metacity seems to work to some extend. I've=20
> experienced some problems (not always, sometimes it works and sometimes=20
> it doesn't) with vlc about bad window request (if I remember well).=20
> Avant-window-navigator (I've ported it and still testing) tries to start=20
> as it detects composition support, but can't proceed.
>=20
>    Do you want my xorg log ?

Sure.

>    What knobs do I have to use in xorg.conf to allow composition to work=20
> ? Will compiz work ?

I'll attach the config that I'm using...  I haven't had any trouble
using metacity compositing on the nv50.  If you don't have a composite
manager running, you will get the Bad message from Xv.

I haven't tried compiz, but it is not likely that it will work yet.  You
do have direct "software rendering", but I haven't had success getting
compiz to run with it before.  It would be slow if it did work, until we
can get hardware 3d going.

robert.

>    Greets,
>=20
>    Gus
>=20
>=20
--=20
Robert Noland <rnoland@FreeBSD.org>
FreeBSD

--=-SKff8dvpZEqE16LW3h4q
Content-Disposition: attachment; filename="xorg.conf.nouveau-8800gts"
Content-Transfer-Encoding: base64
Content-Type: text/plain; name="xorg.conf.nouveau-8800gts"; charset="us-ascii"

U2VjdGlvbiAiU2VydmVyTGF5b3V0Ig0KCUlkZW50aWZpZXIgICAgICJYLm9yZyBDb25maWd1cmVk
Ig0KCVNjcmVlbiAgICAgIDAgICJTY3JlZW4wIiAwIDANCglJbnB1dERldmljZSAgICAiTW91c2Uw
IiAiQ29yZVBvaW50ZXIiDQoJSW5wdXREZXZpY2UgICAgIktleWJvYXJkMCIgIkNvcmVLZXlib2Fy
ZCINCglPcHRpb24gICAgICAgICAiQUlHTFgiDQoJT3B0aW9uICAgICAgICAgIkdseFZpc3VhbHMi
ICJhbGwiDQpFbmRTZWN0aW9uDQoNClNlY3Rpb24gIkZpbGVzIg0KCU1vZHVsZVBhdGggICAiL3Vz
ci9sb2NhbC9saWIveG9yZy9tb2R1bGVzIg0KCUZvbnRQYXRoICAgICAiL3Vzci9sb2NhbC9saWIv
WDExL2ZvbnRzL21pc2MvIg0KCUZvbnRQYXRoICAgICAiL3Vzci9sb2NhbC9saWIvWDExL2ZvbnRz
L1RURi8iDQoJRm9udFBhdGggICAgICIvdXNyL2xvY2FsL2xpYi9YMTEvZm9udHMvT1RGIg0KCUZv
bnRQYXRoICAgICAiL3Vzci9sb2Nhb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AjIyMgVmFsdWVzOiA8
aT46IGludGVnZXIsIDxmPjogZmxvYXQsIDxib29sPjogIlRydWUiLyJGYWxzZSIsDQogICAgICAg
ICMjIyA8c3RyaW5nPjogIlN0cmluZyIsIDxmcmVxPjogIjxmPiBIei9rSHovTUh6Ig0KICAgICAg
ICAjIyMgW2FyZ106IGFyZyBvcHRpb25hbA0KICAgICAgICAjT3B0aW9uICAgICAiU1djdXJzb3Ii
ICAgICAgICAgICAJIyBbPGJvb2w+XQ0KICAgICAgICAjT3B0aW9uICAgICAiSFdjdXJzb3IiICAg
ICAgICAgICAJIyBbPGJvb2w+XQ0KICAgICAgICAjT3B0aW9uICAgICAiTm9BY2NlbCIgICAgICAg
ICAgICAJIyBbPGJvb2w+XQ0KICAgICAgICAjT3B0aW9uICAgICAiU2hhZG93RkIiICAgICAgICAg
ICAJIyBbPGJvb2w+XQ0KICAgICAgICAjT3B0aW9uICAgICAiVXNlRkJEZXYiICAgICAgICAgICAJ
IyBbPGJvb2w+XQ0KICAgICAgICAjT3B0aW9uICAgICAiUm90YXRlIiAgICAgICAgICAgICAJIyBb
PHN0cj5dDQogICAgICAgICNPcHRpb24gICAgICJWaWRlb0tleSIgICAgICAgICAgIAkjIDxpPg0K
ICAgICAgICAjT3B0aW9uICAgICAiRmxhdFBhbmVsIiAgICAgICAgICAJIyBbPGJvb2w+XQ0KICAg
ICAgICAjT3B0aW9uICAgICAiRlBEaXRoZXIiICAgICAgICAgICAJIyBbPGJvb2w+XQ0KICAgICAg
ICAjT3B0aW9uICAgICAiQ3J0Y051bWJlciIgICAgICAgICAJIyA8aT4NCiAgICAgICAgI09wdGlv
biAgICAgIkZQU2NhbGUiICAgICAgICAgICAgCSMgWzxib29sPl0NCiAgICAgICAgI09wdGlvbiAg
ICAgIkZQVHdlYWsiICAgICAgICAgICAgCSMgPGk+DQogICAgICAgICNPcHRpb24gICAgICJEdWFs
SGVhZCIgICAgICAgICAgIAkjIFs8Ym9vbD5dDQoJSWRlbnRpZmll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dxhruE17hRvGxD
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (FreeBSD)

iEYEABECAAYFAknJmLEACgkQM4TrQ4qfROMFFACgg2ZV6fHn+x3Z3Fkmo1YLBXBa
l/MAn2Dw28SFKREbf5AWdpa4I+Y1yzpo
=8J+E
-----END PGP SIGNATURE-----

--=-SOCKWIdxhruE17hRvGxD--




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