drm/amdgpu: unify Vega20 PSP SOS firmwares for A0 and A1
Subsystems (2)
PATCH 1/1 drm/amdgpu: unify Vega20 PSP SOS firmwares for A0 and A1
The new PSP SOS firmware can support both A0 and A1.
Change-Id: I9bf85eb77b183a4403667c77e291e32689aed0af
--- drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-)
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c +1 -11
@@ -34,14 +34,11 @@#include "nbio/nbio_7_4_offset.h" MODULE_FIRMWARE ("amdgpu/vega20_sos.bin" ); -MODULE_FIRMWARE ("amdgpu/vega20_sos_old.bin" );MODULE_FIRMWARE ("amdgpu/vega20_ta.bin" );/* address block */ #define smnMP1_FIRMWARE_FLAGS 0x3010024 -#define VEGA20_BL_VERSION_VAR_NEW 0xA1 -static int psp_v11_0_get_fw_type (struct amdgpu_firmware_info *ucode,enum psp_gfx_fw_type *type) {
@@ -104,7 +101,6 @@ static int psp_v11_0_init_microcode(struct psp_context *psp)int err =0 ;const struct psp_firmware_header_v1_0 *sos_hdr;const struct ta_firmware_header_v1_0 *ta_hdr; -uint32_t bl_version;DRM_DEBUG ("\n" );
@@ -116,13 +112,7 @@ static int psp_v11_0_init_microcode(struct psp_context *psp)BUG (); } - bl_version =RREG32_SOC15 (MP0 ,0 , mmMP0_SMN_C2PMSG_100); - bl_version = (bl_version &0xFF0000 ) >>16 ; - -if (bl_version ==VEGA20_BL_VERSION_VAR_NEW ) -snprintf (fw_name,sizeof (fw_name),"amdgpu/%s_sos.bin" , chip_name); -else -snprintf (fw_name,sizeof (fw_name),"amdgpu/%s_sos_old.bin" , chip_name); +snprintf (fw_name,sizeof (fw_name),"amdgpu/%s_sos.bin" , chip_name); err =request_firmware (&adev->psp.sos_fw, fw_name, adev->dev);if (err) goto out;
Signature · 6 lines
2.19.2 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): [email protected]
Deucher, Alexander
Acked-by________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Evan Quan <[email protected]>
Sent: Thursday, December 13, 2018 1:14:51 AM
To: [email protected]
Cc: Quan, Evan
Subject: [PATCH] drm/amdgpu: unify Vega20 PSP SOS firmwares for A0 and A1
The new PSP SOS firmware can support both A0 and A1.
Change-Id: I9bf85eb77b183a4403667c77e291e32689aed0af
--- drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-)
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c +1 -11
@@ -34,14 +34,11 @@#include "nbio/nbio_7_4_offset.h" MODULE_FIRMWARE ("amdgpu/vega20_sos.bin" ); -MODULE_FIRMWARE ("amdgpu/vega20_sos_old.bin" );MODULE_FIRMWARE ("amdgpu/vega20_ta.bin" );/* address block */ #define smnMP1_FIRMWARE_FLAGS 0x3010024 -#define VEGA20_BL_VERSION_VAR_NEW 0xA1 -static int psp_v11_0_get_fw_type (struct amdgpu_firmware_info *ucode,enum psp_gfx_fw_type *type) {
@@ -104,7 +101,6 @@ static int psp_v11_0_init_microcode(struct psp_context *psp)int err =0 ;const struct psp_firmware_header_v1_0 *sos_hdr;const struct ta_firmware_header_v1_0 *ta_hdr; -uint32_t bl_version;DRM_DEBUG ("\n" );
@@ -116,13 +112,7 @@ static int psp_v11_0_init_microcode(struct psp_context *psp)BUG (); } - bl_version =RREG32_SOC15 (MP0 ,0 , mmMP0_SMN_C2PMSG_100); - bl_version = (bl_version &0xFF0000 ) >>16 ; - -if (bl_version ==VEGA20_BL_VERSION_VAR_NEW ) -snprintf (fw_name,sizeof (fw_name),"amdgpu/%s_sos.bin" , chip_name); -else -snprintf (fw_name,sizeof (fw_name),"amdgpu/%s_sos_old.bin" , chip_name); +snprintf (fw_name,sizeof (fw_name),"amdgpu/%s_sos.bin" , chip_name); err =request_firmware (&adev->psp.sos_fw, fw_name, adev->dev);if (err) goto out;
--
2.19.2
_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): BN6PR12MB180900FC993E80DD7F22127AF7A00-/b2+HYfkarSEx6ez0IUAagdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
Grodzovsky, Andrey
Acked-by Alex DeucherWith this change in latest drm-next and related commit in latest FW i get
[ 148.887374] [drm:psp_hw_init [amdgpu]] *ERROR* PSP firmware loading failed [ 148.887535] [drm:amdgpu_device_fw_loading [amdgpu]] *ERROR* hw_init of IP block <psp> failed -22
Had to revert to be able to boot.
Andrey
On 12/13/2018 10:05 AM, Deucher, Alexander wrote:
________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org><mailto:[email protected]> on behalf of Evan Quan <[email protected]><mailto:[email protected]>
Sent: Thursday, December 13, 2018 1:14:51 AM
To: [email protected]<mailto:[email protected]>
Cc: Quan, Evan
Subject: [PATCH] drm/amdgpu: unify Vega20 PSP SOS firmwares for A0 and A1
The new PSP SOS firmware can support both A0 and A1.
Change-Id: I9bf85eb77b183a4403667c77e291e32689aed0af
--- drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-)
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c +1 -11
@@ -34,14 +34,11 @@#include "nbio/nbio_7_4_offset.h" MODULE_FIRMWARE ("amdgpu/vega20_sos.bin" ); -MODULE_FIRMWARE ("amdgpu/vega20_sos_old.bin" );MODULE_FIRMWARE ("amdgpu/vega20_ta.bin" );/* address block */ #define smnMP1_FIRMWARE_FLAGS 0x3010024 -#define VEGA20_BL_VERSION_VAR_NEW 0xA1 -static int psp_v11_0_get_fw_type (struct amdgpu_firmware_info *ucode,enum psp_gfx_fw_type *type) {
@@ -104,7 +101,6 @@ static int psp_v11_0_init_microcode(struct psp_context *psp)int err =0 ;const struct psp_firmware_header_v1_0 *sos_hdr;const struct ta_firmware_header_v1_0 *ta_hdr; -uint32_t bl_version;DRM_DEBUG ("\n" );
@@ -116,13 +112,7 @@ static int psp_v11_0_init_microcode(struct psp_context *psp)BUG (); } - bl_version =RREG32_SOC15 (MP0 ,0 , mmMP0_SMN_C2PMSG_100); - bl_version = (bl_version &0xFF0000 ) >>16 ; - -if (bl_version ==VEGA20_BL_VERSION_VAR_NEW ) -snprintf (fw_name,sizeof (fw_name),"amdgpu/%s_sos.bin" , chip_name); -else -snprintf (fw_name,sizeof (fw_name),"amdgpu/%s_sos_old.bin" , chip_name); +snprintf (fw_name,sizeof (fw_name),"amdgpu/%s_sos.bin" , chip_name); err =request_firmware (&adev->psp.sos_fw, fw_name, adev->dev);if (err) goto out;
--
2.19.2
_______________________________________________
amd-gfx mailing list [email protected]<mailto:[email protected]>
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list [email protected]<mailto:[email protected]>
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx