gpu: nova: Use module names consistently

Update nova/Makefile and nova-core/Makefile so that nova-drm.ko and
nova-core.ko are produced, matching the module names set in patch 1.

Update drm::DriverInfo with the correct driver name and vendor
description. Fix Kconfig help text for both drivers and the debugfs
directory name in nova-core to match the new module names.

Closes: https://github.com/Rust-for-Linux/linux/issues/1228
Signed-off-by: Cheng-Yang Chou <yphbchou0911@gmail.com>
Link: https://patch.msgid.link/20260507185012.1527139-3-yphbchou0911@gmail.com
[ Change commit subject to "gpu: nova: Use module names consistently";
  slightly adjust commit message. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
This commit is contained in:
Cheng-Yang Chou
2026-05-08 02:49:26 +08:00
committed by Danilo Krummrich
parent 4f3491f6ec
commit 8bfe9d72cf
6 changed files with 9 additions and 7 deletions

View File

@@ -14,4 +14,4 @@ config DRM_NOVA
This driver is work in progress and may not be functional.
If M is selected, the module will be called nova.
If M is selected, the module will be called nova-drm.

View File

@@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-2.0
obj-$(CONFIG_DRM_NOVA) += nova.o
obj-$(CONFIG_DRM_NOVA) += nova-drm.o
nova-drm-y := nova.o

View File

@@ -32,8 +32,8 @@ pub(crate) struct NovaData {
major: 0,
minor: 0,
patchlevel: 0,
name: c"nova",
desc: c"Nvidia Graphics",
name: c"nova-drm",
desc: c"NVIDIA Graphics and Compute",
};
const NOVA_CORE_MODULE_NAME: &CStr = c"nova-core";

View File

@@ -14,4 +14,4 @@ config NOVA_CORE
This driver is work in progress and may not be functional.
If M is selected, the module will be called nova_core.
If M is selected, the module will be called nova-core.

View File

@@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-2.0
obj-$(CONFIG_NOVA_CORE) += nova_core.o
obj-$(CONFIG_NOVA_CORE) += nova-core.o
nova-core-y := nova_core.o

View File

@@ -52,7 +52,7 @@ struct NovaCoreModule {
impl InPlaceModule for NovaCoreModule {
fn init(module: &'static kernel::ThisModule) -> impl PinInit<Self, Error> {
let dir = debugfs::Dir::new(kernel::c_str!("nova_core"));
let dir = debugfs::Dir::new(kernel::c_str!("nova-core"));
// SAFETY: We are the only driver code running during init, so there
// cannot be any concurrent access to `DEBUGFS_ROOT`.