From: Zhigang Luo Date: Wed, 2 Jun 2021 13:56:40 +0000 (-0400) Subject: drm/amdgpu: add psp ta microcode init for aldebaran sriov vf X-Git-Tag: howlett/maple/20220722_2~2859^2~12^2~33 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=93cdc1759bcbbe3ed78acfbd1f511f2da5010225;p=users%2Fjedix%2Flinux-maple.git 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 --- 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);