mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
gpu: nova-core: falcon: Add support to write firmware version
This will be needed by both the GSP boot code as well as GSP resume code in the sequencer. Reviewed-by: Lyude Paul <lyude@redhat.com> Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com> Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Message-ID: <20251110-gsp_boot-v9-14-8ae4058e3c0e@nvidia.com>
This commit is contained in:
parent
bb58d1aee6
commit
945c1eee7d
|
|
@ -621,4 +621,12 @@ pub(crate) fn is_riscv_active(&self, bar: &Bar0) -> bool {
|
|||
let cpuctl = regs::NV_PRISCV_RISCV_CPUCTL::read(bar, &E::ID);
|
||||
cpuctl.active_stat()
|
||||
}
|
||||
|
||||
/// Write the application version to the OS register.
|
||||
#[expect(dead_code)]
|
||||
pub(crate) fn write_os_version(&self, bar: &Bar0, app_version: u32) {
|
||||
regs::NV_PFALCON_FALCON_OS::default()
|
||||
.set_value(app_version)
|
||||
.write(bar, &E::ID);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -230,6 +230,12 @@ pub(crate) fn vga_workspace_addr(self) -> Option<u64> {
|
|||
31:0 value as u32;
|
||||
});
|
||||
|
||||
// Used to store version information about the firmware running
|
||||
// on the Falcon processor.
|
||||
register!(NV_PFALCON_FALCON_OS @ PFalconBase[0x00000080] {
|
||||
31:0 value as u32;
|
||||
});
|
||||
|
||||
register!(NV_PFALCON_FALCON_RM @ PFalconBase[0x00000084] {
|
||||
31:0 value as u32;
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user