From 2374c146cbb9abddee2e04b428fdbf067da010bf Mon Sep 17 00:00:00 2001
From: Ahmad Rehman <ahrehman@amd.com>
Date: Mon, 17 Mar 2025 00:20:06 -0400
Subject: [PATCH] drm/amdgpu: Add support to load PSP TA v13.0.12 for SRIOV

Signed-off-by: Ahmad Rehman <ahrehman@amd.com>

Reviewed-By: Vignesh.Chander@amd.com
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
index d3b05b7020c84..dbc3313fc1419 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
@@ -153,6 +153,9 @@ static int psp_init_sriov_microcode(struct psp_context *psp)
 		adev->virt.autoload_ucode_id = AMDGPU_UCODE_ID_CP_MES1_DATA;
 		ret = psp_init_cap_microcode(psp, ucode_prefix);
 		break;
+	case IP_VERSION(13, 0, 12):
+		ret = psp_init_ta_microcode(psp, ucode_prefix);
+		break;
 	default:
 		return -EINVAL;
 	}
-- 
GitLab