gpu: nova-core: gsp: Move gsp register definition into gsp module

Split the gsp register definitions grouped in nova root
register file to the gsp module which actually use them.

Suggested-by: Alexandre Courbot <acourbot@nvidia.com>
Suggested-by: Danilo Krummrich <dakr@kernel.org>
Signed-off-by: Antonin Malzieu Ridolfi <dev@nanonej.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Link: https://patch.msgid.link/20260607140949.152575-1-dev@nanonej.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
This commit is contained in:
Antonin Malzieu Ridolfi
2026-06-07 14:10:31 +00:00
committed by Danilo Krummrich
parent 848bf57e98
commit 3e4bac7b8c
4 changed files with 14 additions and 9 deletions

View File

@@ -22,6 +22,7 @@
pub(crate) mod cmdq;
pub(crate) mod commands;
mod fw;
mod regs;
mod sequencer;
pub(crate) use fw::{

View File

@@ -51,10 +51,11 @@
GSP_PAGE_SIZE, //
},
num,
regs,
sbuffer::SBufferIter, //
};
use super::regs;
/// Marker type representing the absence of a reply for a command. Commands using this as their
/// reply type are sent using [`Cmdq::send_command_no_wait`].
pub(crate) struct NoReply;

View File

@@ -0,0 +1,11 @@
// SPDX-License-Identifier: GPL-2.0
use kernel::io::register;
// PGSP
register! {
pub(super) NV_PGSP_QUEUE_HEAD(u32) @ 0x00110c00 {
31:0 address;
}
}

View File

@@ -227,14 +227,6 @@ pub(crate) fn is_wpr2_set(self) -> bool {
}
}
// PGSP
register! {
pub(crate) NV_PGSP_QUEUE_HEAD(u32) @ 0x00110c00 {
31:0 address;
}
}
// PGC6 register space.
//
// `GC6` is a GPU low-power state where VRAM is in self-refresh and the GPU is powered down (except