]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/pm: Fetch current power limit from PMFW
authorLijo Lazar <lijo.lazar@amd.com>
Tue, 18 Feb 2025 12:13:01 +0000 (17:43 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 19 Feb 2025 20:16:18 +0000 (15:16 -0500)
On SMU v13.0.12, always query the firmware to get the current power
limit as it could be updated through other means also.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Asad Kamal <asad.kamal@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c

index a1164912f674a0cab2ac9f037273aaf619437bd0..0b32c6cf6924e5419c55da50fb2acfaaad345b4f 100644 (file)
@@ -2791,6 +2791,7 @@ int smu_get_power_limit(void *handle,
                        switch (amdgpu_ip_version(adev, MP1_HWIP, 0)) {
                        case IP_VERSION(13, 0, 2):
                        case IP_VERSION(13, 0, 6):
+                       case IP_VERSION(13, 0, 12):
                        case IP_VERSION(13, 0, 14):
                        case IP_VERSION(11, 0, 7):
                        case IP_VERSION(11, 0, 11):