diff options
author | Hawking Zhang <Hawking.Zhang@amd.com> | 2018-09-28 02:23:11 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-11-05 14:21:09 -0500 |
commit | 0b25cbf9c26c4edf2cb12b542faf94d77586c916 (patch) | |
tree | a1c6d40fd333c2f160e4991a8960a32e0bfe8803 /drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h | |
parent | 7cd52c917a9c9a90f7d303079576971dc1a1c4fc (diff) |
drm/amdgpu/psp: avoid hard-code fence value pre submission
Hard-code submission fence is not a sustainable way as there is
more and more run-time psp kernel mode submission from driver to
fw
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Huang Rui <ray.huang@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 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h index 8b8720e9c3f0..5bc59bcb3097 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h | |||
@@ -96,7 +96,7 @@ struct psp_context | |||
96 | 96 | ||
97 | const struct psp_funcs *funcs; | 97 | const struct psp_funcs *funcs; |
98 | 98 | ||
99 | /* fence buffer */ | 99 | /* firmware buffer */ |
100 | struct amdgpu_bo *fw_pri_bo; | 100 | struct amdgpu_bo *fw_pri_bo; |
101 | uint64_t fw_pri_mc_addr; | 101 | uint64_t fw_pri_mc_addr; |
102 | void *fw_pri_buf; | 102 | void *fw_pri_buf; |
@@ -134,6 +134,9 @@ struct psp_context | |||
134 | struct amdgpu_bo *cmd_buf_bo; | 134 | struct amdgpu_bo *cmd_buf_bo; |
135 | uint64_t cmd_buf_mc_addr; | 135 | uint64_t cmd_buf_mc_addr; |
136 | struct psp_gfx_cmd_resp *cmd_buf_mem; | 136 | struct psp_gfx_cmd_resp *cmd_buf_mem; |
137 | |||
138 | /* fence value associated with cmd buffer */ | ||
139 | atomic_t fence_value; | ||
137 | }; | 140 | }; |
138 | 141 | ||
139 | struct amdgpu_psp_funcs { | 142 | struct amdgpu_psp_funcs { |