gpu: nova-core: add initial driver stub
authorDanilo Krummrich <dakr@kernel.org>
Thu, 6 Mar 2025 22:23:30 +0000 (23:23 +0100)
committerDanilo Krummrich <dakr@kernel.org>
Sun, 9 Mar 2025 18:24:27 +0000 (19:24 +0100)
commit54e6baf123fde089cfa9f609b0b39b40abe41e94
treee33cdbf61ecc85552edb2d114e2da110f10c99b1
parent1d121a33ad50a3c61ce3a551a73ef7945c0b3494
gpu: nova-core: add initial driver stub

Add the initial nova-core driver stub.

nova-core is intended to serve as a common base for nova-drm (the
corresponding DRM driver) and the vGPU manager VFIO driver, serving as a
hard- and firmware abstraction layer for GSP-based NVIDIA GPUs.

The Nova project, including nova-core and nova-drm, in the long term,
is intended to serve as the successor of Nouveau for all GSP-based GPUs.

The motivation for both, starting a successor project for Nouveau and
doing so using the Rust programming language, is documented in detail
through a previous post on the mailing list [1], an LWN article [2] and a
talk from LPC '24.

In order to avoid the chicken and egg problem to require a user to
upstream Rust abstractions, but at the same time require the Rust
abstractions to implement the driver, nova-core kicks off as a driver
stub and is subsequently developed upstream.

Link: https://lore.kernel.org/dri-devel/Zfsj0_tb-0-tNrJy@cassiopeiae/T/#u
Link: https://lwn.net/Articles/990736/
Link: https://youtu.be/3Igmx28B3BQ?si=sBdSEer4tAPKGpOs
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Link: https://lore.kernel.org/r/20250306222336.23482-5-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
MAINTAINERS
drivers/gpu/Makefile
drivers/gpu/nova-core/Kconfig [new file with mode: 0644]
drivers/gpu/nova-core/Makefile [new file with mode: 0644]
drivers/gpu/nova-core/driver.rs [new file with mode: 0644]
drivers/gpu/nova-core/firmware.rs [new file with mode: 0644]
drivers/gpu/nova-core/gpu.rs [new file with mode: 0644]
drivers/gpu/nova-core/nova_core.rs [new file with mode: 0644]
drivers/gpu/nova-core/regs.rs [new file with mode: 0644]
drivers/gpu/nova-core/util.rs [new file with mode: 0644]
drivers/video/Kconfig