From owner-freebsd-x11@FreeBSD.ORG Sun Mar 22 21:16:40 2009 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 B18841065696; Sun, 22 Mar 2009 21:16:40 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-fx0-f167.google.com (mail-fx0-f167.google.com [209.85.220.167]) by mx1.freebsd.org (Postfix) with ESMTP id B18678FC3E; Sun, 22 Mar 2009 21:16:39 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: by fxm11 with SMTP id 11so1455624fxm.43 for ; Sun, 22 Mar 2009 14:16:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:message-id:user-agent:mime-version:content-type; bh=LXA90bUIzYwtI/6ouXkZwjnBC5wiGF1WR1CH8Id/sEg=; b=vRNBmoJWEP7rkJspTl6/WIgxhhTGPmmOe9dUWH94bvMhUPUVEyzv8A9y9o7qNcDtnY 9oknqWV2NhsUHMap0McdjlotodhbShOEjZBzBt6dGMIZv65e+ieWa1OyoVDnAD+f6vv9 q3pdCjFhACGuoW6D5Fq8ambNe7wzpsMf8/D5s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:message-id:user-agent :mime-version:content-type; b=clN/1qanAmqA7k2Qwq0jJXsSJ8aasTY4Eu85gVyxQsq9sqBHDMLwmhfgOzNflqas3z GEiC5TJXy0QYm7CDpqBwiTqH1C3kKW6kc2vkLKvTPCrxgib6w8/Uo0t/DaI613XTxAuW 9N9yS9Eodlhd7+3Z5Tm/e8aqUkKWLJ4Lg87oY= Received: by 10.103.228.19 with SMTP id f19mr2751153mur.32.1237756598582; Sun, 22 Mar 2009 14:16:38 -0700 (PDT) Received: from localhost (95-24-174-59.broadband.corbina.ru [95.24.174.59]) by mx.google.com with ESMTPS id w5sm8810156mue.3.2009.03.22.14.16.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 22 Mar 2009 14:16:37 -0700 (PDT) From: Anonymous To: Robert Noland References: <1237680263.1938.10.camel@balrog.2hip.net> Date: Mon, 23 Mar 2009 00:15:59 +0300 Message-ID: <86r60pp8c0.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-x11 , freebsd-current Subject: Re: [PREVIEW] Nouveau on FreeBSD (Take 2) 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: Sun, 22 Mar 2009 21:16:42 -0000 Robert Noland writes: > 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. 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/m263af8da They are with successfull `xcompmgr -a' run - Compared to previous patch now I get @@ -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] (==) NOUVEAU(0): Write-combining range (0xa0000,0x10000) was already clear (II) NOUVEAU(0): Allocated 128MiB VRAM for framebuffer + offscreen pixmaps, 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 = 0xe0000000 (II) NOUVEAU(0): [drm] added 1 reserved context for kernel - This error in Xorg.log is still present (II) NOUVEAU(0): [DRI] installation complete (EE) NOUVEAU(0): [dri] unable to reference front buffer: -19 Should I ignore it? - Got these errors in dmesg error: [drm:pid1424:drm_alloc_resource] *ERROR* Couldn't find resource 0x2 and info: [drm] PGRAPH_ERROR - nSource:info: [drm] PROTECTION_ERRORinfo: [drm] DMA_R_PROTECTIONinfo: [drm] , nStatus:info: [drm] info: [drm] PGRAPH_ERROR - Ch 2/2 Class 0x8297 Mthd 0x15e0 Data 0x00000000:0x00000000 error: [drm:pid11:nv50_pgraph_irq_handler] *ERROR* magic set 1: error: [drm:pid11:nv50_pgraph_irq_handler] *ERROR* 0x00408900: 0x80000000 error: [drm:pid11:nv50_pgraph_irq_handler] *ERROR* 0x00408904: 0xfdb76b7b Should I ignore them? - 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. - XVideo works fine - EXAPixmaps uses DRI2 and works fine. I wasn't able to test with xcompmgr. - 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