diff options
author | Alex Waterman <alexw@nvidia.com> | 2016-08-03 21:41:36 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-09-01 12:10:10 -0400 |
commit | aa7f4bf251ee6346bf300f3793002eb4a7f05562 (patch) | |
tree | 573ee8b63c82a125f92e78ba721a3567ebc2be99 /drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |
parent | c845b210129a4a2ebd8a3cd22c53dc30cad3664d (diff) |
gpu: nvgpu: Add a bootstrap vidmem allocator
Add an allocator for allocating vidmem before the CE has had a
chance to be initialized (and clear the rest of vidmem).
Jira DNVGPU-84
Change-Id: I5166607a712b3a6eb4c2906b8c7d002c68a6567b
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1197204
(cherry picked from commit b4e68e84eedd952637b2332d8dc73a9090d6d62e)
Reviewed-on: http://git-master/r/1210949
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h index 60f653e0..e4d7d741 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |||
@@ -51,6 +51,8 @@ enum gk20a_aperture { | |||
51 | APERTURE_VIDMEM | 51 | APERTURE_VIDMEM |
52 | }; | 52 | }; |
53 | 53 | ||
54 | #define NVGPU_VIDMEM_BOOTSTRAP_ALLOCATOR_BASE 0x18000000 | ||
55 | |||
54 | static inline const char *gk20a_aperture_str(enum gk20a_aperture aperture) | 56 | static inline const char *gk20a_aperture_str(enum gk20a_aperture aperture) |
55 | { | 57 | { |
56 | switch (aperture) { | 58 | switch (aperture) { |
@@ -404,7 +406,9 @@ struct mm_gk20a { | |||
404 | struct { | 406 | struct { |
405 | size_t size; | 407 | size_t size; |
406 | struct gk20a_allocator allocator; | 408 | struct gk20a_allocator allocator; |
409 | struct gk20a_allocator bootstrap_allocator; | ||
407 | u32 ce_ctx_id; | 410 | u32 ce_ctx_id; |
411 | bool cleared; | ||
408 | } vidmem; | 412 | } vidmem; |
409 | }; | 413 | }; |
410 | 414 | ||