Date: Mon, 23 Mar 2009 04:01:54 -0500 From: Robert Noland <rnoland@FreeBSD.org> To: wsk <wsk@gddsn.org.cn> Cc: stable@freebsd.org, x11@freebsd.org, current@freebsd.org Subject: Re: [PREVIEW] Nouveau on FreeBSD (Take 2) Message-ID: <1237798914.2110.24.camel@balrog.2hip.net> In-Reply-To: <49C6E5C6.60306@gddsn.org.cn> References: <49B88449.3000403@gddsn.org.cn> <49B8AC04.10508@gddsn.org.cn> <49C6E5C6.60306@gddsn.org.cn>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-OVCYc2OkNPdv9TLOOPRY Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2009-03-23 at 09:28 +0800, wsk wrote: > >Ok, this patch should work on NV50 chips also. >=20 > >What you get is EXA and Xv. >=20 > >You still need: >=20 > >A recent -CURRENT or -STABLE. >=20 > >git master of libdrm and xf86-video-nouveau. >=20 > >This patch. >=20 > >Things I've figured out since the last patch... >=20 > >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. >=20 > >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 some > >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. >=20 > >http://people.freebsd.org/~rnoland/drm-nouveau-032109.patch <http://peop= le.freebsd.org/%7Ernoland/drm-nouveau-032109.patch> >=20 > >robert. >=20 > get the following errors and exitThis is a pre-release version of the X s= erver from The X.Org Foundation. > It is not supported in any way. > Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/. > Select the "xorg" product for bugs you find in this release. > Before reporting bugs in pre-release versions please check the > latest version in the X.Org Foundation git repository. > See http://wiki.x.org/wiki/GitPage for git access instructions. >=20 > X.Org X Server 1.5.99.902 (1.6.0 RC 2) > Release Date: 2009-1-30 > X Protocol Version 11, Revision 0 > Build Operating System: FreeBSD 7.1-STABLE amd64 > Current Operating System: FreeBSD lp.gddsn.org.cn 7.2-PRERELEASE FreeBSD = 7.2-PRE > RELEASE #2: Sun Mar 22 19:44:23 CST 2009 wsk@lp.gddsn.org.cn:/usr/obj= /usr/sr > c/sys/WSK amd64 > Build Date: 06 February 2009 04:22:44PM >=20 > Before reporting problems, check http://wiki.x.org > to make sure that you have the latest version. > Markers: (--) probed, (**) from config file, (=3D=3D) default setting, > (++) from command line, (!!) notice, (II) informational, > (WW) warning, (EE) error, (NI) not implemented, (??) unknown. > (=3D=3D) Log file: "/var/log/Xorg.0.log", Time: Mon Mar 23 09:14:03 2009 > ing config file: "xorg.conf1" > error: [drm:pid30722:drm_alloc_resource] *ERROR* Couldn't find resource 0= x2 > error: [drm:pid30722:drm_alloc_resource] *ERROR* Couldn't find resource 0= x2 > error: [drm:pid30722:drm_alloc_resource] *ERROR* Couldn't find resource 0= x2 > vgapci0: 0x10000000 bytes of rid 0x14 res 3 failed (0, 0xffffffffffffffff= ). > error: [drm:pid30722:drm_alloc_resource] *ERROR* Couldn't find resource 0= x1 > vgapci0: 0x10000000 bytes of rid 0x14 res 3 failed (0, 0xffffffffffffffff= ). > error: [drm:pid30722:drm_alloc_resource] *ERROR* Couldn't find resource 0= x1 > drm0: [ITHREAD] > info: [drm] Allocating FIFO number 1 > info: [drm] nouveau_fifo_alloc: initialised FIFO 1 > info: [drm] PFIFO_DMA_PUSHER - Ch 1 > (EE) NOUVEAU(0): 1296: No valid FB address in PCI config space > (EE) Screen(s) found, but none have a usable configuration. >=20 > Fatal server error: > no screens found >=20 > Please consult the The X.Org Foundation support > at http://wiki.x.org > for help. > Please also check the log file at "/var/log/Xorg.0.log" for additional in= formati > on. >=20 > info: [drm] nouveau_fifo_free: freeing fifo 1 > error: [drm:pid30722:nouveau_fifo_free] *ERROR* Failed to idle channel 1 = before > destroy.Prepare for strangeness.. > vgapci0: 0x10000000 bytes of rid 0x14 res 3 failed (0, 0xffffffffffffffff= ). > error: [drm:pid30722:drm_alloc_resource] *ERROR* Couldn't find resource 0= x1 >=20 > what can i do ? >=20 >=20 >=20 >=20 > plain text document attachment (Xorg.0.log) > This is a pre-release version of the X server from The X.Org Foundation. > It is not supported in any way. > Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/. > Select the "xorg" product for bugs you find in this release. > Before reporting bugs in pre-release versions please check the > latest version in the X.Org Foundation git repository. > See http://wiki.x.org/wiki/GitPage for git access instructions. >=20 > X.Org X Server 1.5.99.902 (1.6.0 RC 2) > Release Date: 2009-1-30 > X Protocol Version 11, Revision 0 > Build Operating System: FreeBSD 7.1-STABLE amd64=20 > Current Operating System: FreeBSD lp.gddsn.org.cn 7.2-PRERELEASE FreeBSD = 7.2-PRERELEASE #2: Sun Mar 22 19:44:23 CST 2009 wsk@lp.gddsn.org.cn:/us= r/obj/usr/src/sys/WSK amd64 > Build Date: 06 February 2009 04:22:44PM > =20 > Before reporting problems, check http://wiki.x.org > to make sure that you have the latest version. > Markers: (--) probed, (**) from config file, (=3D=3D) default setting, > (++) from command line, (!!) notice, (II) informational, > (WW) warning, (EE) error, (NI) not implemented, (??) unknown. > (=3D=3D) Log file: "/var/log/Xorg.0.log", Time: Mon Mar 23 09:14:03 2009 > (++) Using config file: "xorg.conf1" > (=3D=3D) No Layout section. Using the first Screen section. > (=3D=3D) No screen section available. Using defaults. > (**) |-->Screen "Default Screen Section" (0) > (**) | |-->Monitor "<default monitor>" > (=3D=3D) No device specified for screen "Default Screen Section". > Using the first device section listed. > (**) | |-->Device "Card0" > (=3D=3D) No monitor specified for screen "Default Screen Section". > Using a default monitor configuration. > (=3D=3D) Automatically adding devices > (=3D=3D) Automatically enabling devices > (=3D=3D) No FontPath specified. Using compiled-in default. > (=3D=3D) FontPath set to: > built-ins > (=3D=3D) ModulePath set to "/usr/local/lib/xorg/modules" > (II) Cannot locate a core pointer device. > (II) Cannot locate a core keyboard device. > (II) The server relies on HAL to provide the list of input devices. > If no devices become available, reconfigure HAL or disable AllowEmptyInp= ut. > (II) Loader magic: 0xb20 > (II) Module ABI versions: > X.Org ANSI C Emulation: 0.4 > X.Org Video Driver: 5.0 > X.Org XInput driver : 4.0 > X.Org Server Extension : 2.0 > (II) Loader running on freebsd > (--) Using syscons driver with X support (version 2.0) > (--) using VT number 9 >=20 > (--) PCI:*(0@1:0:0) nVidia Corporation Quadro NVS 140M rev 161, Mem @ 0xf= d000000/16777216, 0x00000000/268435456, 0xfa000000/33554432, I/O @ 0x0000df= 00/128, BIOS @ 0x????????/65536 Ok, thats a new one... > (II) System resource ranges: > [0] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B] > [1] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B] > [2] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B] > [3] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B] > [4] -1 0 0x00000000 - 0x000000ff (0x100) IX[B] > (II) LoadModule: "extmod" > (II) Loading /usr/local/lib/xorg/modules/extensions//libextmod.so > (II) Module extmod: vendor=3D"X.Org Foundation" > compiled for 1.5.99.902, module version =3D 1.0.0 > Module class: X.Org Server Extension > ABI class: X.Org Server Extension, version 2.0 > (II) Loading extension MIT-SCREEN-SAVER > (II) Loading extension XFree86-VidModeExtension > (II) Loading extension XFree86-DGA > (II) Loading extension DPMS > (II) Loading extension XVideo > (II) Loading extension XVideo-MotionCompensation > (II) Loading extension X-Resource > (II) LoadModule: "dbe" > (II) Loading /usr/local/lib/xorg/modules/extensions//libdbe.so > (II) Module dbe: vendor=3D"X.Org Foundation" > compiled for 1.5.99.902, module version =3D 1.0.0 > Module class: X.Org Server Extension > ABI class: X.Org Server Extension, version 2.0 > (II) Loading extension DOUBLE-BUFFER > (II) LoadModule: "glx" > (II) Loading /usr/local/lib/xorg/modules/extensions//libglx.so > (II) Module glx: vendor=3D"X.Org Foundation" > compiled for 1.5.99.902, module version =3D 1.0.0 > ABI class: X.Org Server Extension, version 2.0 > (=3D=3D) AIGLX disabled > (=3D=3D) Exporting typical set of GLX visuals > (II) Loading extension GLX > (II) LoadModule: "record" > (II) Loading /usr/local/lib/xorg/modules/extensions//librecord.so > (II) Module record: vendor=3D"X.Org Foundation" > compiled for 1.5.99.902, module version =3D 1.13.0 > Module class: X.Org Server Extension > ABI class: X.Org Server Extension, version 2.0 > (II) Loading extension RECORD > (II) LoadModule: "dri" > (II) Loading /usr/local/lib/xorg/modules/extensions//libdri.so > (II) Module dri: vendor=3D"X.Org Foundation" > compiled for 1.5.99.902, module version =3D 1.0.0 > ABI class: X.Org Server Extension, version 2.0 > (II) Loading extension XFree86-DRI > (II) LoadModule: "nouveau" > (II) Loading /usr/local/lib/xorg/modules/drivers//nouveau_drv.so > (II) Module nouveau: vendor=3D"X.Org Foundation" > compiled for 1.5.99.902, module version =3D 0.0.10 > Module class: X.Org Video Driver > ABI class: X.Org Video Driver, version 5.0 > (II) NOUVEAU driver Date: Wed Mar 18 09:36:33 2009 +1000 > (II) NOUVEAU driver for NVIDIA chipset families : > RIVA TNT (NV04) > RIVA TNT2 (NV05) > GeForce 256 (NV10) > GeForce 2 (NV11, NV15) > GeForce 4MX (NV17, NV18) > GeForce 3 (NV20) > GeForce 4Ti (NV25, NV28) > GeForce FX (NV3x) > GeForce 6 (NV4x) > GeForce 7 (G7x) > GeForce 8 (G8x) > (II) Primary Device is: PCI 01@00:00:0 > (II) resource ranges after probing: > [0] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B] > [1] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B] > [2] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B] > [3] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B] > [4] -1 0 0x00000000 - 0x000000ff (0x100) IX[B] > (--) NOUVEAU(0): Chipset: "NVIDIA NV86" Hrm, NV86... I'll have to ask around about that. Meanwhile can you send me a pciconf -lvb which should at least show us the BAR configuration. Ok, my sources are telling me that this should work and that it is an NV50, or at least should work the same... Also, just to be safe, please rebuild/reinstall devel/libpciaccess. I'm not sure if it may be trashing the BARs somehow. robert. > (II) Loading sub module "int10" > (II) LoadModule: "int10" > (II) Loading /usr/local/lib/xorg/modules//libint10.so > (II) Module int10: vendor=3D"X.Org Foundation" > compiled for 1.5.99.902, module version =3D 1.0.0 > ABI class: X.Org Video Driver, version 5.0 > (II) NOUVEAU(0): Initializing int10 > (=3D=3D) NOUVEAU(0): Write-combining range (0xa0000,0x20000) was already = clear > (=3D=3D) NOUVEAU(0): Write-combining range (0xc0000,0x40000) was already = clear > (II) NOUVEAU(0): Primary V_BIOS segment is: 0xc000 > (=3D=3D) NOUVEAU(0): Write-combining range (0x0,0x1000) was already clear > drmOpenDevice: node name is /dev/dri/card0 > drmOpenDevice: open result is 10, (OK) > drmOpenDevice: node name is /dev/dri/card0 > drmOpenDevice: open result is 10, (OK) > drmOpenByBusid: Searching for BusID pci:0000:01:00.0 > drmOpenDevice: node name is /dev/dri/card0 > drmOpenDevice: open result is 10, (OK) > drmOpenByBusid: drmOpenMinor returns 10 > 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 section > "Default Screen Section" for depth/fbbpp 24/32 > (=3D=3D) NOUVEAU(0): Depth 24, (--) framebuffer bpp 32 > (=3D=3D) NOUVEAU(0): RGB weight 888 > (=3D=3D) NOUVEAU(0): Default visual is TrueColor > (II) Loading sub module "vgahw" > (II) LoadModule: "vgahw" > (II) Loading /usr/local/lib/xorg/modules//libvgahw.so > (II) Module vgahw: vendor=3D"X.Org Foundation" > compiled for 1.5.99.902, module version =3D 0.1.0 > ABI class: X.Org Video Driver, version 5.0 > (=3D=3D) NOUVEAU(0): Randr1.2 support enabled > (=3D=3D) NOUVEAU(0): Using HW cursor > (EE) NOUVEAU(0): 1296: No valid FB address in PCI config space > (=3D=3D) NOUVEAU(0): Write-combining range (0x0,0x1000) was already clear > (II) UnloadModule: "nouveau" > (II) UnloadModule: "vgahw" > (II) Unloading /usr/local/lib/xorg/modules//libvgahw.so > (II) UnloadModule: "int10" > (II) Unloading /usr/local/lib/xorg/modules//libint10.so > (EE) Screen(s) found, but none have a usable configuration. >=20 > Fatal server error: > no screens found >=20 > Please consult the The X.Org Foundation support=20 > at http://wiki.x.org > for help.=20 > Please also check the log file at "/var/log/Xorg.0.log" for additional in= formation. >=20 --=20 Robert Noland <rnoland@FreeBSD.org> FreeBSD --=-OVCYc2OkNPdv9TLOOPRY 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) iEYEABECAAYFAknHUAIACgkQM4TrQ4qfRON1qwCdHUuEDFHrZVXFoBZ6WOfn0cBu KX0An2ff+9ibGo3ATe/XevKpXVTVOgh0 =zyWo -----END PGP SIGNATURE----- --=-OVCYc2OkNPdv9TLOOPRY--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1237798914.2110.24.camel>