aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0829-SDMA-macro-define-missing.patch
blob: 84264fa5290dba8d61e8c0df7d3018f006634dd3 (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
From f5da19d4f04a2958d487a973a6e84043ac8e3795 Mon Sep 17 00:00:00 2001
From: Yong Zhao <yong.zhao@amd.com>
Date: Wed, 30 Mar 2016 18:26:03 -0400
Subject: [PATCH 0829/4131] SDMA macro define missing.

This define should be provided from the IP block header. Add it
directly to the source file as a quick fix.

Change-Id: I215d37f9842015ac7f376abeb8cc118f94b7e840
---
 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
index 6f76b26..b65b4e3 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
@@ -48,6 +48,8 @@
 #include "oss/oss_2_0_d.h"
 #include "oss/oss_2_0_sh_mask.h"
 
+#define NUM_SIMD_PER_CU 0x4
+
 #define GFX7_NUM_GFX_RINGS     1
 #define GFX7_MEC_HPD_SIZE      2048
 
-- 
2.7.4