mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 15:12:13 +02:00
gpu: nova-core: add support for Turing/GA100 fwsignature
Turing and GA100 share the same GSP-RM firmware binary, but the signature ELF section is labeled either ".fwsignature_tu10x" or ".fwsignature_tu11x". Signed-off-by: Timur Tabi <ttabi@nvidia.com> Reviewed-by: John Hubbard <jhubbard@nvidia.com> Reviewed-by: Gary Guo <gary@garyguo.net> Acked-by: Danilo Krummrich <dakr@kernel.org> Link: https://patch.msgid.link/20260122222848.2555890-5-ttabi@nvidia.com Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
This commit is contained in:
parent
a65fc53d47
commit
121ea04cd9
|
|
@ -214,9 +214,16 @@ pub(crate) fn new<'a>(
|
|||
size,
|
||||
signatures: {
|
||||
let sigs_section = match chipset.arch() {
|
||||
Architecture::Turing
|
||||
if matches!(chipset, Chipset::TU116 | Chipset::TU117) =>
|
||||
{
|
||||
".fwsignature_tu11x"
|
||||
}
|
||||
Architecture::Turing => ".fwsignature_tu10x",
|
||||
// GA100 uses the same firmware as Turing
|
||||
Architecture::Ampere if chipset == Chipset::GA100 => ".fwsignature_tu10x",
|
||||
Architecture::Ampere => ".fwsignature_ga10x",
|
||||
Architecture::Ada => ".fwsignature_ad10x",
|
||||
_ => return Err(ENOTSUPP),
|
||||
};
|
||||
|
||||
elf::elf64_section(firmware.data(), sigs_section)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user