-
Notifications
You must be signed in to change notification settings - Fork 1
/
0001-drm-amd-pm-update-the-default-power-limit-on-smu-13..patch
39 lines (34 loc) · 1.59 KB
/
0001-drm-amd-pm-update-the-default-power-limit-on-smu-13..patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From 84a1e68e25932cf879e60bd17e4a98871d5f9cb9 Mon Sep 17 00:00:00 2001
From: Kenneth Feng <[email protected]>
Date: Fri, 27 Sep 2024 16:48:06 +0800
Subject: [PATCH 1/3] drm/amd/pm: update the default power limit on smu 13.0.0
update the default power limit on smu 13.0.0 for better performance
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/3618
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/3131
Fixes: c50fe289ed7207 ("drm/amdgpu/swsmu: always force a state reprogram on init")
Signed-off-by: Kenneth Feng <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
---
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
index 866dc77d1005..7bcbb593919f 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
@@ -2350,11 +2350,12 @@ static int smu_v13_0_0_get_power_limit(struct smu_context *smu,
power_limit = smu->adev->pm.ac_power ?
skutable->SocketPowerLimitAc[PPT_THROTTLER_PPT0] :
skutable->SocketPowerLimitDc[PPT_THROTTLER_PPT0];
-
+ if (power_limit < msg_limit)
+ smu_v13_0_set_power_limit(smu, SMU_DEFAULT_PPT_LIMIT, msg_limit);
if (current_power_limit)
- *current_power_limit = power_limit;
+ *current_power_limit = msg_limit;
if (default_power_limit)
- *default_power_limit = power_limit;
+ *default_power_limit = msg_limit;
if (powerplay_table) {
if (smu->od_enabled &&
--
2.46.2