]> www.infradead.org Git - users/dwmw2/linux.git/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)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 21 Nov 2024 20:56:06 +0000 (15:56 -0500)
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
drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c

index 4b36c230e43a0928d7d640f9c94091724b946893..12125303bb7991b521fcc58b788d5fae0c7a6547 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;
 }