]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 May 2025 09:13:15 +0000 (11:13 +0200)
[ Upstream commit b2a9e562dfa156bd53e62ce571f3f8f65d243f14 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c

index ed9dac00ebfb1805a5ab93e00f39ce7e6913a26f..f3f5b7dd15ccca806677f6aa824e0cf2b33d3c8d 100644 (file)
@@ -2802,6 +2802,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):