Skip to contentSkip to conversation

gpu: nova: rename drivers to use kebab-case convention

PATCH Superseded Cheng-Yang Chou 4 participants 8 messages Mar 10 – Mar 12

Subsystems (4)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpu: nova: rename drivers to use kebab-case convention

Rename nova-core driver from "NovaCore" to "nova-core" and nova-drm driver from "Nova" to "nova-drm" to follow kernel naming conventions before these names become UAPI (e.g. exposed via driver_override).

---
 drivers/gpu/drm/nova/driver.rs     | 4 ++--
 drivers/gpu/drm/nova/nova.rs       | 2 +-
 drivers/gpu/nova-core/nova_core.rs | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/nova/driver.rs +2 -2
index b1af0a099551..addf70c33cb2 100644
@@ -32,11 +32,11 @@ pub(crate) struct NovaData {
     major: 0,
     minor: 0,
     patchlevel: 0,
-    name: c"nova",
+    name: c"nova-drm",
     desc: c"Nvidia Graphics",
 };
 
-const NOVA_CORE_MODULE_NAME: &CStr = c"NovaCore";
+const NOVA_CORE_MODULE_NAME: &CStr = c"nova-core";
 const AUXILIARY_NAME: &CStr = c"nova-drm";
 
 kernel::auxiliary_device_table!(
drivers/gpu/drm/nova/nova.rs +1 -1
index 8893e58ee0db..1fd454c7e0df 100644
@@ -10,7 +10,7 @@
 
 kernel::module_auxiliary_driver! {
     type: NovaDriver,
-    name: "Nova",
+    name: "nova-drm",
     authors: ["Danilo Krummrich"],
     description: "Nova GPU driver",
     license: "GPL v2",
drivers/gpu/nova-core/nova_core.rs +1 -1
index c1121e7c64c5..90e98380687b 100644
@@ -22,7 +22,7 @@
 
 kernel::module_pci_driver! {
     type: driver::NovaCore,
-    name: "NovaCore",
+    name: "nova-core",
     authors: ["Danilo Krummrich"],
     description: "Nova Core GPU driver",
     license: "GPL v2",
Signature · 1 line
2.48.1
#2 lore raw
In reply to Cheng-Yang Chou
Quoted 17 lines · Cheng-Yang Chou

Rename nova-core driver from "NovaCore" to "nova-core" and nova-drm driver from "Nova" to "nova-drm" to follow kernel naming conventions before these names become UAPI (e.g. exposed via driver_override).

---
 drivers/gpu/drm/nova/driver.rs     | 4 ++--
 drivers/gpu/drm/nova/nova.rs       | 2 +-
 drivers/gpu/nova-core/nova_core.rs | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/nova/driver.rs +0 -0
index b1af0a099551..addf70c33cb2 100644

drivers/gpu/drm/nova/driver.rs pub(crate) struct NovaData { · line 36

Quoted 6 lines
drivers/gpu/drm/nova/driver.rs +1 -1
@@ -32,11 +32,11 @@ pub(crate) struct NovaData {
     major: 0,
     minor: 0,
     patchlevel: 0,
-    name: c"nova",
+    name: c"nova-drm",
     desc: c"Nvidia Graphics",

hmm, as long as we are fooling around with names here, I see that this should be "NVIDIA Graphics and Compute", really.

Obviously that can be done separately, though.

Quoted 12 lines
drivers/gpu/drm/nova/driver.rs +1 -1
 };
 
-const NOVA_CORE_MODULE_NAME: &CStr = c"NovaCore";
+const NOVA_CORE_MODULE_NAME: &CStr = c"nova-core";
 const AUXILIARY_NAME: &CStr = c"nova-drm";
 
 kernel::auxiliary_device_table!(
drivers/gpu/drm/nova/nova.rs +0 -0
index 8893e58ee0db..1fd454c7e0df 100644

drivers/gpu/drm/nova/nova.rs line 13

Quoted 5 lines
drivers/gpu/drm/nova/nova.rs +1 -1
@@ -10,7 +10,7 @@
 
 kernel::module_auxiliary_driver! {
     type: NovaDriver,
-    name: "Nova",
+    name: "nova-drm",

Well, but now it is out of sync with the file name: nova.rs.

You should change both, or neither, I'm thinking.

drivers/gpu/nova-core/nova_core.rs line 25

Quoted 13 lines
drivers/gpu/drm/nova/nova.rs +0 -0
     authors: ["Danilo Krummrich"],
     description: "Nova GPU driver",
     license: "GPL v2",
drivers/gpu/nova-core/nova_core.rs +1 -1
index c1121e7c64c5..90e98380687b 100644
@@ -22,7 +22,7 @@
 
 kernel::module_pci_driver! {
     type: driver::NovaCore,
-    name: "NovaCore",
+    name: "nova-core",

This bit looks good.

drivers/gpu/nova-core/nova_core.rs line 28

Quoted 3 lines
drivers/gpu/nova-core/nova_core.rs +0 -0
     authors: ["Danilo Krummrich"],
     description: "Nova Core GPU driver",
     license: "GPL v2",

thanks,

Signature · 1 line
John Hubbard
#3 lore raw

Hi John,

Quoted 9 lines · John Hubbard

drivers/gpu/drm/nova/driver.rs pub(crate) struct NovaData { · line 36

Quoted 3 lines · Cheng-Yang Chou
drivers/gpu/drm/nova/driver.rs +1 -1
-    name: c"nova",
+    name: c"nova-drm",
     desc: c"Nvidia Graphics",

hmm, as long as we are fooling around with names here, I see that this should be "NVIDIA Graphics and Compute", really.

Obviously that can be done separately, though.

Ok.

Quoted 14 lines
Quoted 14 lines

};

drivers/gpu/drm/nova/driver.rs +1 -1
-const NOVA_CORE_MODULE_NAME: &CStr = c"NovaCore";
+const NOVA_CORE_MODULE_NAME: &CStr = c"nova-core";
 const AUXILIARY_NAME: &CStr = c"nova-drm";
 
 kernel::auxiliary_device_table!(
drivers/gpu/drm/nova/nova.rs +0 -0
index 8893e58ee0db..1fd454c7e0df 100644
@@ -10,7 +10,7 @@
 
Quoted 8 lines

drivers/gpu/drm/nova/nova.rs line 13

Quoted 4 lines
drivers/gpu/drm/nova/nova.rs +1 -1
 kernel::module_auxiliary_driver! {
     type: NovaDriver,
-    name: "Nova",
+    name: "nova-drm",

Well, but now it is out of sync with the file name: nova.rs.

You should change both, or neither, I'm thinking.

I think renaming the file to nova_drm.rs would better reflect the driver's identity now that the module name is nova-drm, making it easier for readers to associate the source file with the driver.

Would that work for you?

Signature · 2 lines
Thanks,
Cheng-Yang
#4 lore raw

On 3/12/26 11:45 AM, Cheng-Yang Chou wrote:
...

Quoted 7 lines
Quoted 7 lines

drivers/gpu/drm/nova/nova.rs line 13

Quoted 4 lines
  kernel::module_auxiliary_driver! {
      type: NovaDriver,
drivers/gpu/drm/nova/nova.rs +1 -1
-    name: "Nova",
+    name: "nova-drm",

Well, but now it is out of sync with the file name: nova.rs.

Quoted 8 lines
Quoted 1 line

You should change both, or neither, I'm thinking.

I think renaming the file to nova_drm.rs would better reflect the driver's identity now that the module name is nova-drm, making it easier for readers to associate the source file with the driver.

Would that work for you?

I'm OK with the name change.

thanks,

Signature · 1 line
John Hubbard
maintainer
#5 lore raw
In reply to Cheng-Yang Chou
Quoted 10 lines · Cheng-Yang Chou

Hi John,

Quoted 7 lines · John Hubbard

drivers/gpu/drm/nova/driver.rs pub(crate) struct NovaData { · line 36

Quoted 3 lines · Cheng-Yang Chou
drivers/gpu/drm/nova/driver.rs +1 -1
-    name: c"nova",
+    name: c"nova-drm",
     desc: c"Nvidia Graphics",

hmm, as long as we are fooling around with names here, I see that this should be "NVIDIA Graphics and Compute", really.

SGTM.

Quoted 7 lines
Quoted 7 lines

drivers/gpu/drm/nova/nova.rs line 13

Quoted 4 lines

kernel::module_auxiliary_driver! {
type: NovaDriver,

drivers/gpu/drm/nova/nova.rs +1 -1
-    name: "Nova",
+    name: "nova-drm",

Well, but now it is out of sync with the file name: nova.rs.

Quoted 7 lines
Quoted 1 line

You should change both, or neither, I'm thinking.

I think renaming the file to nova_drm.rs would better reflect the driver's identity now that the module name is nova-drm, making it easier for readers to associate the source file with the driver.

Would that work for you?

I think the module name should ideally match the directoy name, i.e. we have

drivers/gpu/nova-core/

with the module name "nova-core" and

drivers/gpu/drm/nova/

with the module name "nova-drm".

The reason why this is not .../nova-drm/ already is that I figured it would be a bit redundant given that "drm" is already part of the path.

While I don't mind changing this, I wonder what this would mean for the Kconfig, CONFIG_DRM_NOVA_DRM? :)

#6 lore raw
Quoted 1 line · Danilo Krummrich

On Thu Mar 12, 2026 at 7:45 PM CET, Cheng-Yang Chou wrote:

...

Quoted 11 lines
Quoted 1 line

Would that work for you?

I think the module name should ideally match the directoy name, i.e. we have

drivers/gpu/nova-core/

with the module name "nova-core" and

drivers/gpu/drm/nova/

with the module name "nova-drm".

When p

When people do things like lsmod(1), they don't see the directory path for the module source code, so if the name doesn't include drm, then no one knows that "nova" implies "nova-drm".

On the other hand, I was OK with just explaining to people that "nova" is the upper layer kernel module, and that it's the one that does DRM things.

Which is why I'm merely "OK" with the name change, as opposed to thinking that it's required.

Quoted 6 lines

The reason why this is not .../nova-drm/ already is that I figured it would be a bit redundant given that "drm" is already part of the path.

While I don't mind changing this, I wonder what this would mean for the Kconfig, CONFIG_DRM_NOVA_DRM? :)

I also worry that we might not have enough DRM's in that CONFIG item. haha :)

thanks,

Signature · 1 line
John Hubbard
maintainer
#7 lore raw
Quoted 21 lines · John Hubbard
Quoted 1 line · Danilo Krummrich

On Thu Mar 12, 2026 at 7:45 PM CET, Cheng-Yang Chou wrote:

...

Quoted 11 lines
Quoted 1 line

Would that work for you?

I think the module name should ideally match the directoy name, i.e. we have

drivers/gpu/nova-core/

with the module name "nova-core" and

drivers/gpu/drm/nova/

with the module name "nova-drm".

When p

When people do things like lsmod(1), they don't see the directory path for the module source code, so if the name doesn't include drm, then no one knows that "nova" implies "nova-drm".

Quoted 6 lines

On the other hand, I was OK with just explaining to people that "nova" is the upper layer kernel module, and that it's the one that does DRM things.

Which is why I'm merely "OK" with the name change, as opposed to thinking that it's required.

Just to clarify, I think we should change the directory name and the module name to nova-drm; the above is what we'd get with the current patch.

Quoted 9 lines
Quoted 6 lines

The reason why this is not .../nova-drm/ already is that I figured it would be a bit redundant given that "drm" is already part of the path.

While I don't mind changing this, I wonder what this would mean for the Kconfig, CONFIG_DRM_NOVA_DRM? :)

I also worry that we might not have enough DRM's in that CONFIG item. haha :)