]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-4.19/drm-amdgpu-powerplay-fix-clock-stretcher-limits-on-p.patch
autosel patches for 4.19
[thirdparty/kernel/stable-queue.git] / queue-4.19 / drm-amdgpu-powerplay-fix-clock-stretcher-limits-on-p.patch
1 From fd7c024c16c41d243f7a228eb41b1c42a795c5f8 Mon Sep 17 00:00:00 2001
2 From: Alex Deucher <alexander.deucher@amd.com>
3 Date: Thu, 29 Nov 2018 19:22:07 -0500
4 Subject: drm/amdgpu/powerplay: fix clock stretcher limits on polaris (v2)
5
6 [ Upstream commit de4aaab5cc9770a8c4dc13d9bfb6a83b06bba57e ]
7
8 Adjust limits for newer polaris variants.
9
10 v2: fix polaris11 kicker (Jerry)
11
12 Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
13 Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
14 Signed-off-by: Sasha Levin <sashal@kernel.org>
15 ---
16 .../drm/amd/powerplay/smumgr/polaris10_smumgr.c | 17 +++++++++++++++--
17 1 file changed, 15 insertions(+), 2 deletions(-)
18
19 diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c b/drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c
20 index 5b67f575cd34..45629f26dbc2 100644
21 --- a/drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c
22 +++ b/drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c
23 @@ -1528,8 +1528,21 @@ static int polaris10_populate_clock_stretcher_data_table(struct pp_hwmgr *hwmgr)
24 efuse = efuse >> 24;
25
26 if (hwmgr->chip_id == CHIP_POLARIS10) {
27 - min = 1000;
28 - max = 2300;
29 + if (hwmgr->is_kicker) {
30 + min = 1200;
31 + max = 2500;
32 + } else {
33 + min = 1000;
34 + max = 2300;
35 + }
36 + } else if (hwmgr->chip_id == CHIP_POLARIS11) {
37 + if (hwmgr->is_kicker) {
38 + min = 900;
39 + max = 2100;
40 + } else {
41 + min = 1100;
42 + max = 2100;
43 + }
44 } else {
45 min = 1100;
46 max = 2100;
47 --
48 2.19.1
49