From 93cdc1759bcbbe3ed78acfbd1f511f2da5010225 Mon Sep 17 00:00:00 2001 From: Zhigang Luo Date: Wed, 2 Jun 2021 09:56:40 -0400 Subject: [PATCH] drm/amdgpu: add psp ta microcode init for aldebaran sriov vf need to load xgmi ta for aldebaran sriov vf. Signed-off-by: Zhigang Luo Reviewed-by: Hawking Zhang Reviewed-By : Shaoyun.liu Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c index 825eaf4e592d..e9f5010d732d 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c @@ -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); -- GitLab