drm/amdgpu: both support PCO FP5/AM4 rlc fw
Subsystems (2)
PATCH 1/1 drm/amdgpu: both support PCO FP5/AM4 rlc fw
For Picasso && AM4 SOCKET board, we use picasso_rlc_am4.bin For Picasso && FP5 SOCKET board, we use picasso_rlc.bin
Judgment method:
PCO AM4: revision >= 0xC8 && revision <= 0xCF
or revision >= 0xD8 && revision <= 0xDF
otherwise is PCO FP5
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +15 -1
@@ -86,6 +86,7 @@ MODULE_FIRMWARE("amdgpu/picasso_me.bin");MODULE_FIRMWARE ("amdgpu/picasso_mec.bin" );MODULE_FIRMWARE ("amdgpu/picasso_mec2.bin" );MODULE_FIRMWARE ("amdgpu/picasso_rlc.bin" ); +MODULE_FIRMWARE ("amdgpu/picasso_rlc_am4.bin" );MODULE_FIRMWARE ("amdgpu/raven2_ce.bin" );MODULE_FIRMWARE ("amdgpu/raven2_pfp.bin" );
@@ -645,7 +646,20 @@ static int gfx_v9_0_init_microcode(struct amdgpu_device *adev) adev->gfx.ce_fw_version =le32_to_cpu (cp_hdr->header.ucode_version); adev->gfx.ce_feature_version =le32_to_cpu (cp_hdr->ucode_feature_version); -snprintf (fw_name,sizeof (fw_name),"amdgpu/%s_rlc.bin" , chip_name); +/* +* For Picasso && AM4 SOCKET board, we use picasso_rlc_am4.bin +* instead of picasso_rlc.bin. +* Judgment method: +* PCO AM4: revision >= 0xC8 && revision <= 0xCF +* or revision >= 0xD8 && revision <= 0xDF +* otherwise is PCO FP5 +*/ +if (!strcmp (chip_name,"picasso" ) && + (((adev->pdev->revision >=0xC8 ) && (adev->pdev->revision <=0xCF )) || + ((adev->pdev->revision >=0xD8 ) && (adev->pdev->revision <=0xDF )))) +snprintf (fw_name,sizeof (fw_name),"amdgpu/%s_rlc_am4.bin" , chip_name); +else +snprintf (fw_name,sizeof (fw_name),"amdgpu/%s_rlc.bin" , chip_name); err =request_firmware (&adev->gfx.rlc_fw, fw_name, adev->dev);if (err) goto out;
Signature · 6 lines
2.7.4 _______________________________________________ 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): 1544059612-3380-1-git-send-email-aaron.liu-5C7GfCeVMHo@public.gmane.org
Huang, Ray
Reviewed-by Huang RuiQuoted 11 lines
-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Aaron Liu
Sent: Thursday, December 06, 2018 9:27 AM
To: [email protected]
Cc: Liu, Aaron <[email protected]>
Subject: [PATCH] drm/amdgpu: both support PCO FP5/AM4 rlc fwFor Picasso && AM4 SOCKET board, we use picasso_rlc_am4.bin For Picasso && FP5 SOCKET board, we use picasso_rlc.bin
Quoted 6 lines
Judgment method:
PCO AM4: revision >=0xC8&& revision <=0xCFor revision >= 0xD8 && revision <= 0xDF otherwise is PCO FP5Change-Id I359f0a3d1bc7d4d49c871cb3fb82797c7b91b259Signed-off-by Aaron Liu <[email protected]>
Quoted 50 lines
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +1
-1@@ -86,6 +86,7 @@ MODULE_FIRMWARE("amdgpu/picasso_me.bin");MODULE_FIRMWARE ("amdgpu/picasso_mec.bin" );MODULE_FIRMWARE ("amdgpu/picasso_mec2.bin" );MODULE_FIRMWARE ("amdgpu/picasso_rlc.bin" ); +MODULE_FIRMWARE ("amdgpu/picasso_rlc_am4.bin" );MODULE_FIRMWARE ("amdgpu/raven2_ce.bin" );MODULE_FIRMWARE ("amdgpu/raven2_pfp.bin" );@@ -645,7 +646,20 @@ static int gfx_v9_0_init_microcode(struct amdgpu_device *adev) adev->gfx.ce_fw_version = le32_to_cpu(cp_hdr- >header.ucode_version); adev->gfx.ce_feature_version =le32_to_cpu (cp_hdr- >ucode_feature_version); - snprintf(fw_name, sizeof(fw_name), "amdgpu/%s_rlc.bin",
chip_name);drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +10
-0+/* +* For Picasso && AM4 SOCKET board, we use picasso_rlc_am4.bin +* instead of picasso_rlc.bin. +* Judgment method: +* PCO AM4: revision >= 0xC8 && revision <= 0xCF +* or revision >= 0xD8 && revision <= 0xDF +* otherwise is PCO FP5 +*/ + if (!strcmp(chip_name, "picasso") && + (((adev->pdev->revision >= 0xC8) && (adev->pdev->revision<=
0xCF)) ||drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +1
-0+ ((adev->pdev->revision >= 0xD8) && (adev->pdev->revision<=
0xDF))))drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +1
-0+ snprintf(fw_name, sizeof(fw_name),"amdgpu/%s_rlc_am4.bin",
chip_name);drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +2
-0+else + snprintf(fw_name, sizeof(fw_name), "amdgpu/%s_rlc.bin",
chip_name);drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0
-1err =request_firmware (&adev->gfx.rlc_fw, fw_name, adev->dev);if (err) goto out; --2.7.4
Quoted 4 lines
_______________________________________________
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
Deucher, Alexander
Reviewed-by________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Aaron Liu <[email protected]>
Sent: Wednesday, December 5, 2018 8:26:52 PM
To: [email protected]
Cc: Liu, Aaron
Subject: [PATCH] drm/amdgpu: both support PCO FP5/AM4 rlc fw
For Picasso && AM4 SOCKET board, we use picasso_rlc_am4.bin For Picasso && FP5 SOCKET board, we use picasso_rlc.bin
Judgment method:
PCO AM4: revision >= 0xC8 && revision <= 0xCF
or revision >= 0xD8 && revision <= 0xDF
otherwise is PCO FP5
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +15 -1
@@ -86,6 +86,7 @@ MODULE_FIRMWARE("amdgpu/picasso_me.bin");MODULE_FIRMWARE ("amdgpu/picasso_mec.bin" );MODULE_FIRMWARE ("amdgpu/picasso_mec2.bin" );MODULE_FIRMWARE ("amdgpu/picasso_rlc.bin" ); +MODULE_FIRMWARE ("amdgpu/picasso_rlc_am4.bin" );MODULE_FIRMWARE ("amdgpu/raven2_ce.bin" );MODULE_FIRMWARE ("amdgpu/raven2_pfp.bin" );
@@ -645,7 +646,20 @@ static int gfx_v9_0_init_microcode(struct amdgpu_device *adev) adev->gfx.ce_fw_version =le32_to_cpu (cp_hdr->header.ucode_version); adev->gfx.ce_feature_version =le32_to_cpu (cp_hdr->ucode_feature_version); -snprintf (fw_name,sizeof (fw_name),"amdgpu/%s_rlc.bin" , chip_name); +/* +* For Picasso && AM4 SOCKET board, we use picasso_rlc_am4.bin +* instead of picasso_rlc.bin. +* Judgment method: +* PCO AM4: revision >= 0xC8 && revision <= 0xCF +* or revision >= 0xD8 && revision <= 0xDF +* otherwise is PCO FP5 +*/ +if (!strcmp (chip_name,"picasso" ) && + (((adev->pdev->revision >=0xC8 ) && (adev->pdev->revision <=0xCF )) || + ((adev->pdev->revision >=0xD8 ) && (adev->pdev->revision <=0xDF )))) +snprintf (fw_name,sizeof (fw_name),"amdgpu/%s_rlc_am4.bin" , chip_name); +else +snprintf (fw_name,sizeof (fw_name),"amdgpu/%s_rlc.bin" , chip_name); err =request_firmware (&adev->gfx.rlc_fw, fw_name, adev->dev);if (err) goto out;
--
2.7.4
_______________________________________________
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