Rad Hat Company started work on the project Nova, which develops a new open driver for NVIDIA GPUs, in which GPU initialization and control operations are included in the firmware and are performed by a separate GSP (GPU System Processor) microcontroller. The new driver is designed as a module for the Linux kernel and uses the DRM (Direct Rendering Manager) subsystem. The project is positioned as a continuation of the development of the Nouveau driver for GPUs with GSP firmware, used starting with the NVIDIA GeForce RTX 2000 series based on the Turing microarchitecture, and in the long term can replace Nouveau.
The driver code is written in the Rust language and additionally uses several layers to develop video drivers in this language, which have not yet been accepted into the main kernel. For example, a driver uses a set of abstractions for building drivers from the branch rust-devicecomponents for working with the PCI bus from the branch rust-pci and bindings for the DRM and GEM subsystems from the branch rust-drm, used in the development of the drm-asahi Rust driver for the Apple M1 and M2 GPU chips. It is expected that the use of the Rust language will increase the safety and reliability of the driver by reducing the likelihood of errors when working with memory and will allow combining work on the video driver with the development of components, bindings and abstractions for developing drivers in Rust.
The reasons for creating a new driver also include the ability to achieve significant simplification compared to the Nouveau driver by leveraging many of the out-of-the-box handlers provided by the GSP firmware. Due to the need to support older NVIDIA GPUs, the Nouveau driver code is unnecessarily complex and inflexible, and significant reworking of the code base is required to solve problems existing in the Nouveau driver, for example, related to blocking in the VMM/MMU code.
In the new Nova driver, developed from scratch, it is possible to initially get rid of such breakdowns and complications, since you can do without supporting many abstractions on the driver side, which in the new NVIDIA GPUs are already implemented at the firmware level. Nouveau has to combine code to support old and new GPUs, and leaving the Nova driver to support only GSP-based GPUs will eliminate the burden of ensuring compatibility with code that runs on older GPUs.
Thanks for reading: