drm/amdgpu: add psp ta microcode init for aldebaran sriov vf
authorZhigang Luo <zhigang.luo@amd.com>
Wed, 2 Jun 2021 13:56:40 +0000 (09:56 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 8 Jun 2021 16:15:07 +0000 (12:15 -0400)
need to load xgmi ta for aldebaran sriov vf.

Signed-off-by: Zhigang Luo <zhigang.luo@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-By : Shaoyun.liu <shaoyunl@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c

index 825eaf4..e9f5010 100644 (file)
@@ -183,6 +183,12 @@ static int psp_sw_init(void *handle)
                        DRM_ERROR("Failed to load psp firmware!\n");
                        return ret;
                }
+       } else if (amdgpu_sriov_vf(adev) && adev->asic_type == CHIP_ALDEBARAN) {
+               ret = psp_init_ta_microcode(psp, "aldebaran");
+               if (ret) {
+                       DRM_ERROR("Failed to initialize ta microcode!\n");
+                       return ret;
+               }
        }
 
        ret = psp_memory_training_init(psp);