diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2016-07-11 09:02:57 -0400 |
---|---|---|
committer | Vijayakumar Subbu <vsubbu@nvidia.com> | 2016-07-21 08:54:26 -0400 |
commit | 83071083d779b67ad73172675a6dfa34ed19b414 (patch) | |
tree | 19040ddfa5bd3a959a99647a2a2f0c1a08ae3d8f /drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |
parent | 306dee6cbb29599b301d68c449e76b5249f143d6 (diff) |
gpu: nvgpu: add vidmem manager
Use the nvgpu-internal buddy allocator for video memory allocations,
instead of nvmap. This allows better integration for copyengine, BAR1
mapping to userspace, etc.
Jira DNVGPU-38
Change-Id: I9fd67b76cd39721e4cd8e525ad0ed76f497e8b99
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/1181151
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h index 184c1f71..d7503948 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |||
@@ -391,9 +391,11 @@ struct mm_gk20a { | |||
391 | bool force_pramin; /* via debugfs */ | 391 | bool force_pramin; /* via debugfs */ |
392 | #endif | 392 | #endif |
393 | 393 | ||
394 | size_t vidmem_size; | 394 | struct { |
395 | struct device vidmem_dev; | 395 | size_t size; |
396 | u32 ce_vidmem_ctx_id; | 396 | struct gk20a_allocator allocator; |
397 | u32 ce_ctx_id; | ||
398 | } vidmem; | ||
397 | }; | 399 | }; |
398 | 400 | ||
399 | int gk20a_mm_init(struct mm_gk20a *mm); | 401 | int gk20a_mm_init(struct mm_gk20a *mm); |