]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd: Fix renoir/green sardine MP0 IP version detection
authorMario Limonciello <mario.limonciello@amd.com>
Sat, 14 Jan 2023 03:01:48 +0000 (21:01 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Jan 2023 21:11:19 +0000 (16:11 -0500)
commit0604897bc6a8afd04494be6f50e87ee61d12509c
tree97da808a040826f079b138d661b205b99dd012fb
parent73b1a771f021fbf658b73babb18b5a97e6f8489a
drm/amd: Fix renoir/green sardine MP0 IP version detection

The existing codebase never had a case for detecting MP0 version on
Renoir and instead relied upon hardcoded chip name.  This was missed as
part of the changes to migrate all IP blocks to build filenames from
`amdgpu_ucode.c`.

Consequently, Renoir tries to fetch a binary with 11_0_3 in the filename
and since it's supposed to have "renoir" in the filename fails to probe.
The fbdev still works though so the series worked.

Add a case for Renoir into the legacy table to ensure the right ASD and
TA firmware load again.

Reported-by: Ekene Akuneme <Ekene.Akuneme@amd.com>
Reported-by: Nicholas Choi <Nicholas.Choi@amd.com>
Cc: Alex Hung <Alex.Hung@amd.com>
Fixes: 994a97447e38 ("drm/amd: Parse both v1 and v2 TA microcode headers using same function")
Fixes: 54a3e032340e ("drm/amd: Add a legacy mapping to "amdgpu_ucode_ip_version_decode"")
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c