aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3614-drm-amd-powerplay-fix-power-over-limit-on-Fiji.patch
blob: 0c3cfdc1ab0750f2bdd4abbd83c2e3fd7da9e334 (plain)
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
From 5e9d99bd5762025f5f159bc40dc327fc878acdc8 Mon Sep 17 00:00:00 2001
From: Eric Huang <JinHuiEric.Huang@amd.com>
Date: Mon, 26 Feb 2018 17:36:19 -0500
Subject: [PATCH 3614/4131] drm/amd/powerplay: fix power over limit on Fiji

power containment disabled only on Fiji and compute
power profile. It violates PCIe spec and may cause power
supply failed. Enabling it will fix the issue, even the
fix will drop performance of some compute tests.

Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c b/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c
index 9241218..981e233 100644
--- a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c
@@ -1615,7 +1615,7 @@ static const struct amdgpu_ring_funcs uvd_v6_0_enc_ring_vm_funcs = {
 		4 + /* uvd_v6_0_enc_ring_emit_pipeline_sync */
 		5 + /* uvd_v6_0_enc_ring_emit_vm_flush */
 		5 + 5 + /* uvd_v6_0_enc_ring_emit_fence x2 vm fence */
-		1, /* uvd_v6_0_enc_ring_insert_end */
+		1, /* uvd_v6_0_enc_ring_insert_end  */
 	.emit_ib_size = 5, /* uvd_v6_0_enc_ring_emit_ib */
 	.emit_ib = uvd_v6_0_enc_ring_emit_ib,
 	.emit_fence = uvd_v6_0_enc_ring_emit_fence,
-- 
2.7.4