diff options
| author | Alistair Popple <apopple@nvidia.com> | 2025-11-10 22:34:20 +0900 |
|---|---|---|
| committer | Alexandre Courbot <acourbot@nvidia.com> | 2025-11-14 20:25:57 +0900 |
| commit | 19b0a6e7c2be35f9b11c51c0c21c9a02c23252ff (patch) | |
| tree | d2de2f86d047b1e8690a3258f75c45b2819e1ac0 /drivers/gpu/nova-core/sbuffer.rs | |
| parent | edcb134264f7db95295a9f0feb7a8b3acde72a08 (diff) | |
gpu: nova-core: gsp: Add SetRegistry command
Add support for sending the SetRegistry command, which is critical to
GSP initialization.
The RM registry is serialized into a packed format and sent via the
command queue. For now only three parameters which are required to boot
GSP are hardcoded. In the future a kernel module parameter will be added
to enable other parameters to be added.
Signed-off-by: Alistair Popple <apopple@nvidia.com>
[acourbot@nvidia.com: split into its own patch.]
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Message-ID: <20251110-gsp_boot-v9-12-8ae4058e3c0e@nvidia.com>
Diffstat (limited to 'drivers/gpu/nova-core/sbuffer.rs')
| -rw-r--r-- | drivers/gpu/nova-core/sbuffer.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/nova-core/sbuffer.rs b/drivers/gpu/nova-core/sbuffer.rs index 25e3ad665cac..7a5947b8be19 100644 --- a/drivers/gpu/nova-core/sbuffer.rs +++ b/drivers/gpu/nova-core/sbuffer.rs @@ -199,7 +199,6 @@ where /// Ideally we would implement [`Write`], but it is not available in `core`. /// So mimic `std::io::Write::write_all`. - #[expect(unused)] pub(crate) fn write_all(&mut self, mut src: &[u8]) -> Result { while !src.is_empty() { match self.get_slice_mut(src.len()) { |