mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 07:03:28 -04:00
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:
committed by
Danilo Krummrich
parent
848bf57e98
commit
3e4bac7b8c
@@ -22,6 +22,7 @@
|
||||
pub(crate) mod cmdq;
|
||||
pub(crate) mod commands;
|
||||
mod fw;
|
||||
mod regs;
|
||||
mod sequencer;
|
||||
|
||||
pub(crate) use fw::{
|
||||
|
||||
@@ -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;
|
||||
|
||||
11
drivers/gpu/nova-core/gsp/regs.rs
Normal file
11
drivers/gpu/nova-core/gsp/regs.rs
Normal 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;
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user