From aa7f4bf251ee6346bf300f3793002eb4a7f05562 Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Wed, 3 Aug 2016 18:41:36 -0700 Subject: 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 Signed-off-by: Deepak Nibade Reviewed-on: http://git-master/r/1197204 (cherry picked from commit b4e68e84eedd952637b2332d8dc73a9090d6d62e) Reviewed-on: http://git-master/r/1210949 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h') 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 { APERTURE_VIDMEM }; +#define NVGPU_VIDMEM_BOOTSTRAP_ALLOCATOR_BASE 0x18000000 + static inline const char *gk20a_aperture_str(enum gk20a_aperture aperture) { switch (aperture) { @@ -404,7 +406,9 @@ struct mm_gk20a { struct { size_t size; struct gk20a_allocator allocator; + struct gk20a_allocator bootstrap_allocator; u32 ce_ctx_id; + bool cleared; } vidmem; }; -- cgit v1.2.2