Skip to contentSkip to conversation

drm/amdgpu: init TA fw for psp v14

PATCH In review Aurabindo Pillai 2 participants 2 messages Jun 17, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: init TA fw for psp v14

From: Likun Gao <[email protected]>

Add support to init TA firmware for psp v14.

---
 drivers/gpu/drm/amd/amdgpu/psp_v14_0.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/amdgpu/psp_v14_0.c +5 -0
index cc0248efa6b6..4d33c95a5116 100644
@@ -32,7 +32,9 @@
 #include "mp/mp_14_0_2_sh_mask.h"
 
 MODULE_FIRMWARE("amdgpu/psp_14_0_2_sos.bin");
+MODULE_FIRMWARE("amdgpu/psp_14_0_2_ta.bin");
 MODULE_FIRMWARE("amdgpu/psp_14_0_3_sos.bin");
+MODULE_FIRMWARE("amdgpu/psp_14_0_3_ta.bin");
 
 /* For large FW files the time to complete can be very long */
 #define USBC_PD_POLLING_LIMIT_S 240
@@ -64,6 +66,9 @@ static int psp_v14_0_init_microcode(struct psp_context *psp)
 	case IP_VERSION(14, 0, 2):
 	case IP_VERSION(14, 0, 3):
 		err = psp_init_sos_microcode(psp, ucode_prefix);
+		if (err)
+			return err;
+		err = psp_init_ta_microcode(psp, ucode_prefix);
 		if (err)
 			return err;
 		break;
Signature · 1 line
2.45.2
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Aurabindo Pillai

From: Likun Gao <[email protected]>

Add support to init TA firmware for psp v14.

Quoted 31 lines
---
 drivers/gpu/drm/amd/amdgpu/psp_v14_0.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/amdgpu/psp_v14_0.c +5 -1
index cc0248efa6b6..4d33c95a5116 100644
@@ -32,7 +32,9 @@
 #include "mp/mp_14_0_2_sh_mask.h"
 
 MODULE_FIRMWARE("amdgpu/psp_14_0_2_sos.bin");
+MODULE_FIRMWARE("amdgpu/psp_14_0_2_ta.bin");
 MODULE_FIRMWARE("amdgpu/psp_14_0_3_sos.bin");
+MODULE_FIRMWARE("amdgpu/psp_14_0_3_ta.bin");
 
 /* For large FW files the time to complete can be very long */
 #define USBC_PD_POLLING_LIMIT_S 240
@@ -64,6 +66,9 @@ static int psp_v14_0_init_microcode(struct psp_context *psp)
        case IP_VERSION(14, 0, 2):
        case IP_VERSION(14, 0, 3):
                err = psp_init_sos_microcode(psp, ucode_prefix);
+               if (err)
+                       return err;
+               err = psp_init_ta_microcode(psp, ucode_prefix);
                if (err)
                        return err;
                break;
--

2.45.2