From: Lijo Lazar Date: Tue, 18 Feb 2025 12:13:01 +0000 (+0530) Subject: drm/amd/pm: Fetch current power limit from PMFW X-Git-Tag: v6.15-rc1~120^2~17^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b2a9e562dfa156bd53e62ce571f3f8f65d243f14;p=thirdparty%2Fkernel%2Flinux.git drm/amd/pm: Fetch current power limit from PMFW 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 Reviewed-by: Asad Kamal Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c index a1164912f674a..0b32c6cf6924e 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +++ b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c @@ -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):