Skip to contentSkip to conversation

drm/amd: Only load TA microcode for psp v12_0 once

PATCH In review Mario Limonciello 2 participants 4 messages Jan 10, 2023

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

PATCH 1/1 drm/amd: Only load TA microcode for psp v12_0 once

During rebase from patch series accidentally ended up with two calls to load TA microcode for psp v12_0. Only one is needed, so remove the second.

Fixes f1efed401badb ("drm/amd: Parse both v1 and v2 TA microcode headers using same function")
---
 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/psp_v12_0.c +0 -3
index e82a0c2bf1faa..fcd708eae75cc 100644
@@ -55,9 +55,6 @@ static int psp_v12_0_init_microcode(struct psp_context *psp)
 	amdgpu_ucode_ip_version_decode(adev, MP0_HWIP, ucode_prefix, sizeof(ucode_prefix));
 
 	err = psp_init_asd_microcode(psp, ucode_prefix);
-	if (err)
-		return err;
-	err = psp_init_ta_microcode(psp, ucode_prefix);
 	if (err)
 		return err;
 
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Mario Limonciello

During rebase from patch series accidentally ended up with two calls to load TA microcode for psp v12_0. Only one is needed, so remove the second.

Fixes f1efed401badb ("drm/amd: Parse both v1 and v2 TA microcode headers using same function")

I'll squash this into f1efed401badb.

Alex

Quoted 21 lines
---
 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/psp_v12_0.c +0 -4
index e82a0c2bf1faa..fcd708eae75cc 100644
@@ -55,9 +55,6 @@ static int psp_v12_0_init_microcode(struct psp_context *psp)
        amdgpu_ucode_ip_version_decode(adev, MP0_HWIP, ucode_prefix, sizeof(ucode_prefix));
 
        err = psp_init_asd_microcode(psp, ucode_prefix);
-       if (err)
-               return err;
-       err = psp_init_ta_microcode(psp, ucode_prefix);
        if (err)
                return err;
 
--

2.25.1

#2 lore raw

[AMD Official Use Only - General]

Quoted 14 lines

-----Original Message-----
From: Alex Deucher <[email protected]>
Sent: Tuesday, January 10, 2023 13:29
To: Limonciello, Mario <[email protected]>
Cc: [email protected]
Subject: Re: [PATCH] drm/amd: Only load TA microcode for psp v12_0 once

Quoted 5 lines · Mario Limonciello

During rebase from patch series accidentally ended up with two calls to load TA microcode for psp v12_0. Only one is needed, so remove the second.

Quoted 7 lines
Quoted 1 line
Fixes f1efed401badb ("drm/amd: Parse both v1 and v2 TA microcode

headers using same function")

Quoted 1 line

I'll squash this into f1efed401badb.

You mean when you send it up for drm-next? At least for amd-staging-drm-next it should probably be it's own separate commit though still right?

Quoted 27 lines

Alex

Review

Quoted 5 lines
---
 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c | 3 ---
 1 file changed, 3 deletions(-)
(quoted diff) +0 -0

b/drivers/gpu/drm/amd/amdgpu/psp_v12_0.c

drivers/gpu/drm/amd/amdgpu/psp_v12_0.c static int psp_v12_0_init_microcode(struct

Quoted 4 lines

index e82a0c2bf1faa..fcd708eae75cc 100644

drivers/gpu/drm/amd/amdgpu/psp_v12_0.c +0 -0
@@ -55,9 +55,6 @@ static int psp_v12_0_init_microcode(struct

psp_context *psp)

drivers/gpu/drm/amd/amdgpu/psp_v12_0.c static int psp_v12_0_init_microcode(struct · line 55

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/psp_v12_0.c +0 -0
        amdgpu_ucode_ip_version_decode(adev, MP0_HWIP, ucode_prefix,

sizeof(ucode_prefix));

Quoted 11 lines
drivers/gpu/drm/amd/amdgpu/psp_v12_0.c +0 -4
        err = psp_init_asd_microcode(psp, ucode_prefix);
-       if (err)
-               return err;
-       err = psp_init_ta_microcode(psp, ucode_prefix);
        if (err)
                return err;
 
--

2.25.1

#3 lore raw
Quoted 21 lines · Mario

[AMD Official Use Only - General]

Quoted 16 lines

-----Original Message-----
From: Alex Deucher <[email protected]>
Sent: Tuesday, January 10, 2023 13:29
To: Limonciello, Mario <[email protected]>
Cc: [email protected]
Subject: Re: [PATCH] drm/amd: Only load TA microcode for psp v12_0 once

Quoted 6 lines · Mario Limonciello

During rebase from patch series accidentally ended up with two calls to load TA microcode for psp v12_0. Only one is needed, so remove the second.

Fixes f1efed401badb ("drm/amd: Parse both v1 and v2 TA microcode

headers using same function")

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

I'll squash this into f1efed401badb.

You mean when you send it up for drm-next? At least for amd-staging-drm-next it should probably be it's own separate commit though still right?

Correct.

Alex

Quoted 28 lines
Quoted 28 lines

Alex

Review

Quoted 5 lines
---
 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c | 3 ---
 1 file changed, 3 deletions(-)
(quoted diff) +0 -0

b/drivers/gpu/drm/amd/amdgpu/psp_v12_0.c

drivers/gpu/drm/amd/amdgpu/psp_v12_0.c static int psp_v12_0_init_microcode(struct

Quoted 4 lines

index e82a0c2bf1faa..fcd708eae75cc 100644

drivers/gpu/drm/amd/amdgpu/psp_v12_0.c +0 -0
@@ -55,9 +55,6 @@ static int psp_v12_0_init_microcode(struct

psp_context *psp)

drivers/gpu/drm/amd/amdgpu/psp_v12_0.c static int psp_v12_0_init_microcode(struct · line 55

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/psp_v12_0.c +0 -0
        amdgpu_ucode_ip_version_decode(adev, MP0_HWIP, ucode_prefix,

sizeof(ucode_prefix));

Quoted 11 lines
drivers/gpu/drm/amd/amdgpu/psp_v12_0.c +0 -4
        err = psp_init_asd_microcode(psp, ucode_prefix);
-       if (err)
-               return err;
-       err = psp_init_ta_microcode(psp, ucode_prefix);
        if (err)
                return err;
 
--

2.25.1