diff options
author | Sidath Senanayake <sidaths@google.com> | 2021-06-15 13:39:30 +0100 |
---|---|---|
committer | Sidath Senanayake <sidaths@google.com> | 2021-06-15 14:11:16 +0100 |
commit | fca8613cfcf585bf9113dca96a05daea9fd89794 (patch) | |
tree | f2baa14910f83edf00450bc30d3703eb255a0bba /mali_kbase/mali_kbase_ctx_sched.h | |
parent | 8037b534570814775d79aeddd06b76e5ee941f59 (diff) | |
download | gpu-fca8613cfcf585bf9113dca96a05daea9fd89794.tar.gz |
Mali Valhall DDK r31p0 KMD
Provenance: 2ea0ef9bd (collaborate/EAC/v_r31p0)
VX504X08X-BU-00000-r31p0-01eac0 - Valhall Android DDK
VX504X08X-BU-60000-r31p0-01eac0 - Valhall Android Document Bundle
VX504X08X-DC-11001-r31p0-01eac0 - Valhall Android DDK Software Errata
VX504X08X-SW-99006-r31p0-01eac0 - Valhall Android Renderscript AOSP parts
Signed-off-by: Sidath Senanayake <sidaths@google.com>
Change-Id: Ide9d5fdc6d9c95fa66a3546b01f619b43c09496d
Diffstat (limited to 'mali_kbase/mali_kbase_ctx_sched.h')
-rw-r--r-- | mali_kbase/mali_kbase_ctx_sched.h | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/mali_kbase/mali_kbase_ctx_sched.h b/mali_kbase/mali_kbase_ctx_sched.h index 1aa3762..cadb735 100644 --- a/mali_kbase/mali_kbase_ctx_sched.h +++ b/mali_kbase/mali_kbase_ctx_sched.h @@ -222,23 +222,20 @@ void kbase_ctx_sched_release_ctx_lock(struct kbase_context *kctx); #if MALI_USE_CSF /** - * kbase_ctx_sched_refcount_mmu_flush - Refcount the context for the MMU flush - * operation. + * kbase_ctx_sched_inc_refcount_if_as_valid - Refcount the context if it has GPU + * address space slot assigned to it. * - * @kctx: Context to be refcounted. - * @sync: Flag passed to the caller function kbase_mmu_flush_invalidate(). + * @kctx: Context to be refcounted * - * This function takes a reference on the context for the MMU flush operation. - * The refcount is taken only if the context is busy/active. - * If the context isn't active but has a GPU address space slot assigned to it - * then a flag is set to indicate that MMU flush operation is pending, which - * will be performed when the context becomes active. + * This function takes a reference on the context if it has a GPU address space + * slot assigned to it. The address space slot will not be available for + * re-assignment until the reference is released. * * Return: true if refcount succeeded and the address space slot will not be - * reassigned, false if the refcount failed (because the context was inactive) + * reassigned, false if the refcount failed (because the address space slot + * was not assigned). */ -bool kbase_ctx_sched_refcount_mmu_flush(struct kbase_context *kctx, - bool sync); +bool kbase_ctx_sched_inc_refcount_if_as_valid(struct kbase_context *kctx); #endif #endif /* _KBASE_CTX_SCHED_H_ */ |