diff options
author | Jack Xiao <Jack.Xiao@amd.com> | 2019-01-25 01:36:23 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-06-21 19:58:22 -0400 |
commit | a538bbe7a8db66730af522e687af03c0e3d9d643 (patch) | |
tree | b85648275fda3bfc7da82410ecb7c4df8b442a81 | |
parent | 384872846f719760645dbe1b0c70edccb9cc941a (diff) |
drm/amdgpu/mes: add mes header file and definition
Add dummy header file and definitions of mes.
Acked-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Jack Xiao <Jack.Xiao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 5 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h | 31 |
2 files changed, 36 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 48abe15d744a..7118ca21aa4e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h | |||
@@ -85,6 +85,7 @@ | |||
85 | #include "amdgpu_amdkfd.h" | 85 | #include "amdgpu_amdkfd.h" |
86 | #include "amdgpu_smu.h" | 86 | #include "amdgpu_smu.h" |
87 | #include "amdgpu_discovery.h" | 87 | #include "amdgpu_discovery.h" |
88 | #include "amdgpu_mes.h" | ||
88 | 89 | ||
89 | #define MAX_GPU_INSTANCE 16 | 90 | #define MAX_GPU_INSTANCE 16 |
90 | 91 | ||
@@ -919,6 +920,10 @@ struct amdgpu_device { | |||
919 | /* discovery */ | 920 | /* discovery */ |
920 | uint8_t *discovery; | 921 | uint8_t *discovery; |
921 | 922 | ||
923 | /* mes */ | ||
924 | bool enable_mes; | ||
925 | struct amdgpu_mes mes; | ||
926 | |||
922 | struct amdgpu_ip_block ip_blocks[AMDGPU_MAX_IP_NUM]; | 927 | struct amdgpu_ip_block ip_blocks[AMDGPU_MAX_IP_NUM]; |
923 | int num_ip_blocks; | 928 | int num_ip_blocks; |
924 | struct mutex mn_lock; | 929 | struct mutex mn_lock; |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h new file mode 100644 index 000000000000..621ef8a7f074 --- /dev/null +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h | |||
@@ -0,0 +1,31 @@ | |||
1 | /* | ||
2 | * Copyright 2019 Advanced Micro Devices, Inc. | ||
3 | * | ||
4 | * Permission is hereby granted, free of charge, to any person obtaining a | ||
5 | * copy of this software and associated documentation files (the "Software"), | ||
6 | * to deal in the Software without restriction, including without limitation | ||
7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
8 | * and/or sell copies of the Software, and to permit persons to whom the | ||
9 | * Software is furnished to do so, subject to the following conditions: | ||
10 | * | ||
11 | * The above copyright notice and this permission notice shall be included in | ||
12 | * all copies or substantial portions of the Software. | ||
13 | * | ||
14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
17 | * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR | ||
18 | * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
19 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
20 | * OTHER DEALINGS IN THE SOFTWARE. | ||
21 | * | ||
22 | */ | ||
23 | |||
24 | #ifndef __AMDGPU_MES_H__ | ||
25 | #define __AMDGPU_MES_H__ | ||
26 | |||
27 | struct amdgpu_mes { | ||
28 | |||
29 | }; | ||
30 | |||
31 | #endif /* __AMDGPU_MES_H__ */ | ||