gpu: nova-core: gsp: Wait for gsp initialization to complete

This adds the GSP init done command to wait for GSP initialization
to complete. Once this command has been received the GSP is fully
operational and will respond properly to normal RPC commands.

Signed-off-by: Alistair Popple <apopple@nvidia.com>
Co-developed-by: Joel Fernandes <joelagnelf@nvidia.com>
Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
[acourbot@nvidia.com: move new definitions to end of commands.rs, rename
to `wait_gsp_init_done` and remove timeout argument.]
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Message-ID: <20251114195552.739371-13-joelagnelf@nvidia.com>
This commit is contained in:
Alistair Popple
2025-11-14 14:55:51 -05:00
committed by Alexandre Courbot
parent 774109857b
commit 0e7d572b4b
2 changed files with 48 additions and 3 deletions

View File

@@ -236,6 +236,9 @@ impl super::Gsp {
};
GspSequencer::run(&mut self.cmdq, seq_params)?;
// Wait until GSP is fully initialized.
commands::wait_gsp_init_done(&mut self.cmdq)?;
Ok(())
}
}