All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cheng-Yang Chou <yphbchou0911@gmail.com>
To: Danilo Krummrich <dakr@kernel.org>,
	Alice Ryhl <aliceryhl@google.com>,
	Alexandre Courbot <acourbot@nvidia.com>,
	David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
	Gary Guo <gary@garyguo.net>, John Hubbard <jhubbard@nvidia.com>
Cc: nouveau@lists.freedesktop.org,
	Ching-Chun Huang <jserv@ccns.ncku.edu.tw>,
	Chia-Ping Tsai <chia7712@gmail.com>,
	Cheng-Yang Chou <yphbchou0911@gmail.com>
Subject: [PATCH v3 2/2] gpu: nova-drm: Rename nova to nova-drm
Date: Fri,  8 May 2026 02:49:26 +0800	[thread overview]
Message-ID: <20260507185012.1527139-3-yphbchou0911@gmail.com> (raw)
In-Reply-To: <20260507185012.1527139-1-yphbchou0911@gmail.com>

The .ko filenames must match the module names to ensure consistency
before these names are exposed as UAPI via driver_override.

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>
---
 drivers/gpu/drm/nova/Kconfig       | 2 +-
 drivers/gpu/drm/nova/Makefile      | 3 ++-
 drivers/gpu/drm/nova/driver.rs     | 4 ++--
 drivers/gpu/nova-core/Kconfig      | 2 +-
 drivers/gpu/nova-core/Makefile     | 3 ++-
 drivers/gpu/nova-core/nova_core.rs | 2 +-
 6 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/drivers/gpu/drm/nova/Kconfig b/drivers/gpu/drm/nova/Kconfig
index a2028b8539d7..ba16c74401f8 100644
--- a/drivers/gpu/drm/nova/Kconfig
+++ b/drivers/gpu/drm/nova/Kconfig
@@ -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.
diff --git a/drivers/gpu/drm/nova/Makefile b/drivers/gpu/drm/nova/Makefile
index 42019bff3173..f8527b2b7b4a 100644
--- a/drivers/gpu/drm/nova/Makefile
+++ b/drivers/gpu/drm/nova/Makefile
@@ -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
diff --git a/drivers/gpu/drm/nova/driver.rs b/drivers/gpu/drm/nova/driver.rs
index f8f7beeccb13..e3de04f358f0 100644
--- a/drivers/gpu/drm/nova/driver.rs
+++ b/drivers/gpu/drm/nova/driver.rs
@@ -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";
diff --git a/drivers/gpu/nova-core/Kconfig b/drivers/gpu/nova-core/Kconfig
index d8456f8eaa05..f918f69e0599 100644
--- a/drivers/gpu/nova-core/Kconfig
+++ b/drivers/gpu/nova-core/Kconfig
@@ -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.
diff --git a/drivers/gpu/nova-core/Makefile b/drivers/gpu/nova-core/Makefile
index 2d78c50126e1..4ae544f808f4 100644
--- a/drivers/gpu/nova-core/Makefile
+++ b/drivers/gpu/nova-core/Makefile
@@ -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
diff --git a/drivers/gpu/nova-core/nova_core.rs b/drivers/gpu/nova-core/nova_core.rs
index 80264094d44b..c488058880be 100644
--- a/drivers/gpu/nova-core/nova_core.rs
+++ b/drivers/gpu/nova-core/nova_core.rs
@@ -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`.
-- 
2.48.1


  parent reply	other threads:[~2026-05-07 18:50 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-07 18:49 [PATCH v3 0/2] gpu: nova, nova-core: rename drivers and directory to follow kebab-case Cheng-Yang Chou
2026-05-07 18:49 ` [PATCH v3 1/2] gpu: nova, nova-core: Rename to kebab-case Cheng-Yang Chou
2026-05-07 18:49 ` Cheng-Yang Chou [this message]
2026-05-09 22:05 ` [PATCH v3 0/2] gpu: nova, nova-core: rename drivers and directory to follow kebab-case Danilo Krummrich
  -- strict thread matches above, loose matches on Subject: below --
2026-03-17  5:23 [PATCH v2 2/2] gpu: nova-drm: rename nova/ directory to nova-drm/ John Hubbard
2026-03-17  9:23 ` [PATCH v3 2/2] gpu: nova-drm: rename nova to nova-drm Cheng-Yang Chou
2026-03-17  9:23   ` Cheng-Yang Chou
2026-03-17 13:20   ` Alexandre Courbot
2026-03-17 13:20     ` Alexandre Courbot
2026-03-17 13:31     ` Martin Roukala
2026-03-17 13:53     ` Danilo Krummrich
2026-03-17 13:53       ` Danilo Krummrich
2026-03-17 15:22       ` Alexandre Courbot
2026-03-17 15:22         ` Alexandre Courbot
2026-03-17 15:34         ` Danilo Krummrich
2026-03-17 15:34           ` Danilo Krummrich
2026-03-18  0:56           ` Alexandre Courbot
2026-03-18  0:56             ` Alexandre Courbot
2026-03-18 18:10             ` John Hubbard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260507185012.1527139-3-yphbchou0911@gmail.com \
    --to=yphbchou0911@gmail.com \
    --cc=acourbot@nvidia.com \
    --cc=airlied@gmail.com \
    --cc=aliceryhl@google.com \
    --cc=chia7712@gmail.com \
    --cc=dakr@kernel.org \
    --cc=gary@garyguo.net \
    --cc=jhubbard@nvidia.com \
    --cc=jserv@ccns.ncku.edu.tw \
    --cc=nouveau@lists.freedesktop.org \
    --cc=simona@ffwll.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.