aboutsummaryrefslogtreecommitdiffstats
path: root/meta-v1000/recipes-kernel/linux/linux-yocto-4.14.71/1375-drm-amdgpu-Add-lds_size-to-struct-amdgpu_cu_info.patch
blob: b0e0bff76a93fe0e0bcdfcfc2f28594908afd3d4 (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
33
34
35
36
37
38
39
40
41
42
From a5bbf8f743edde544562126200c1bd1ffcd01dbf Mon Sep 17 00:00:00 2001
From: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Date: Thu, 5 Nov 2015 11:17:39 -0500
Subject: [PATCH 1375/4131] drm/amdgpu: Add lds_size to struct amdgpu_cu_info

BUG: SWDEV-80501
Change-Id: I45d59d0a24d48e2a339acb41b4e948d1324b0128

 Conflicts:
	drivers/gpu/drm/amd/amdgpu/amdgpu.h
---
 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | 1 +
 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 1 +
 2 files 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 83266bf..5eb44f7 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
@@ -5255,6 +5255,7 @@ static void gfx_v7_0_get_cu_info(struct amdgpu_device *adev)
 		cu_info->max_waves_per_simd = 10;
 		cu_info->max_scratch_slots_per_cu = 32;
 		cu_info->wave_front_size = 64;
+		cu_info->lds_size = 64;
 	}
 }
 
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
index 93d750f..50e8533 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
@@ -7004,6 +7004,7 @@ static void gfx_v8_0_get_cu_info(struct amdgpu_device *adev)
 		cu_info->max_waves_per_simd = 10;
 		cu_info->max_scratch_slots_per_cu = 32;
 		cu_info->wave_front_size = 64;
+		cu_info->lds_size = 64;
 		break;
 	default:
 		dev_warn(adev->dev, "CU info asic_type [0x%x] not supported\n",
-- 
2.7.4