]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.9.18/drm-amdgpu-si-add-dpm-quirk-for-oland.patch
4.14-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.9.18 / drm-amdgpu-si-add-dpm-quirk-for-oland.patch
1 From 18a8de1bc37e97dff1c96ee6cf49adbd02a0f775 Mon Sep 17 00:00:00 2001
2 From: Alex Deucher <alexander.deucher@amd.com>
3 Date: Tue, 14 Mar 2017 19:24:19 -0400
4 Subject: drm/amdgpu/si: add dpm quirk for Oland
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 From: Alex Deucher <alexander.deucher@amd.com>
10
11 commit 18a8de1bc37e97dff1c96ee6cf49adbd02a0f775 upstream.
12
13 OLAND 0x1002:0x6604 0x1028:0x066F 0x00 seems to have problems
14 with higher sclks.
15
16 Acked-by: Christian König <christian.koenig@amd.com>
17 Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
18 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
19
20 ---
21 drivers/gpu/drm/amd/amdgpu/si_dpm.c | 6 ++++++
22 1 file changed, 6 insertions(+)
23
24 --- a/drivers/gpu/drm/amd/amdgpu/si_dpm.c
25 +++ b/drivers/gpu/drm/amd/amdgpu/si_dpm.c
26 @@ -3506,6 +3506,12 @@ static void si_apply_state_adjust_rules(
27 max_sclk = 75000;
28 max_mclk = 80000;
29 }
30 + } else if (adev->asic_type == CHIP_OLAND) {
31 + if ((adev->pdev->device == 0x6604) &&
32 + (adev->pdev->subsystem_vendor == 0x1028) &&
33 + (adev->pdev->subsystem_device == 0x066F)) {
34 + max_sclk = 75000;
35 + }
36 }
37 /* Apply dpm quirks */
38 while (p && p->chip_device != 0) {