DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD General

NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 8th May 2016
darktrym's Avatar
darktrym darktrym is offline
standard-bearer
 
Join Date: Feb 2011
Location: Düsseldorf
Posts: 106
Default Nouveau on NetBSD

With the new DRM stack came Nouveau. For a very long time you could only build this driver but the kernel crash when you get access to the hardware. Now there are some positive feedbacks on the mailinglist.

Is there a list what architectures are supported? And from supported models which i can use 3d, suspend etc? Are the Gallium drivers in a good shape?
Is there an overview like FreeBSDs wiki page that identify supported hardware and features?

I think they forked Linux DRM subsystem 3.14 with some parts of later versions(i.e. 3.16).
Reply With Quote
  #2   (View Single Post)  
Old 10th May 2016
catbsd catbsd is offline
New User
 
Join Date: May 2016
Posts: 2
Default

Hi,

I'm using nVidia GTX 770 with nouveau with NetBSD-current, where it is enabled by default.
You can grab it built from here: http://nyftp.netbsd.org/pub/NetBSD-daily/HEAD/ - there is no need to build your own.

> Is there a list what architectures are supported?

Currently enabled for amd64 and i386.

> And from supported models which i can use 3d, suspend etc?

3D seems to work, but I have not used it extensively - only played a game for some hours.

Not sure about suspend with nouveau specifically.

> Is there an overview like FreeBSDs wiki page that identify supported hardware and features?

Should work for everything up to GTX 700 series, and some of 700 series too.
However that's a purely theoretical list - there may be bugs with some devices.
if I had to buy a device, I will go over what people have successfully used.

Recent problem fixes (last few months):
- Base Xorg now includes nouveau driver, so pkgsrc Xorg is not needed
- Most devices panic at boot (fixed in April 15 2016)
- Occasional panic every few days in all DRM drivers

As a result of these problem fixes (especially the second one), nouveau has been re-enabled by default (Apr 20) in NetBSD-current, and will likely be included in NetBSD-7.1.

Remaining issues for me:
- inability to see console with nouveau driver enabled. this is possibly related to using analog output, which is not very common today.
- need a patch to see any output, it will be committed soon so I will not share it. most devices do not experience this problem.

In the absence of nouveau support, old base Xorg with vesa driver on recent nVidia devices appears very slow.
pkgsrc Xorg (latest version of Xorg) is OK for use, but experiences the same slowness when closed, so shutdown is extremely slow.

Note that drivers can be easily disabled in the boot loader, drop to boot prompt and type: userconf disable nouveau*, then boot.

Last edited by catbsd; 10th May 2016 at 02:42 AM.
Reply With Quote
  #3   (View Single Post)  
Old 12th May 2016
darktrym's Avatar
darktrym darktrym is offline
standard-bearer
 
Join Date: Feb 2011
Location: Düsseldorf
Posts: 106
Default

I already know the links for the daily builds, i using these since 4.00beta2. But NetBSD often lacking on information what hardware is supported. If someone ask me, i can say nothing more than read the man page, source code or try it out. I also try to trace the changes on support on wireless drivers on wikipedia.
And here we have a overhauled subsystem, currently only NetBSD has Nouveau in BSD-Family. When i look on the status matrix of the nouveau project i can see the progress and supporting of the most hardware. Dragonfly should have the newest version of DRI2. I hope NetBSD can faster update his wrapper layer for the Linux DRM subsystem.
Reply With Quote
  #4   (View Single Post)  
Old 1 Week Ago
BSD_user BSD_user is offline
New User
 
Join Date: Oct 2018
Posts: 1
Default

I'm sorry, but I also am interested in Nouveau on NetBSD.

I bought a new PC and installed NetBSD 8.0 (GENERIC). However the launch of X fails.I watched this link and installed packages below.
/usr/pkgsrc/x11/modular-xorg-server
/usr/pkgsrc/meta-pkgs/modular-xorg-apps
/usr/pkgsrc/meta-pkgs/modular-xorg-fonts
/usr/pkgsrc/x11/xf86-input-keyboard
/usr/pkgsrc/x11/xf86-input-mouse
/usr/pkgsrc/x11/xf86-video-nouveau
And I write the line "X11_TYPE=modular" on /etc/mk.conf, but the launch of X fails. The version of nouveau is 1.0.15. The log in "/var/log/Xorg.0.log" is below.
Quote:
[ 331.488]
X.Org X Server 1.20.1
X Protocol Version 11, Revision 0
[ 331.488] Build Operating System: NetBSD-8.0-x86_64 The NetBSD Foundation
[ 331.488] Current Operating System: NetBSD localhost 8.0 NetBSD 8.0 (GENERIC) #0: Tue Jul 17 14:59:51 UTC 2018 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
[ 331.489] Build Date: 16 October 2018 02:20:30AM
[ 331.489]
[ 331.489] Current version of pixman: 0.34.0
[ 331.489] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 331.489] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 331.489] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Oct 24 20:48:38 2018
[ 331.489] (++) Using config file: "/root/xorg.conf.new.01"
[ 331.489] (==) ServerLayout "X.org Configured"
[ 331.489] (**) |-->Screen "Screen0" (0)
[ 331.489] (**) | |-->Monitor "Monitor0"
[ 331.489] (**) | |-->Device "Card0"
[ 331.489] (**) |-->Input Device "Mouse0"
[ 331.489] (**) |-->Input Device "Keyboard0"
[ 331.489] (==) Not automatically adding devices
[ 331.489] (==) Not automatically enabling devices
[ 331.489] (==) Not automatically adding GPU devices
[ 331.489] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 331.489] (WW) The directory "/usr/pkg/share/fonts/X11/OTF" does not exist.
[ 331.489] Entry deleted from font path.
[ 331.489] (WW) `fonts.dir' not found (or not valid) in "/usr/pkg/share/fonts/X11/cyrillic".
[ 331.489] Entry deleted from font path.
[ 331.489] (Run 'mkfontdir' on "/usr/pkg/share/fonts/X11/cyrillic").
[ 331.489] (WW) The directory "/usr/pkg/lib/X11/fonts/misc" does not exist.
[ 331.489] Entry deleted from font path.
[ 331.489] (WW) The directory "/usr/pkg/lib/X11/fonts/TTF" does not exist.
[ 331.489] Entry deleted from font path.
[ 331.489] (WW) The directory "/usr/pkg/lib/X11/fonts/OTF" does not exist.
[ 331.489] Entry deleted from font path.
[ 331.489] (WW) The directory "/usr/pkg/lib/X11/fonts/Type1" does not exist.
[ 331.489] Entry deleted from font path.
[ 331.489] (WW) The directory "/usr/pkg/lib/X11/fonts/100dpi" does not exist.
[ 331.489] Entry deleted from font path.
[ 331.489] (WW) The directory "/usr/pkg/lib/X11/fonts/75dpi" does not exist.
[ 331.489] Entry deleted from font path.
[ 331.489] (WW) The directory "/usr/pkg/lib/X11/fonts/cyrillic" does not exist.
[ 331.489] Entry deleted from font path.
[ 331.489] (WW) The directory "/usr/pkg/share/fonts/X11/OTF" does not exist.
[ 331.489] Entry deleted from font path.
[ 331.489] (WW) `fonts.dir' not found (or not valid) in "/usr/pkg/share/fonts/X11/cyrillic".
[ 331.489] Entry deleted from font path.
[ 331.489] (Run 'mkfontdir' on "/usr/pkg/share/fonts/X11/cyrillic").
[ 331.489] (WW) The directory "/usr/pkg/lib/X11/fonts/misc" does not exist.
[ 331.489] Entry deleted from font path.
[ 331.489] (WW) The directory "/usr/pkg/lib/X11/fonts/TTF" does not exist.
[ 331.489] Entry deleted from font path.
[ 331.489] (WW) The directory "/usr/pkg/lib/X11/fonts/OTF" does not exist.
[ 331.489] Entry deleted from font path.
[ 331.489] (WW) The directory "/usr/pkg/lib/X11/fonts/Type1" does not exist.
[ 331.489] Entry deleted from font path.
[ 331.489] (WW) The directory "/usr/pkg/lib/X11/fonts/100dpi" does not exist.
[ 331.489] Entry deleted from font path.
[ 331.489] (WW) The directory "/usr/pkg/lib/X11/fonts/75dpi" does not exist.
[ 331.489] Entry deleted from font path.
[ 331.489] (WW) The directory "/usr/pkg/lib/X11/fonts/cyrillic" does not exist.
[ 331.489] Entry deleted from font path.
[ 331.489] (**) FontPath set to:
/usr/pkg/share/fonts/X11/misc,
/usr/pkg/share/fonts/X11/TTF,
/usr/pkg/share/fonts/X11/Type1,
/usr/pkg/share/fonts/X11/100dpi,
/usr/pkg/share/fonts/X11/75dpi,
/usr/pkg/share/fonts/X11/misc,
/usr/pkg/share/fonts/X11/TTF,
/usr/pkg/share/fonts/X11/Type1,
/usr/pkg/share/fonts/X11/100dpi,
/usr/pkg/share/fonts/X11/75dpi
[ 331.489] (**) ModulePath set to "/usr/pkg/lib/xorg/modules"
[ 331.489] (II) Loader magic: 0x7f75a0
[ 331.489] (II) Module ABI versions:
[ 331.489] X.Org ANSI C Emulation: 0.4
[ 331.489] X.Org Video Driver: 24.0
[ 331.489] X.Org XInput driver : 24.1
[ 331.489] X.Org Server Extension : 10.0
[ 331.495] (--) PCI:*(1@1:0:0) 10de:1c20:1b0a:22be rev 161, Mem @ 0xde000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[ 331.495] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[ 331.495] (II) LoadModule: "glx"
[ 331.495] (II) Loading /usr/pkg/lib/xorg/modules/extensions/libglx.so
[ 331.506] (II) Module glx: vendor="X.Org Foundation"
[ 331.506] compiled for 1.20.1, module version = 1.0.0
[ 331.506] ABI class: X.Org Server Extension, version 10.0
[ 331.507] (II) LoadModule: "nouveau"
[ 331.507] (II) Loading /usr/pkg/lib/xorg/modules/drivers/nouveau_drv.so
[ 331.507] (II) Module nouveau: vendor="X.Org Foundation"
[ 331.507] compiled for 1.20.1, module version = 1.0.15
[ 331.507] Module class: X.Org Video Driver
[ 331.507] ABI class: X.Org Video Driver, version 24.0
[ 331.507] (II) LoadModule: "mouse"
[ 331.507] (II) Loading /usr/pkg/lib/xorg/modules/input/mouse_drv.so
[ 331.508] (II) Module mouse: vendor="X.Org Foundation"
[ 331.508] compiled for 1.20.1, module version = 1.9.3
[ 331.508] Module class: X.Org XInput Driver
[ 331.508] ABI class: X.Org XInput driver, version 24.1
[ 331.508] (II) LoadModule: "kbd"
[ 331.508] (II) Loading /usr/pkg/lib/xorg/modules/input/kbd_drv.so
[ 331.508] (II) Module kbd: vendor="X.Org Foundation"
[ 331.508] compiled for 1.20.1, module version = 1.9.0
[ 331.508] Module class: X.Org XInput Driver
[ 331.508] ABI class: X.Org XInput driver, version 24.1
[ 331.508] (II) NOUVEAU driver Date: Fri Apr 21 14:41:17 2017 -0400
[ 331.508] (II) NOUVEAU driver for NVIDIA chipset families :
[ 331.508] RIVA TNT (NV04)
[ 331.508] RIVA TNT2 (NV05)
[ 331.508] GeForce 256 (NV10)
[ 331.508] GeForce 2 (NV11, NV15)
[ 331.508] GeForce 4MX (NV17, NV18)
[ 331.508] GeForce 3 (NV20)
[ 331.508] GeForce 4Ti (NV25, NV28)
[ 331.508] GeForce FX (NV3x)
[ 331.508] GeForce 6 (NV4x)
[ 331.508] GeForce 7 (G7x)
[ 331.508] GeForce 8 (G8x)
[ 331.508] GeForce GTX 200 (NVA0)
[ 331.508] GeForce GTX 400 (NVC0)
[ 331.508] (--) Using wscons driver on /dev/ttyE4 in pcvt compatibility mode (version 3.32)
[ 331.545] (EE) No devices detected.
[ 331.545] (EE)
Fatal server error:
[ 331.545] (EE) no screens found(EE)
[ 331.545] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 331.545] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 331.545] (EE)
[ 331.574] (EE) Server terminated with error (1). Closing log file.
I can launch X on the same PC with OpenSUSE Leap 15.0 and nouveau of the version 1.0.15. If someone has any suggestion, please teach me.

The specification of my PC is below.
CPU: Intel Core i7-8700T
memory: DDR4-2666 (PC4-21300) DDR4 SO-DIMM 8GB
graphics: NVIDIA GeForce GTX 1060
display: ProLite E2008HDS (iiyama)
Reply With Quote
  #5   (View Single Post)  
Old 6 Days Ago
shep shep is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,171
Default

The code for nouveau(4) appeared in NetBSD 7 but was not enabled in the default kernel.
https://nouveau.freedesktop.org/wiki/NetBSD/

My quick scan of the NetBSD 8 release announcement did not show that it was enabled in the default kernel - I suspect you will need to build a kernel with nouveau enabled.
Reply With Quote
  #6   (View Single Post)  
Old 1 Day Ago
Sensucht94's Avatar
Sensucht94 Sensucht94 is offline
Real Name: Paolo Vincenzo Olivo
Port Guard
 
Join Date: Oct 2017
Location: Rome
Posts: 32
Default

Quote:
Originally Posted by shep View Post
The code for nouveau(4) appeared in NetBSD 7 but was not enabled in the default kernel.
https://nouveau.freedesktop.org/wiki/NetBSD/

My quick scan of the NetBSD 8 release announcement did not show that it was enabled in the default kernel - I suspect you will need to build a kernel with nouveau enabled.
Sorry for stepping in between, but that's untrue; nouveau is enabled by default in 8.0 and support covers up to 9xx series. I run it on Nvidia NVA8 G105M, and I pen friend of mine has it running shamelessly on Nvidia Geforce 760. It supports high res framebuffer console, dual monitor, and allows gaming (tested 0ad, supertuxkart, ioquake3 and others) with good performance. HEAD's KMS/DRM driver version is currently is from Linux 4.4, so I wonder if it's support Pascal/10xx series too.



% glxinfo | grep -i opengl
Code:
OpenGL renderer string: Gallium 0.4 on NVA8
OpenGL version string: 2.1 Mesa 10.3.5
OpenGL shading language version string: 1.30
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 10.3.5
__________________
Be the change you want to see in the World
Reply With Quote
  #7   (View Single Post)  
Old 1 Day Ago
Sensucht94's Avatar
Sensucht94 Sensucht94 is offline
Real Name: Paolo Vincenzo Olivo
Port Guard
 
Join Date: Oct 2017
Location: Rome
Posts: 32
Default

Given the log you provided, It doesn't look like Xorg is failing to load NOUVEAU, it's possible the problem lays somewhere else. What's in your ~/.xinitrc? Also, I'm by no means a modular-xorg expert as I'm used to extract x* binary sets too and just rely on the X version found in base

EDIT: If you have high-resolution framebuffer console on wscons tty0 (do you?), then nouveau was currently loaded at boot and should not be the problem, providing xf86-video-nouveau is installed; if you have low-res raw-grained wscons, then there's high chance your GPU is still not supported by 8.0 (what does /var/log/messages say in regard of nouveau?), but you may have better luck with -current branch.

Optimus is not supported yet
__________________
Be the change you want to see in the World

Last edited by Sensucht94; 1 Day Ago at 02:04 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
NetBSD NetBSD gets nouveau w/ hardware OpenGL Scarletts News 0 31st October 2015 05:05 PM
Compiling a kernel with nouveau support darktrym NetBSD Package System (pkgsrc) 1 26th June 2011 12:14 AM


All times are GMT. The time now is 04:47 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick