Skip to content

Commit 1e84112

Browse files
yifancomalexdeucher
authored andcommitted
drm/amdgpu: add smu 14.0.1 support
This patch to add smu 14.0.1 support. Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 155d468 commit 1e84112

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,7 @@ static int smu_set_funcs(struct amdgpu_device *adev)
712712
smu_v13_0_7_set_ppt_funcs(smu);
713713
break;
714714
case IP_VERSION(14, 0, 0):
715+
case IP_VERSION(14, 0, 1):
715716
smu_v14_0_0_set_ppt_funcs(smu);
716717
break;
717718
default:
@@ -1895,6 +1896,7 @@ static int smu_disable_dpms(struct smu_context *smu)
18951896
case IP_VERSION(13, 0, 4):
18961897
case IP_VERSION(13, 0, 11):
18971898
case IP_VERSION(14, 0, 0):
1899+
case IP_VERSION(14, 0, 1):
18981900
return 0;
18991901
default:
19001902
break;

drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,10 @@ int smu_v14_0_check_fw_version(struct smu_context *smu)
231231
case IP_VERSION(14, 0, 0):
232232
smu->smc_driver_if_version = SMU14_DRIVER_IF_VERSION_SMU_V14_0_0;
233233
break;
234+
case IP_VERSION(14, 0, 1):
235+
smu->smc_driver_if_version = SMU14_DRIVER_IF_VERSION_SMU_V14_0_0;
236+
break;
237+
234238
default:
235239
dev_err(adev->dev, "smu unsupported IP version: 0x%x.\n",
236240
amdgpu_ip_version(adev, MP1_HWIP, 0));
@@ -734,6 +738,7 @@ int smu_v14_0_gfx_off_control(struct smu_context *smu, bool enable)
734738
switch (amdgpu_ip_version(adev, MP1_HWIP, 0)) {
735739
case IP_VERSION(14, 0, 2):
736740
case IP_VERSION(14, 0, 0):
741+
case IP_VERSION(14, 0, 1):
737742
if (!(adev->pm.pp_feature & PP_GFXOFF_MASK))
738743
return 0;
739744
if (enable)

0 commit comments

Comments
 (0)