aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h
index 5bc59bcb3097..26f17d9fcd4c 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h
@@ -30,7 +30,8 @@
30 30
31#define PSP_FENCE_BUFFER_SIZE 0x1000 31#define PSP_FENCE_BUFFER_SIZE 0x1000
32#define PSP_CMD_BUFFER_SIZE 0x1000 32#define PSP_CMD_BUFFER_SIZE 0x1000
33#define PSP_ASD_SHARED_MEM_SIZE 0x4000 33#define PSP_ASD_SHARED_MEM_SIZE 0x4000
34#define PSP_XGMI_SHARED_MEM_SIZE 0x4000
34#define PSP_1_MEG 0x100000 35#define PSP_1_MEG 0x100000
35#define PSP_TMR_SIZE 0x400000 36#define PSP_TMR_SIZE 0x400000
36 37
@@ -88,6 +89,14 @@ struct psp_funcs
88 struct psp_xgmi_topology_info *topology); 89 struct psp_xgmi_topology_info *topology);
89}; 90};
90 91
92struct psp_xgmi_context {
93 uint8_t initialized;
94 uint32_t session_id;
95 struct amdgpu_bo *xgmi_shared_bo;
96 uint64_t xgmi_shared_mc_addr;
97 void *xgmi_shared_buf;
98};
99
91struct psp_context 100struct psp_context
92{ 101{
93 struct amdgpu_device *adev; 102 struct amdgpu_device *adev;
@@ -137,6 +146,13 @@ struct psp_context
137 146
138 /* fence value associated with cmd buffer */ 147 /* fence value associated with cmd buffer */
139 atomic_t fence_value; 148 atomic_t fence_value;
149
150 /* xgmi ta firmware and buffer */
151 const struct firmware *ta_fw;
152 uint32_t ta_xgmi_ucode_version;
153 uint32_t ta_xgmi_ucode_size;
154 uint8_t *ta_xgmi_start_addr;
155 struct psp_xgmi_context xgmi_context;
140}; 156};
141 157
142struct amdgpu_psp_funcs { 158struct amdgpu_psp_funcs {