Submitted Successfully!
To reward your contribution, here is a gift for you: A free trial for our video production service.
Thank you for your contribution! You can also upload a video entry or images related to this topic.
Version Summary Created by Modification Content Size Created at Operation
1 handwiki -- 1358 2022-11-15 01:39:38

Video Upload Options

Do you have a full video?

Confirm

Are you sure to Delete?
Cite
If you have any further questions, please contact Encyclopedia Editorial Office.
HandWiki. Nouveau. Encyclopedia. Available online: https://encyclopedia.pub/entry/34509 (accessed on 27 July 2024).
HandWiki. Nouveau. Encyclopedia. Available at: https://encyclopedia.pub/entry/34509. Accessed July 27, 2024.
HandWiki. "Nouveau" Encyclopedia, https://encyclopedia.pub/entry/34509 (accessed July 27, 2024).
HandWiki. (2022, November 15). Nouveau. In Encyclopedia. https://encyclopedia.pub/entry/34509
HandWiki. "Nouveau." Encyclopedia. Web. 15 November, 2022.
Nouveau
Edit

nouveau (/nuːˈvoʊ/) is a free and open-source graphics device driver for Nvidia video cards and the Tegra family of SoCs written by independent software engineers, with minor help from Nvidia employees. The project's goal is to create an open source driver by reverse engineering Nvidia's proprietary Linux drivers. It is managed by the X.Org Foundation, hosted by freedesktop.org, and is distributed as part of Mesa 3D. The project was initially based on the 2D-only free and open-source "nv" driver, which Red Hat developer Matthew Garrett and others claim had been obfuscated. nouveau is licensed under the MIT License. The name of the project comes from the French word nouveau, meaning new. It was suggested by the original author, Stéphane Marchesin, after his IRC client's French-language autocorrect system offered the word "nouveau" as a correction for the letters "nv".

device driver open source nvidia

1. Software Architecture

nouveau has been rewritten as a Gallium3D-style graphics device driver. https://handwiki.org/wiki/index.php?curid=2003930

nouveau is a Gallium3D-style device driver and works on top of the Direct Rendering Infrastructure (DRI). It is composed of the two Kernel-components DRM & KMS driver, and the user-space components libDRM, and Mesa 3D.

nouveau intends to support all Nvidia microarchitectures: Tesla, Fermi, Kepler, Maxwell, in Version 1.0.13 support of Pascal and in Version 1.0.15 support of Volta. Latest version 1.0.16 supports Turing.

1.1. Re-Clocking

For technical reasons Nvidia GPUs all boot with a low frequency (called "clock"). The device driver has to set a higher frequency after booting. Due to lack of documentation of GPU, nouveau lacked this capability from the beginning on. The result was/is a major loss in performance, as proven by benchmarks which compared the performance of Nvidia proprietary device driver with nouveau's.[1] In June 2014, a breakthrough was finally achieved and initial re-clocking support was added to nouveau.[2][3][4] With Version 1.0.14 Pascal support is at the level of Maxwell 2.[5] With version 1.0.15 there is a patch for GTX 970 with 4GB and accelerations of Pascal to Maxwell 2 Level.

1.2. Tools

A screenshot of REnouveau in action (REnouveau is the blue window in the top left corner). https://handwiki.org/wiki/index.php?curid=1136031

Unlike AMD, Nvidia provides no documentation about their GPUs. The developers of nouveau have been forced to use clean-room reverse engineering to obtain the necessary data to enable them to write nouveau. The project uses several custom-made programs for its reverse engineering, such as MmioTrace (Memory Mapped I/O Trace),[6] REnouveau and Valgrind MMT.[7]

REnouveau

REnouveau (Reverse Engineering for nouveau)[8] is a program licensed under the GNU GPL (using SDL) that collects data for most of nouveau's reverse engineering work. Users with the proprietary NVIDIA drivers can help the development of nouveau by providing information about the hardware of their NVIDIA cards through REnouveau. REnouveau works by copying the current graphics card MMIO register space, drawing some graphics and taking another copy of the MMIO, and outputting the difference to a text file. It runs about six dozen different tests which the user of the computer then makes a tar.bz2 archive of and submits by e-mail, after which it is automatically transferred to the project's FTP servers for the developers to analyze. Currently REnouveau has been mostly superseded by Valgrind-MMT.

2. Supported Interfaces

Only the kernel has direct access to the hardware, this includes the graphics card. End-user software accesses it through various interfaces, that are specific to the task. nouveau is being written as a Gallium3D-type of device driver, which means that it shares large amounts of code with other Gallium3D drivers. Most of this shared core is being mainlined in Mesa 3D and then distributed as such by the various Linux distributions.

2.1. Rendering APIs

Mesa 3D and the drivers it includes, supports multiple rendering interfaces, all designed to give user-space programs, such as e.g. video games or CAD software, access to the correspondent SIP blocks.

Direct3D

A free and open-source implementation of Direct3D version 9 has been mainlined into Mesa 3D. It can be used with nouveau; however, since any software that is using Direct3D is programmed for Windows this software can only be used together with Wine on Linux.

OpenGL

Data and instructions are sent to the GPU for processing. The rendered results are not sent back to main memory. Instead they are stored in a framebuffer. The content of the framebuffer is subsequently sent to the display controller. https://handwiki.org/wiki/index.php?curid=2070353

The rendering interface OpenGL is being developed by the Khronos Group. Implementations of this API are part of Nvidia's drivers and AMD's proprietary "Catalyst". Another implementation is being written by free software enthusiasts, such as Brian Paul or Intel and coordinated in Mesa 3D. Being a Gallium3D-type of driver, nouveau needs only minor adaptations to work with this implementation.

Vulkan

(As of August 2022), Nouveau does not support Vulkan API,

2.2. Video Acceleration

Mesa 3D supports multiple interfaces, all designed to give user-space programs, such as e.g. GStreamer or HandBrake, access to the correspondent SIP blocks. It is also possible to use the IC designed for rendering calculations for this purpose, though this approach consumes much more electrical power compared to utilizing the PureVideo SIP block.

nouveau supports PureVideo and provides access to it through VDPAU and partly through XvMC.[9]

nouveau does not support Nvidia NVENC.

2.3. Computing APIs

OpenCL

In Mesa GalliumCompute is also the main project for Nvidia, but only AMD part is near beta for OpenCL 1.0, 1.1, and 1.2.[10]

CUDA

nouveau does not support CUDA.

With the project Coriander, conversion of CUDA Code in OpenCL 1.2 is possible.[11] CUDA support is therefore possible with full OpenCL 1.2 support in GalliumCompute.

2.4. Nvidia FALCON

Around the year 2006 Nvidia introduced FALCON (FAst Logic CONtroller) to their GPUs. At the 4th RISC-V Workshop in July 2016 Nvidia employees introduced their plans to replace FALCON with a new proprietary custom design based on the RISC-V instruction set.[12]

3. History

Left: classic-style graphics device driver; Right: Gallium3D-style graphics device driver. Both types share a lot of free and open-source code. https://handwiki.org/wiki/index.php?curid=2036595

nouveau was started in 2005 by Stéphane Marchesin as a series of patches upon the "nv" driver,[13] and officially announced in February 2006 at a FOSDEM event.[14] The first live demo of nouveau was at Linux.conf.au 2007.[14] In 2010 nouveau was accepted in the 2.6.33 version of Linux kernel as an experimental driver.[13][15] On 26 March 2012, the nouveau driver was marked as stable and promoted from the staging area of Linux 3.4.[16][17] nouveau gained a major internal architecture overhaul in Linux 3.7.[17]

nouveau originally used the Direct Rendering Infrastructure (DRI) of Mesa 3D for rendering 3D computer graphics, which allows to accelerate 3D drawing using the graphics processing unit (GPU) directly from the 3D application; but in February 2008 the work on DRI support ceased and moved on to the new Gallium3D.[18][19]

On 23 September 2013,[20] Nvidia publicly announced that they would release some documentation about their GPUs with the intent to address areas that impact the out-of-the-box usability of NVIDIA GPUs with nouveau.

As of 31 January 2014, Nvidia's Alexandre Courbot committed an extensive patch set which add initial support for the GK20A (Tegra K1) to nouveau.[21]

As of 9 July 2016, Red Hat employee Ben Skeggs committed a patch which adds support for the Pascal-based GP104 chip found on GeForce GTX 1070 and GeForce GTX 1080-branded graphics cards to the Linux kernel.[22]

Status of 2016 and Future work were introduced in XDC2016.[23] Status of new efforts in OpenCL are shown on FOSDEM.[24]

In 2019 NVidia made some documentation about their Kepler, Maxwell, Pascal and Volta chipsets available.[25][26]

4. Adoption

Illustration of the Linux graphics stack: DRM, KMS driver, & libDRM, Mesa 3D. Display servers are a component of the windowing system and not required for playing video games. https://handwiki.org/wiki/index.php?curid=2035589

The nouveau driver and its 3D counterpart in Mesa have been used as the default open-source driver for Nvidia cards in many Linux distributions, including Fedora 11,[27] Ubuntu 10.04,[28][29] and Debian.

In June 2014, Codethink reported to run Wayland-based Weston compositor with Linux kernel 3.15, making use of EGL and a "100% open-source graphics driver stack" on a Tegra K1.[30]

In October 2016, NetBSD added experimental nouveau support in NetBSD 7.[31]

References

  1. "Nouveau vs. NVIDIA proprietary Linux vs. NVIDIA Windows 8.1". Phoronix. 2013-10-31. https://www.phoronix.com/scan.php?page=article&item=nouveau_nvidia_win81&num=1. 
  2. "Nouveau Re-Clocking Details Discussed Further". Phoronix. 2014-05-17. https://www.phoronix.com/scan.php?page=news_item&px=MTY5Mjg. 
  3. "Nouveau Re-Clocking Is Way Faster". Phoronix. 2014-06-20. https://www.phoronix.com/scan.php?page=article&item=linux316_nouveau_clocks&num=1. 
  4. "Nouveau PowerManagement documentation". freedesktop.org. https://nouveau.freedesktop.org/wiki/PowerManagement/. 
  5. "nouveau/xf86-video-nouveau - Nouveau Xorg driver for NVIDIA chips". cgit.freedesktop.org. https://cgit.freedesktop.org/nouveau/xf86-video-nouveau/commit/?id=e472b47d15634a864c8c981ed588d882aceaf26b. 
  6. "MmioTrace (Memory Mapped I/O Trace)". nouveau Wiki. https://nouveau.freedesktop.org/wiki/MmioTrace. 
  7. "Valgrind-mmt". nouveau Wiki. https://nouveau.freedesktop.org/wiki/Valgrind-mmt. 
  8. "REnouveau (Reverse Engineering for nouveau)". nouveau Wiki. https://nouveau.freedesktop.org/wiki/REnouveau. 
  9. "Nouveau Video Acceleration". freedesktop.org. https://nouveau.freedesktop.org/wiki/VideoAcceleration/. 
  10. "GalliumCompute". Dri.freedesktop.org. https://dri.freedesktop.org/wiki/GalliumCompute/. 
  11. "Coriander". 15 November 2021. https://github.com/hughperkins/coriander. 
  12. "Nvidia RISC-V story". July 2016. https://riscv.org/wp-content/uploads/2016/07/Tue1100_Nvidia_RISCV_Story_V2.pdf. 
  13. Peres, Martin; Stach, Lucas. "Nouveau Recap, on-going and future work". http://phd.mupuf.org/files/fosdem2012_slides.pdf. 
  14. "The state of Nouveau, part I". LWN.net. https://lwn.net/Articles/269558/. 
  15. "Nouveau To Go Into Linux 2.6.33 Kernel!". Phoronix. 11 December 2009. https://www.phoronix.com/scan.php?page=news_item&px=Nzc5NQ. 
  16. Jonathan Corbet (23 March 2012). "The Nouveau driver graduates from staging". LWN.net. https://lwn.net/Articles/488338/. 
  17. Peres, Martin. "Nouveau XDC 2013 slides". http://www.x.org/wiki/Events/XDC2013/XDC2013MartinPeresNouveauUpdate/slides.pdf. 
  18. "The state of Nouveau, part 2". LWN.net. 26 February 2008. https://lwn.net/Articles/270830/. 
  19. "Nouveau Companion 36 - The irregular Nouveau-Development companion". 7 March 2008. http://nouveau.freedesktop.org/wiki/Nouveau_Companion_36. 
  20. "Nvidia offers to release public documentation on certain aspects of their GPUs". 2013-09-23. http://lists.freedesktop.org/archives/nouveau/2013-September/014480.html. 
  21. "drm/nouveau: initial support for GK20A (Tegra K1)". 2014-01-31. http://lists.freedesktop.org/archives/dri-devel/2014-January/053028.html. 
  22. "drm/nouveau: initial support for GP104 (Pascal)". 2016-07-09. https://github.com/skeggsb/nouveau/commit/a6443fc35556a740b29fde0d641261b2684c89dc. 
  23. "Status Report". x.org. September 2016. https://www.x.org/wiki/Events/XDC2016/Program/nouveau_update.pdf. 
  24. "Compute Support for Nouveau, Creating a LLVM to TGSI and a SPIR-V to NV50 IR backend". 2016. https://archive.fosdem.org/2016/schedule/event/nv_compute/attachments/slides/1145/export/events/attachments/nv_compute/slides/1145/FOSDEM_2016__nv_graphics.pdf. 
  25. https://github.com/nvidia/open-gpu-doc NVIDIA open-gpu-doc repository
  26. https://nvidia.github.io/open-gpu-doc/ NVidia open-gpu-doc Webpage
  27. Michael Larabel (29 March 2009). "Product highlights for openSUSE 11.3 version". openSUSE. http://en.opensuse.org/Product_highlights#Base_System. 
  28. "Bug #454821: Bugs: "xserver-xorg-video-nv" package: Ubuntu". 
  29. "Search results for "libgl1-mesa-dri"". Ubuntu Packages. http://packages.ubuntu.com/search?suite=default§ion=all&arch=any&keywords=libgl1-mesa-dri&searchon=names. 
  30. "Codethink Gets The NVIDIA Jetson TK1 Running With Linux 3.15, Wayland". Phoronix. 2014-06-12. https://www.phoronix.com/scan.php?page=news_item&px=MTcxODc. 
  31. "nouveau/NetBSD". freedesktop.org. 17 October 2016. https://nouveau.freedesktop.org/wiki/NetBSD. 
More
Information
Subjects: Others
Contributor MDPI registered users' name will be linked to their SciProfiles pages. To register with us, please refer to https://encyclopedia.pub/register :
View Times: 670
Entry Collection: HandWiki
Revision: 1 time (View History)
Update Date: 15 Nov 2022
1000/1000
Video Production Service