]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: add support for SMU version 15.0.9
authorKanala Ramalingeswara Reddy <Kanala.RamalingeswaraReddy@amd.com>
Wed, 17 Jun 2026 12:34:53 +0000 (18:04 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Jul 2026 20:20:02 +0000 (16:20 -0400)
Initialize SMU Version 15_0_9

Signed-off-by: Kanala Ramalingeswara Reddy <Kanala.RamalingeswaraReddy@amd.com>
Signed-off-by: Granthali Vinodkumar Dhandar <granthali.vinodkumardhandar@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 1dfd4e84b5beec353a81d61af9eaf4e5a56e0c57)

drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
drivers/gpu/drm/amd/amdgpu/soc21.c
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_0_ppt.c

index bb0ee17b4cbfb104d0c3cf007ba98f7d1bd2409e..7b9bb998906d3ab9ccfb634b8c494bb6c5f9700e 100644 (file)
@@ -2376,6 +2376,7 @@ static int amdgpu_discovery_set_smu_ip_blocks(struct amdgpu_device *adev)
        case IP_VERSION(15, 0, 0):
        case IP_VERSION(15, 0, 5):
        case IP_VERSION(15, 0, 8):
+       case IP_VERSION(15, 0, 9):
                amdgpu_device_ip_block_add(adev, &smu_v15_0_ip_block);
                break;
        default:
index 1677e88a4e3639f11798129d0be57a2be2af2c5d..a2733d1637f0108a290b5120a16dc42faacbfbf2 100644 (file)
@@ -406,6 +406,7 @@ soc21_asic_reset_method(struct amdgpu_device *adev)
        case IP_VERSION(14, 0, 4):
        case IP_VERSION(14, 0, 5):
        case IP_VERSION(15, 0, 0):
+       case IP_VERSION(15, 0, 9):
                return AMD_RESET_METHOD_MODE2;
        default:
                if (amdgpu_dpm_is_baco_supported(adev))
index 208a2fba6d408e18760ebdb56ede6ce6f46c122a..762ec3cede96e6cf34b45e83dd4a32845c000932 100644 (file)
@@ -802,6 +802,7 @@ static int smu_set_funcs(struct amdgpu_device *adev)
                break;
        case IP_VERSION(15, 0, 0):
        case IP_VERSION(15, 0, 5):
+       case IP_VERSION(15, 0, 9):
                smu_v15_0_0_set_ppt_funcs(smu);
                break;
        case IP_VERSION(15, 0, 8):
index a1318409e4b5ef0d8ed807eb56e8080eae594b5a..8fc99e93ac53626feed9398dcbe3919897e4af66 100644 (file)
@@ -664,6 +664,7 @@ int smu_v15_0_gfx_off_control(struct smu_context *smu, bool enable)
 
        switch (amdgpu_ip_version(adev, MP1_HWIP, 0)) {
        case IP_VERSION(15, 0, 0):
+       case IP_VERSION(15, 0, 9):
                if (!(adev->pm.pp_feature & PP_GFXOFF_MASK))
                        return 0;
                if (enable)
index a214ddbd4c86390591374e0e8026932b7c216294..bb8d09e73c7d06f8175a9db4747f33e2e7be8b6f 100644 (file)
@@ -1177,7 +1177,8 @@ static int smu_v15_0_common_get_dpm_profile_freq(struct smu_context *smu,
                        smu_v15_0_common_get_dpm_ultimate_freq(smu, SMU_SOCCLK, NULL, &clk_limit);
                break;
        case SMU_FCLK:
-               if (amdgpu_ip_version(smu->adev, MP1_HWIP, 0) == IP_VERSION(15, 0, 0))
+               if (amdgpu_ip_version(smu->adev, MP1_HWIP, 0) == IP_VERSION(15, 0, 0) ||
+                       amdgpu_ip_version(smu->adev, MP1_HWIP, 0) == IP_VERSION(15, 0, 9))
                        smu_v15_0_common_get_dpm_ultimate_freq(smu, SMU_FCLK, NULL, &clk_limit);
                else
                        clk_limit = SMU_15_0_UMD_PSTATE_FCLK;