diff options
author | Arto Merilainen <amerilainen@nvidia.com> | 2014-04-09 14:15:32 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:09:05 -0400 |
commit | 542f729aa9ea9c5eb845c35d855e3925f45ab24f (patch) | |
tree | 75db3574ecaf392fe1e1aa0df9d7757497c7ae22 /drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |
parent | d4586cc3ab132fd03dce731e1e053bd70d9122cf (diff) |
gpu: nvgpu: Allow mapping backing store
Backing store sgt needs to be mapped to gpuva to enable CDE swizzling.
This patch adds necessary code to create sgt during initialisation so
that the sgt is available when needed.
Bug 1409151
Change-Id: I9d4671386fe9204d780c2e286b5f9b2dd87af35a
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h index d583849d..e5d76f8f 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |||
@@ -157,6 +157,7 @@ struct gr_ctx_desc { | |||
157 | 157 | ||
158 | struct compbit_store_desc { | 158 | struct compbit_store_desc { |
159 | struct page **pages; | 159 | struct page **pages; |
160 | struct sg_table *sgt; | ||
160 | size_t size; | 161 | size_t size; |
161 | u64 base_iova; | 162 | u64 base_iova; |
162 | }; | 163 | }; |