From 08f87f769b595151be1afeff53e144f543faa614 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Wed, 06 Dec 2023 09:51:13 +0000
Subject: [PATCH] add dts config

---
 kernel/drivers/gpu/arm/bifrost/mali_kbase_ctx_sched.h |   20 +++++++++++++-------
 1 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/kernel/drivers/gpu/arm/bifrost/mali_kbase_ctx_sched.h b/kernel/drivers/gpu/arm/bifrost/mali_kbase_ctx_sched.h
index 334724f..5a8d175 100644
--- a/kernel/drivers/gpu/arm/bifrost/mali_kbase_ctx_sched.h
+++ b/kernel/drivers/gpu/arm/bifrost/mali_kbase_ctx_sched.h
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
 /*
  *
- * (C) COPYRIGHT 2017-2018, 2020-2021 ARM Limited. All rights reserved.
+ * (C) COPYRIGHT 2017-2018, 2020-2022 ARM Limited. All rights reserved.
  *
  * This program is free software and is provided to you under the terms of the
  * GNU General Public License version 2 as published by the Free Software
@@ -60,6 +60,15 @@
 void kbase_ctx_sched_term(struct kbase_device *kbdev);
 
 /**
+ * kbase_ctx_sched_ctx_init - Initialize per-context data fields for scheduling
+ * @kctx: The context to initialize
+ *
+ * This must be called during context initialization before any other context
+ * scheduling functions are called on @kctx
+ */
+void kbase_ctx_sched_init_ctx(struct kbase_context *kctx);
+
+/**
  * kbase_ctx_sched_retain_ctx - Retain a reference to the @ref kbase_context
  * @kctx: The context to which to retain a reference
  *
@@ -79,7 +88,7 @@
 int kbase_ctx_sched_retain_ctx(struct kbase_context *kctx);
 
 /**
- * kbase_ctx_sched_retain_ctx_refcount
+ * kbase_ctx_sched_retain_ctx_refcount - Retain a reference to the @ref kbase_context
  * @kctx: The context to which to retain a reference
  *
  * This function only retains a reference to the context. It must be called
@@ -113,9 +122,6 @@
  * This function should be called when a context is being destroyed. The
  * context must no longer have any reference. If it has been assigned an
  * address space before then the AS will be unprogrammed.
- *
- * The kbase_device::mmu_hw_mutex and kbase_device::hwaccess_lock locks must be
- * held whilst calling this function.
  */
 void kbase_ctx_sched_remove_ctx(struct kbase_context *kctx);
 
@@ -187,8 +193,8 @@
  * @kctx: Context to be refcounted
  *
  * The following locks must be held by the caller:
- * * kbase_device::mmu_hw_mutex
- * * kbase_device::hwaccess_lock
+ * &kbase_device.mmu_hw_mutex
+ * &kbase_device.hwaccess_lock
  *
  * Return: true if refcount succeeded, and the context will not be scheduled
  * out, false if the refcount failed (because the context is being/has been

--
Gitblit v1.6.2