Skip to content

Commit 80ffdc2

Browse files
Tim Huangalexdeucher
authored andcommitted
drm/amd/pm: add SMU IP v14.0.4 support
This patch is to add SMU 14.0.4 support. Signed-off-by: Li Ma <[email protected]> Signed-off-by: Tim Huang <[email protected]> Reviewed-by: Yifan Zhang <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 11382d0 commit 80ffdc2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,7 @@ static int smu_set_funcs(struct amdgpu_device *adev)
727727
break;
728728
case IP_VERSION(14, 0, 0):
729729
case IP_VERSION(14, 0, 1):
730+
case IP_VERSION(14, 0, 4):
730731
smu_v14_0_0_set_ppt_funcs(smu);
731732
break;
732733
case IP_VERSION(14, 0, 2):

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ int smu_v14_0_check_fw_version(struct smu_context *smu)
243243

244244
switch (amdgpu_ip_version(adev, MP1_HWIP, 0)) {
245245
case IP_VERSION(14, 0, 0):
246+
case IP_VERSION(14, 0, 4):
246247
smu->smc_driver_if_version = SMU14_DRIVER_IF_VERSION_SMU_V14_0_0;
247248
break;
248249
case IP_VERSION(14, 0, 1):
@@ -757,6 +758,7 @@ int smu_v14_0_gfx_off_control(struct smu_context *smu, bool enable)
757758
case IP_VERSION(14, 0, 1):
758759
case IP_VERSION(14, 0, 2):
759760
case IP_VERSION(14, 0, 3):
761+
case IP_VERSION(14, 0, 4):
760762
if (!(adev->pm.pp_feature & PP_GFXOFF_MASK))
761763
return 0;
762764
if (enable)

0 commit comments

Comments
 (0)