]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpu: nova-core: gsp: run the unload bundle if Gsp::boot() fails
authorAlexandre Courbot <acourbot@nvidia.com>
Fri, 29 May 2026 07:33:44 +0000 (16:33 +0900)
committerAlexandre Courbot <acourbot@nvidia.com>
Sat, 30 May 2026 04:33:26 +0000 (13:33 +0900)
commit75d59327367dc6e2141cf4e11cdf57c55851b5c2
tree5a36657bc8aee2af6f0e53de8f5bb839bb3df9fe
parentadb99ce3cc78d277a719f15a8131eafc60162f22
gpu: nova-core: gsp: run the unload bundle if Gsp::boot() fails

If `Gsp::boot` fails, the GSP can be left in a state where boot cannot
be attempted again unless it is reset first.

To avoid this, we want to run the unload bundle whenever `boot` fails to
try and clear the partially-initialized state.

Do this by wrapping the unload bundle into a drop guard up until `boot`
returns. After that, running the unload bundle becomes the
responsibility of the caller.

Reviewed-by: Danilo Krummrich <dakr@kernel.org>
Reviewed-by: Eliot Courtney <ecourtney@nvidia.com>
Link: https://patch.msgid.link/20260529-nova-unload-v7-4-678f39209e00@nvidia.com
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
drivers/gpu/nova-core/gsp/boot.rs
drivers/gpu/nova-core/gsp/hal.rs
drivers/gpu/nova-core/gsp/hal/gh100.rs
drivers/gpu/nova-core/gsp/hal/tu102.rs