From: Likun Gao <[email protected]>

Add MES KIQ PSP GFX FW type and the convert type.

Signed-off-by: Likun Gao <[email protected]>
Reviewed-by: Hawking Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
---
 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 aabb208bebde..d0fb14ef645c 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
@@ -2190,6 +2190,12 @@ static int psp_get_fw_type(struct amdgpu_firmware_info 
*ucode,
        case AMDGPU_UCODE_ID_CP_MES_DATA:
                *type = GFX_FW_TYPE_MES_STACK;
                break;
+       case AMDGPU_UCODE_ID_CP_MES1:
+               *type = GFX_FW_TYPE_CP_MES_KIQ;
+               break;
+       case AMDGPU_UCODE_ID_CP_MES1_DATA:
+               *type = GFX_FW_TYPE_MES_KIQ_STACK;
+               break;
        case AMDGPU_UCODE_ID_CP_CE:
                *type = GFX_FW_TYPE_CP_CE;
                break;
-- 
2.35.1

Reply via email to