]> git.hungrycats.org Git - linux/commitdiff
drm/amd/pm: Remove arcturus min power limit
authorLijo Lazar <lijo.lazar@amd.com>
Wed, 20 Nov 2024 03:04:39 +0000 (08:34 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Dec 2024 09:41:15 +0000 (10:41 +0100)
commit da868898cf4c5ddbd1f7406e356edce5d7211eb5 upstream.

As per power team, there is no need to impose a lower bound on arcturus
power limit. Any unreasonable limit set will result in frequent
throttling.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c

index c0f6b59369b7c4e3a93f4fe719bdace5f5f837bf..d52512f5f1bd9d667c9c5079bccb67b81b218216 100644 (file)
@@ -1344,8 +1344,12 @@ static int arcturus_get_power_limit(struct smu_context *smu,
                *default_power_limit = power_limit;
        if (max_power_limit)
                *max_power_limit = power_limit;
+       /**
+        * No lower bound is imposed on the limit. Any unreasonable limit set
+        * will result in frequent throttling.
+        */
        if (min_power_limit)
-               *min_power_limit = power_limit;
+               *min_power_limit = 0;
 
        return 0;
 }