From owner-freebsd-current@FreeBSD.ORG Sun Mar 22 21:47:26 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EAF9C106564A; Sun, 22 Mar 2009 21:47:26 +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 ADC708FC12; Sun, 22 Mar 2009 21:47:26 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from [192.168.1.156] (adsl-1-207-58.bna.bellsouth.net [65.1.207.58]) (authenticated bits=0) by gizmo.2hip.net (8.14.3/8.14.3) with ESMTP id n2MLk4HY005848 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 22 Mar 2009 17:46:05 -0400 (EDT) (envelope-from rnoland@FreeBSD.org) From: Robert Noland To: Anonymous In-Reply-To: <86r60pp8c0.fsf@gmail.com> References: <1237680263.1938.10.camel@balrog.2hip.net> <86r60pp8c0.fsf@gmail.com> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-BwhPknEy78+kSyEpkk4U" Organization: FreeBSD Date: Sun, 22 Mar 2009 16:47:03 -0500 Message-Id: <1237758423.1687.34.camel@balrog.2hip.net> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 FreeBSD GNOME Team Port X-Spam-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_PBL, RCVD_IN_SORBS_DUL,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-current Subject: Re: [PREVIEW] Nouveau on FreeBSD (Take 2) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Mar 2009 21:47:27 -0000 --=-BwhPknEy78+kSyEpkk4U Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2009-03-23 at 00:15 +0300, Anonymous wrote: > Robert Noland writes: >=20 > > 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 NV50 class hardware you need to have a compositing manager running > > for Xv to work. That means xcompmgr, metacity with composite enabled, > > xfce (rumored to work as well, haven't tried). If your running Gnome > > with metacity, open gconf-editor and go to apps->metacity->general and > > check the composite box. > [...] > > > > http://people.freebsd.org/~rnoland/drm-nouveau-032109.patch > > > > robert. >=20 > Here is my Xorg.log - http://pastebin.com/m6fab6feb (Xserver is from git = master) > and kernel messages logged via syslog DRM_DEBUG - http://pastebin.com/m26= 3af8da > They are with successfull `xcompmgr -a' run >=20 > - Compared to previous patch now I get >=20 > @@ -237,6 +237,7 @@ > (II) NOUVEAU(0): nv50_output_detect is called. > (II) NOUVEAU(0): NV50ConnectorDDCDetect is called. > (II) NOUVEAU(0): I2C device "DVI-0:ddc2" registered at address 0xA0. > +(II) NOUVEAU(0): I2C device "DVI-0:DDC control interface" registered at = address 0x6E. > (II) NOUVEAU(0): Detected a Digital output on DVI-0 > (II) NOUVEAU(0): Found a suitable output, index 1 > (II) NOUVEAU(0): nv50_output_detect is called. > @@ -382,8 +383,8 @@ > [4] -1 0 0x00000000 - 0x000000ff (0x100) IX[B] > (=3D=3D) NOUVEAU(0): Write-combining range (0xa0000,0x10000) was already= clear > (II) NOUVEAU(0): Allocated 128MiB VRAM for framebuffer + offscreen pixma= ps, at offset 0x20000000 > -(II) NOUVEAU(0): AGPGART: 512MiB available > -(EE) NOUVEAU(0): Unable to allocate GART memory > +(II) NOUVEAU(0): AGPGART: 32MiB available > +(II) NOUVEAU(0): GART: Allocated 16MiB as a scratch buffer > (II) NOUVEAU(0): [drm] Using the DRM lock SAREA also for drawables. > (II) NOUVEAU(0): [drm] framebuffer handle =3D 0xe0000000 > (II) NOUVEAU(0): [drm] added 1 reserved context for kernel Ok, this is good... > - This error in Xorg.log is still present >=20 > (II) NOUVEAU(0): [DRI] installation complete > (EE) NOUVEAU(0): [dri] unable to reference front buffer: -19 >=20 > Should I ignore it? Let me switch back to the NV50 and look at that. > - Got these errors in dmesg >=20 > error: [drm:pid1424:drm_alloc_resource] *ERROR* Couldn't find resou= rce 0x2 This should be ok, it tries resource id 2, and if it can't find that it uses resource 3. It just means that resource 1 is a 64bit BAR. > and >=20 > info: [drm] PGRAPH_ERROR - nSource:info: [drm] PROTECTION_ERRORinfo= : [drm] DMA_R_PROTECTIONinfo: [drm] , nStatus:info: [drm]=20 > info: [drm] PGRAPH_ERROR - Ch 2/2 Class 0x8297 Mthd 0x15e0 Data 0x0= 0000000:0x00000000 > error: [drm:pid11:nv50_pgraph_irq_handler] *ERROR* magic set 1: > error: [drm:pid11:nv50_pgraph_irq_handler] *ERROR* 0x00408900: 0x8= 0000000 > error: [drm:pid11:nv50_pgraph_irq_handler] *ERROR* 0x00408904: 0xf= db76b7b >=20 > Should I ignore them? This I need to look at, it may be because I haven't fully implemented fencing. I thought it was ok like it was. I also just fixed an issue with allocating scatter / gather pages in -CURRENT, which may be related. > - Scrolling (shift+pgup/pgdn) in xterm is *slower* with DRM than > without it but still faster than with NoAccel. I'm using xterm with > TTF font (DejaVu Sans Mono). It's yet more noticeable when scrolling > in less(1)/screen(1) when redrawing affects whole screen not half. > Besides, there is more flickering with highly updating cli apps when > using DRM. However, launching xcompmgr fixes this sluggishness. This may be related to compositing with git server. Text rendering is causing considerable load on the Xserver with compositing enabled. The composite manager is only needed for Xv, can you try without it. > - XVideo works fine Ok, cool. > - EXAPixmaps uses DRI2 and works fine. I wasn't able to test with xcompmg= r. >=20 > - Launching `xcompmgr -a' is tricky. Most of the time it just leaves > screen in unusable state, it's not possible to switch to console or > move pointer. I want to help debug this one. Here are logs: > http://pastebin.com/m1ca3fc2f > http://pastebin.com/m579d358e I'll have to look at this, but I was able to enable/disable it ok, iirc. robert. --=20 Robert Noland FreeBSD --=-BwhPknEy78+kSyEpkk4U 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) iEYEABECAAYFAknGsdcACgkQM4TrQ4qfROPRMgCdEhuOOSFCFgjW1J6dX1SqP967 CmcAn1DpHMCtl/KO1EzokNWioS4ZZjhs =wRo4 -----END PGP SIGNATURE----- --=-BwhPknEy78+kSyEpkk4U--