drm/amdgpu: initialize ta firmware for aldebaran
authorHawking Zhang <Hawking.Zhang@amd.com>
Fri, 21 Aug 2020 14:09:06 +0000 (22:09 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 02:54:15 +0000 (22:54 -0400)
only xgmi ta is supported at this stage

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/psp_v13_0.c

index 4beee09..fcdce46 100644 (file)
@@ -30,6 +30,7 @@
 #include "mp/mp_13_0_2_sh_mask.h"
 
 MODULE_FIRMWARE("amdgpu/aldebaran_sos.bin");
+MODULE_FIRMWARE("amdgpu/aldebaran_ta.bin");
 
 static int psp_v13_0_init_microcode(struct psp_context *psp)
 {
@@ -46,6 +47,10 @@ static int psp_v13_0_init_microcode(struct psp_context *psp)
        }
 
        err = psp_init_sos_microcode(psp, chip_name);
+       if (err)
+               return err;
+
+       err = psp_init_ta_microcode(&adev->psp, chip_name);
 
        return err;
 }