]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.6.5/drm-amd-powerplay-fix-bug-that-function-parameter-was-incorect.patch
5.1-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.6.5 / drm-amd-powerplay-fix-bug-that-function-parameter-was-incorect.patch
1 From 576b4401b1971fe40be4cfd379430a61cd8426b2 Mon Sep 17 00:00:00 2001
2 From: Rex Zhu <Rex.Zhu@amd.com>
3 Date: Mon, 13 Jun 2016 17:39:19 +0800
4 Subject: drm/amd/powerplay: fix bug that function parameter was incorect.
5
6 From: Rex Zhu <Rex.Zhu@amd.com>
7
8 commit 576b4401b1971fe40be4cfd379430a61cd8426b2 upstream.
9
10 Wrong value passed to acpi_pcie_perf_request.
11
12 Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
13 Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
14 Reviewed-by: Ken Wang <Qingqing.Wang@amd.com>
15 Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
16 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
17
18 ---
19 drivers/gpu/drm/amd/powerplay/hwmgr/pp_acpi.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/pp_acpi.c
23 +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/pp_acpi.c
24 @@ -54,7 +54,7 @@ int acpi_pcie_perf_request(void *device,
25 ATCS_FUNCTION_PCIE_PERFORMANCE_REQUEST,
26 &atcs_input,
27 &atcs_output,
28 - 0,
29 + 1,
30 sizeof(atcs_input),
31 sizeof(atcs_output));
32 if (result != 0)