]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd/pm: support mode1 reset on smu_v14_0_3
authorKenneth Feng <kenneth.feng@amd.com>
Wed, 31 Jan 2024 07:36:12 +0000 (15:36 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 2 May 2024 20:18:15 +0000 (16:18 -0400)
support mode1 reset on smu_v14_0_3

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc24.c
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c

index 1bbcd23e703baf7cc75436f1c3a4ad6241e3006b..12900488dd61878d6d6c56fcb594fbf22a2604c0 100644 (file)
@@ -204,6 +204,7 @@ soc24_asic_reset_method(struct amdgpu_device *adev)
 
        switch (amdgpu_ip_version(adev, MP1_HWIP, 0)) {
        case IP_VERSION(14, 0, 2):
+       case IP_VERSION(14, 0, 3):
                return AMD_RESET_METHOD_MODE1;
        default:
                if (amdgpu_dpm_is_baco_supported(adev))
index bdf9f80311870790d44db386bd0fdc94c6a51bc4..dc0d3a9f1d6dfcb52f552cefbdf29148502d12f5 100644 (file)
@@ -1845,6 +1845,8 @@ static int smu_disable_dpms(struct smu_context *smu)
        case IP_VERSION(13, 0, 0):
        case IP_VERSION(13, 0, 7):
        case IP_VERSION(13, 0, 10):
+       case IP_VERSION(14, 0, 2):
+       case IP_VERSION(14, 0, 3):
                return 0;
        default:
                break;