drm/amd/pm: add smu_v13_0_10 support
Subsystems (3)
Alex Deucher
maintainerPATCH 1/4 drm/amd/pm: add smu_v13_0_10 support
From: Yang Wang <[email protected]>
add smu_v13_0_10 support.
Signed-off-by Yang Wang <[email protected]>
Reviewed-by Hawking Zhang <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 1 + drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 1 + 2 files changed, 2 insertions(+)
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +1 -0
@@ -605,6 +605,7 @@ static int smu_set_funcs(struct amdgpu_device *adev) smu->od_enabled = true;break ;case IP_VERSION (13 ,0 ,0 ): +case IP_VERSION (13 ,0 ,10 ):smu_v13_0_0_set_ppt_funcs (smu);break ;case IP_VERSION (13 ,0 ,7 ):
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c +1 -0
@@ -59,6 +59,7 @@MODULE_FIRMWARE ("amdgpu/aldebaran_smc.bin" );MODULE_FIRMWARE ("amdgpu/smu_13_0_0.bin" );MODULE_FIRMWARE ("amdgpu/smu_13_0_7.bin" ); +MODULE_FIRMWARE ("amdgpu/smu_13_0_10.bin" );#define mmMP1_SMN_C2PMSG_66 0x0282#define mmMP1_SMN_C2PMSG_66_BASE_IDX 0
Signature · 1 line
2.37.1
Alex Deucher
maintainerPATCH 2/4 drm/amd/pm: add smu_v13_0_10 driver if version
From: Yang Wang <[email protected]>
add smu_v13_0_10 driver if version
Signed-off-by Yang Wang <[email protected]>
Reviewed-by Hawking Zhang <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h | 1 + drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 3 +++ 2 files changed, 4 insertions(+)
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h +1 -0
@@ -32,6 +32,7 @@#define SMU13_DRIVER_IF_VERSION_SMU_V13_0_5 0x04#define SMU13_DRIVER_IF_VERSION_SMU_V13_0_0 0x2E#define SMU13_DRIVER_IF_VERSION_SMU_V13_0_7 0x2C +#define SMU13_DRIVER_IF_VERSION_SMU_V13_0_10 0x1D#define SMU13_MODE1_RESET_WAIT_TIME_IN_MS 500 //500ms
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c +3 -0
@@ -331,6 +331,9 @@ int smu_v13_0_check_fw_version(struct smu_context *smu)case IP_VERSION (13 ,0 ,5 ): smu->smc_driver_if_version =SMU13_DRIVER_IF_VERSION_SMU_V13_0_5 ;break ; +case IP_VERSION (13 ,0 ,10 ): + smu->smc_driver_if_version =SMU13_DRIVER_IF_VERSION_SMU_V13_0_10 ; +break ;default :dev_err (adev->dev,"smu unsupported IP version: 0x%x.\n" , adev->ip_versions[MP1_HWIP ][0 ]);
Signature · 1 line
2.37.1
Alex Deucher
maintainerPATCH 3/4 drm/amdgpu: added supported smu 13.0.10 sw pptable
In reply to Alex DeucherFrom: John Clements <[email protected]>
added sw pptable id 6666 for smu 13.0.10
Signed-off-by John Clements <[email protected]>
Signed-off-by Likun Gao <[email protected]>
Reviewed-by Hawking Zhang <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c +2 -0
@@ -500,6 +500,8 @@ int smu_v13_0_setup_pptable(struct smu_context *smu)return -EINVAL ; } } +else if (adev->ip_versions[MP1_HWIP ][0 ] ==IP_VERSION (13 ,0 ,10 )) + pptable_id =6666 ; }/* force using vbios pptable in sriov mode */
Signature · 1 line
2.37.1
Alex Deucher
maintainerPATCH 4/4 drm/amdgpu: enable smu block for smu 13.0.10
In reply to Alex DeucherFrom: John Clements <[email protected]>
Force to enable smu block for SMU v13.0.10
Signed-off-by John Clements <[email protected]>
Signed-off-by Likun Gao <[email protected]>
Reviewed-by Hawking Zhang <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +1 -0
@@ -1684,6 +1684,7 @@ static int amdgpu_discovery_set_smu_ip_blocks(struct amdgpu_device *adev)case IP_VERSION (13 ,0 ,5 ):case IP_VERSION (13 ,0 ,7 ):case IP_VERSION (13 ,0 ,8 ): +case IP_VERSION (13 ,0 ,10 ):amdgpu_device_ip_block_add (adev, &smu_v13_0_ip_block);break ;default :
Signature · 1 line
2.37.1