From owner-freebsd-x11@FreeBSD.ORG Sat Mar 21 15:06:35 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 74953106567D for ; Sat, 21 Mar 2009 15:06:35 +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 379098FC16 for ; Sat, 21 Mar 2009 15:06:35 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from [192.168.1.156] (adsl-19-214-182.bna.bellsouth.net [68.19.214.182]) (authenticated bits=0) by gizmo.2hip.net (8.14.3/8.14.3) with ESMTP id n2LF5Du9096647 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 21 Mar 2009 11:05:14 -0400 (EDT) (envelope-from rnoland@FreeBSD.org) From: Robert Noland To: Anonymous In-Reply-To: <86ljqzmhwy.fsf@gmail.com> References: <1237527331.1777.516.camel@balrog.2hip.net> <86d4cbflqc.fsf@gmail.com> <1237616346.1758.17.camel@balrog.2hip.net> <86mybf73jt.fsf@gmail.com> <1237620252.1758.21.camel@balrog.2hip.net> <86ljqzmhwy.fsf@gmail.com> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-4IHQlFp892Ah6K9EIMVn" Organization: FreeBSD Date: Sat, 21 Mar 2009 10:06:14 -0500 Message-Id: <1237647974.1724.1.camel@balrog.2hip.net> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 FreeBSD GNOME Team Port X-Spam-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00,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 Subject: Re: [PREVIEW] Nouveau on FreeBSD 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, 21 Mar 2009 15:06:35 -0000 --=-4IHQlFp892Ah6K9EIMVn Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sat, 2009-03-21 at 10:52 +0300, Anonymous wrote: > Robert Noland writes: >=20 > > On Sat, 2009-03-21 at 10:12 +0300, Anonymous wrote: > >> Robert Noland writes: > >>=20 > >> > On Sat, 2009-03-21 at 09:12 +0300, Anonymous wrote: > >> >> Robert Noland writes: > >> >> The module works fine but not very usable on my > >> >> 9600GT. One thing to note is that NoAccel works *slower* than witho= ut > >> >> nouveau.ko present at least on my box. > >> > > >> > That doesn't make any sense... If the module isn't loaded, or X isn= 't > >> > attached to it nothing is changed. > >>=20 > >> Yep, I heard same answer from nouveau devs a while ago. But smth in > >> xf86-video-nouveau works differently when NoAccel explicitly set in > >> xorg.conf and module is present. For instance, here is a diff between > >> w/o module and module+NoAccel > >>=20 > >> @@ -170,17 +170,18 @@ > >> (II) NOUVEAU(0): Primary V_BIOS segment is: 0xc000 > >> (=3D=3D) NOUVEAU(0): Write-combining range (0x0,0x1000) was already c= lear > >> drmOpenDevice: node name is /dev/dri/card0 > >> -drmOpenDevice: open result is -1, (No such file or directory) > >> -drmOpenDevice: open result is -1, (No such file or directory) > >> -drmOpenDevice: Open failed > >> +drmOpenDevice: open result is 8, (OK) > >> drmOpenDevice: node name is /dev/dri/card0 > >> -drmOpenDevice: open result is -1, (No such file or directory) > >> -drmOpenDevice: open result is -1, (No such file or directory) > >> -drmOpenDevice: Open failed > >> -[drm] failed to load kernel module "nouveau" > >> -(EE) [drm] drmOpen failed. > >> -(EE) NOUVEAU(0): [drm] error opening the drm > >> -(!!) NOUVEAU(0): Failing back to NoAccel mode > >> +drmOpenDevice: open result is 8, (OK) > >> +drmOpenByBusid: Searching for BusID pci:0000:01:00.0 > >> +drmOpenDevice: node name is /dev/dri/card0 > >> +drmOpenDevice: open result is 8, (OK) > >> +drmOpenByBusid: drmOpenMinor returns 8 > >> +drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0 > >> +(II) [drm] DRM interface version 1.2 > >> +(II) [drm] DRM open master succeeded. > >> +(II) NOUVEAU(0): [drm] nouveau interface version: 0.0.12 > >> +(--) NOUVEAU(0): [drm] kernel modesetting not available > >> (--) NOUVEAU(0): VESA-HACK: Console VGA mode is 0x3 > >> (II) NOUVEAU(0): Creating default Display subsection in Screen sectio= n > >> "Default Screen Section" for depth/fbbpp 24/32 > >> @@ -193,8 +194,10 @@ > >> (II) Module vgahw: vendor=3D"X.Org Foundation" > >> compiled for 1.6.99.1, module version =3D 0.1.0 > >> ABI class: X.Org Video Driver, version 5.0 > >> +(**) NOUVEAU(0): Option "NoAccel" "true" > >> (=3D=3D) NOUVEAU(0): Randr1.2 support enabled > >> (=3D=3D) NOUVEAU(0): Using HW cursor > >> +(**) NOUVEAU(0): Acceleration disabled > >> (--) NOUVEAU(0): Linear framebuffer at 0xE0000000 > >> (--) NOUVEAU(0): MMIO registers at 0xF6000000 > >> (II) NOUVEAU(0): Initial CRTC_OWNER is 0 > >> @@ -374,6 +377,9 @@ > >> [3] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B] > >> [4] -1 0 0x00000000 - 0x000000ff (0x100) IX[B] > >> (=3D=3D) NOUVEAU(0): Write-combining range (0xa0000,0x10000) was alre= ady clear > >> +(II) NOUVEAU(0): Allocated 128MiB VRAM for framebuffer + offscreen pi= xmaps, at offset 0x20000000 > >> +(II) NOUVEAU(0): AGPGART: 512MiB available > >> +(EE) NOUVEAU(0): Unable to allocate GART memory > >> (=3D=3D) NOUVEAU(0): Backing store disabled > >> (=3D=3D) NOUVEAU(0): Silken mouse enabled > >> (II) NOUVEAU(0): NVEnterVT is called. > >> @@ -464,7 +470,7 @@ > >> (**) Mouse0: (accel) acceleration profile 0 > >> (II) Mouse0: SetupAuto: hw.iftype is 5, hw.model is 0 > >> (II) Mouse0: SetupAuto: protocol is SysMouse > >> -(WW) fcntl(8, F_SETOWN): Inappropriate ioctl for device > >> +(WW) fcntl(9, F_SETOWN): Inappropriate ioctl for device > >> (**) Option "CoreKeyboard" > >> (**) Keyboard0: always reports core events > >> (**) Option "Protocol" "standard" > > > > Ok, so it is still loading the module and mucking with the card before > > deciding that it isn't usable... >=20 > In that log nouveau.ko was loaded beforehand. Though ddx will try to load= it anyway. >=20 > > You can always just remove /boot/kernel/nouveau.ko >=20 > It's kinda tedious doing so after each installkernel. I just commented ou= t > nouveau in sys/modules/drm/Makefile and build nouveau.ko when needed. >=20 > > > > Exactly which generation chip is that showing up as? >=20 > info: [drm] Detected an NV50 generation card (0x094100a1) >=20 > the card itself is 0622 >=20 > vgapci0@pci0:1:0:0: class=3D0x030000 card=3D0x34811458 chip=3D0x06221= 0de rev=3D0xa1 hdr=3D0x00 Ok, it should work with the next patch... I'll probably put it together in the next couple of days. robert. >=20 > > > > robert. > > > >> So, with module and NoAccel scrolling in xterm is awfully slow here > >> on 9600GT on > >>=20 > >> (II) NOUVEAU driver 0.0.10.20090318.3e7fa97 > >>=20 > >> and I'm unable to unload nouveau.ko. > >>=20 > >> > > >> > I have NV50 working now, with EXA and Xv. > >> > > >> > robert. --=20 Robert Noland FreeBSD --=-4IHQlFp892Ah6K9EIMVn 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) iEYEABECAAYFAknFAmYACgkQM4TrQ4qfRONRZACbBwMVQPgPLL/GL3y1Z9tvWi6v Z5oAni5Uh7vI57CttLjxuO5PPT3XGZ1Y =9ou4 -----END PGP SIGNATURE----- --=-4IHQlFp892Ah6K9EIMVn--