]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
drm/amd/pm: Fetch current power limit from FW
authorLijo Lazar <lijo.lazar@amd.com>
Thu, 18 Jan 2024 08:55:35 +0000 (14:25 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 25 Jan 2024 19:46:56 +0000 (14:46 -0500)
Power limit of SMUv13.0.6 SOCs can be updated by out-of-band ways. Fetch
the limit from firmware instead of using cached values.

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 13223fbaf3faa0743f5445e1c4db3e4eafa1400d..0ad947df777ab2665a8f0de986a5d39737dd9ded 100644 (file)
@@ -2674,6 +2674,7 @@ int smu_get_power_limit(void *handle,
                case SMU_PPT_LIMIT_CURRENT:
                        switch (amdgpu_ip_version(adev, MP1_HWIP, 0)) {
                        case IP_VERSION(13, 0, 2):
+                       case IP_VERSION(13, 0, 6):
                        case IP_VERSION(11, 0, 7):
                        case IP_VERSION(11, 0, 11):
                        case IP_VERSION(11, 0, 12):