]> git.dujemihanovic.xyz Git - linux.git/commit
drm/amdgpu: load sos binary properly on the basis of pmfw version
authorLe Ma <le.ma@amd.com>
Tue, 10 Sep 2024 12:10:45 +0000 (20:10 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Sep 2024 20:15:06 +0000 (16:15 -0400)
commit2778701b165eda674756537054d460fb4b0cf2e2
tree97eec2392f7f8c6695f23965400980a3cbb5db24
parent2ae6cd583c4c86c2b7e879b07effb8ffb10756bc
drm/amdgpu: load sos binary properly on the basis of pmfw version

To be compatible with legacy IFWI, driver needs to carry legacy tOS and
query pmfw version to load them accordingly.

Add psp_firmware_header_v2_1 to handle the combined sos binary.

Double the sos count limit for the case of aux sos fw packed.

v2: pass the correct fw_bin_desc to parse_sos_bin_descriptor

Signed-off-by: Le Ma <le.ma@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h