diff options
| author | Alexandre Courbot <acourbot@nvidia.com> | 2026-07-09 15:53:06 +0900 |
|---|---|---|
| committer | Alexandre Courbot <acourbot@nvidia.com> | 2026-07-15 16:00:53 -0700 |
| commit | ce2d97f714c8a37cac506a41e52da45b09555b81 (patch) | |
| tree | ea3d2aa4dd0ddbecb61a499787adcc04b21526e0 /rust/pin-init/examples | |
| parent | 320608e5bc887b03a67c26396bc698f556906db0 (diff) | |
| download | linux-next-ce2d97f714c8a37cac506a41e52da45b09555b81.tar.gz linux-next-ce2d97f714c8a37cac506a41e52da45b09555b81.zip | |
gpu: nova-core: store Fsp instance in Gpu
The `Fsp` instance was only used in the Hopper+ boot path, and
consequently built locally (and immediately dropped) in it.
This worked well as a temporary measure, but the FSP is a GPU
sub-device, so its lifetime should match the GPU rather than a single
boot invocation.
It will also be needed in other parts of the driver, for instance vGPU.
Thus, create the `Fsp` instance in the `Gpu` constructor and store it
there, passing it to the GSP boot as a mutable reference using
`GspBootContext`. This makes the `Fsp` available even after the GSP is
booted.
Reviewed-by: Eliot Courtney <ecourtney@nvidia.com>
Link: https://patch.msgid.link/20260709-nova-bootcontext-v6-13-520cbf8b9b50@nvidia.com
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Diffstat (limited to 'rust/pin-init/examples')
0 files changed, 0 insertions, 0 deletions
