diff options
author | Huang Rui <ray.huang@amd.com> | 2017-03-21 04:51:00 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-04-28 16:37:56 -0400 |
commit | 53a5cf57d819f12b2de365aa3137c9175a032608 (patch) | |
tree | 3094974aecca3dd72fef4f0bcf89c2380fd326d0 /drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h | |
parent | 6f2b1fcccb6dad1d68c0955144af3ad56bacb25c (diff) |
drm/amdgpu: add psp firmware private memory
Needed for proper suspend support.
Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h index e9f35e025b59..b309b6a62c65 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h | |||
@@ -32,6 +32,7 @@ | |||
32 | #define PSP_CMD_BUFFER_SIZE 0x1000 | 32 | #define PSP_CMD_BUFFER_SIZE 0x1000 |
33 | #define PSP_ASD_BIN_SIZE 0x40000 | 33 | #define PSP_ASD_BIN_SIZE 0x40000 |
34 | #define PSP_ASD_SHARED_MEM_SIZE 0x4000 | 34 | #define PSP_ASD_SHARED_MEM_SIZE 0x4000 |
35 | #define PSP_1_MEG 0x100000 | ||
35 | 36 | ||
36 | enum psp_ring_type | 37 | enum psp_ring_type |
37 | { | 38 | { |
@@ -71,6 +72,11 @@ struct psp_context | |||
71 | enum AMDGPU_UCODE_ID ucode_type); | 72 | enum AMDGPU_UCODE_ID ucode_type); |
72 | bool (*smu_reload_quirk)(struct psp_context *psp); | 73 | bool (*smu_reload_quirk)(struct psp_context *psp); |
73 | 74 | ||
75 | /* fence buffer */ | ||
76 | struct amdgpu_bo *fw_pri_bo; | ||
77 | uint64_t fw_pri_mc_addr; | ||
78 | void *fw_pri_buf; | ||
79 | |||
74 | /* sos firmware */ | 80 | /* sos firmware */ |
75 | const struct firmware *sos_fw; | 81 | const struct firmware *sos_fw; |
76 | uint32_t sos_fw_version; | 82 | uint32_t sos_fw_version; |