diff options
author | Jesse Hall <jessehall@google.com> | 2021-11-23 14:38:46 -0800 |
---|---|---|
committer | Jesse Hall <jessehall@google.com> | 2021-11-23 14:38:46 -0800 |
commit | 0c596dc70431fa2c70021fa1685e3efc969a852d (patch) | |
tree | 8c6cfe8da5d3bea214e991cc4438988f65d9081e /mali_kbase/mali_kbase_mem_linux.h | |
parent | bbbb1cf6bb211bb2094dd66656966277c326867f (diff) | |
download | gpu-0c596dc70431fa2c70021fa1685e3efc969a852d.tar.gz |
Mali Valhall Android DDK r34p0-00dev1
Provenance:
046d23c969 (collaborate/google/android/v_r34p0-00dev1)
VX504X08X-BU-00000-r34p0-00dev1 - Valhall Android DDK
VX504X08X-SW-99006-r34p0-00dev1 - Valhall Android Renderscript AOSP parts
Documentation from VX504X08X-BU-00000 omitted.
Signed-off-by: Jesse Hall <jessehall@google.com>
Change-Id: I4ebbb3a3af709bd39f883eed3b35bf4657a95797
Diffstat (limited to 'mali_kbase/mali_kbase_mem_linux.h')
-rw-r--r-- | mali_kbase/mali_kbase_mem_linux.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/mali_kbase/mali_kbase_mem_linux.h b/mali_kbase/mali_kbase_mem_linux.h index 36159c1..f123d17 100644 --- a/mali_kbase/mali_kbase_mem_linux.h +++ b/mali_kbase/mali_kbase_mem_linux.h @@ -45,12 +45,14 @@ struct kbase_hwc_dma_mapping { * properties for the new allocation. * @gpu_va: Start address of the memory region which was allocated from GPU * virtual address space. + * @mmu_sync_info: Indicates whether this call is synchronous wrt MMU ops. * * Return: 0 on success or error code */ -struct kbase_va_region *kbase_mem_alloc(struct kbase_context *kctx, - u64 va_pages, u64 commit_pages, - u64 extension, u64 *flags, u64 *gpu_va); +struct kbase_va_region * +kbase_mem_alloc(struct kbase_context *kctx, u64 va_pages, u64 commit_pages, + u64 extension, u64 *flags, u64 *gpu_va, + enum kbase_caller_mmu_sync_info mmu_sync_info); /** * kbase_mem_query - Query properties of a GPU memory region @@ -169,6 +171,7 @@ void kbase_mem_evictable_deinit(struct kbase_context *kctx); * @reg: The GPU region * @new_pages: The number of pages after the grow * @old_pages: The number of pages before the grow + * @mmu_sync_info: Indicates whether this call is synchronous wrt MMU ops. * * Return: 0 on success, -errno on error. * @@ -178,8 +181,9 @@ void kbase_mem_evictable_deinit(struct kbase_context *kctx); * Note: Caller must be holding the region lock. */ int kbase_mem_grow_gpu_mapping(struct kbase_context *kctx, - struct kbase_va_region *reg, - u64 new_pages, u64 old_pages); + struct kbase_va_region *reg, u64 new_pages, + u64 old_pages, + enum kbase_caller_mmu_sync_info mmu_sync_info); /** * kbase_mem_evictable_make - Make a physical allocation eligible for eviction |