drm/amdgpu: resolved ASD loading issue on sienna
authorJohn Clements <john.clements@amd.com>
Tue, 3 Nov 2020 08:19:44 +0000 (16:19 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 Nov 2020 02:06:04 +0000 (21:06 -0500)
updated fw header v2 parser to set asd fw memory

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: John Clements <john.clements@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 5.9.x
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c

index 96a9699..a6dbe4b 100644 (file)
@@ -2524,6 +2524,7 @@ int parse_ta_bin_descriptor(struct psp_context *psp,
                psp->asd_feature_version   = le32_to_cpu(desc->fw_version);
                psp->asd_ucode_size        = le32_to_cpu(desc->size_bytes);
                psp->asd_start_addr        = ucode_start_addr;
+               psp->asd_fw                = psp->ta_fw;
                break;
        case TA_FW_TYPE_PSP_XGMI:
                psp->ta_xgmi_ucode_version = le32_to_cpu(desc->fw_version);