[PATCH] drm/amd/pm: Return 0 as default min power limit for legacy asics

Feng, Kenneth Kenneth.Feng at amd.com
Fri Oct 27 01:58:44 UTC 2023


[AMD Official Use Only - General]

Reviewed-by: Kenneth Feng <kenneth.feng at amd.com>


-----Original Message-----
From: Ma, Jun <Jun.Ma2 at amd.com>
Sent: Friday, October 27, 2023 9:57 AM
To: amd-gfx at lists.freedesktop.org; Feng, Kenneth <Kenneth.Feng at amd.com>; Deucher, Alexander <Alexander.Deucher at amd.com>
Cc: Ma, Jun <Jun.Ma2 at amd.com>
Subject: [PATCH] drm/amd/pm: Return 0 as default min power limit for legacy asics

Return 0 as the default min power limit for the asics using powerplay.

Signed-off-by: Ma Jun <Jun.Ma2 at amd.com>
---
 drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c b/drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c
index 9e4f8a4104a3..914c15387157 100644
--- a/drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c
+++ b/drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c
@@ -1022,6 +1022,9 @@ static int pp_get_power_limit(void *handle, uint32_t *limit,
                                *limit /= 100;
                        }
                        break;
+               case PP_PWR_LIMIT_MIN:
+                       *limit = 0;
+                       break;
                default:
                        ret = -EOPNOTSUPP;
                        break;
--
2.34.1



More information about the amd-gfx mailing list