Skip to contentSkip to conversation

drm/amd/pm: Remove arcturus min power limit

PATCH In review Lijo Lazar 2 participants 2 messages Nov 20, 2024

Subsystems (3)
lore
Share & tools
lore

Lijo Lazar

author
#0 lore raw

PATCH 1/1 drm/amd/pm: Remove arcturus min power limit

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.

---
 drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c +5 -1
index 4b36c230e43a..12125303bb79 100644
@@ -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;
 }
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only - AMD Internal Distribution Only]

Regards,
Hawking
-----Original Message-----
From: Lazar, Lijo <[email protected]>
Sent: Wednesday, November 20, 2024 11:14
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Deucher, Alexander <[email protected]>; Feng, Kenneth <[email protected]>
Subject: [PATCH] drm/amd/pm: Remove arcturus min power limit

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.

---
 drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c +5 -1
index 4b36c230e43a..12125303bb79 100644
@@ -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;
 }

--
2.25.1