drm/amd: Only load TA microcode for psp v12_0 once
Subsystems (2)
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.
--- 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
@@ -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
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")Signed-off-by Mario Limonciello <[email protected]>
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@@ -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
[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 pspv12_0onceQuoted 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 microcodeheaders using same function")
Quoted 1 line
Signed-off-by Mario Limonciello <[email protected]>Reviewed-by Alex Deucher <[email protected]>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.cdrivers/gpu/drm/amd/amdgpu/psp_v12_0.c static int psp_v12_0_init_microcode(struct
Quoted 4 lines
index
e82a0c2bf1faa..fcd708eae75cc100644drivers/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
-0amdgpu_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
-4err =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
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 pspv12_0onceQuoted 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 microcodeheaders using same function")
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Signed-off-by Mario Limonciello <[email protected]>Reviewed-by Alex Deucher <[email protected]>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.cdrivers/gpu/drm/amd/amdgpu/psp_v12_0.c static int psp_v12_0_init_microcode(struct
Quoted 4 lines
index
e82a0c2bf1faa..fcd708eae75cc100644drivers/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
-0amdgpu_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
-4err =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