From 1543e317f1da31b75942316931e8f491a8920811 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Thu, 04 Jan 2024 10:08:02 +0000
Subject: [PATCH] disable FB

---
 kernel/drivers/gpu/arm/bifrost/mali_kbase_hwaccess_instr.h |   25 ++++++++++++++++++++++++-
 1 files changed, 24 insertions(+), 1 deletions(-)

diff --git a/kernel/drivers/gpu/arm/bifrost/mali_kbase_hwaccess_instr.h b/kernel/drivers/gpu/arm/bifrost/mali_kbase_hwaccess_instr.h
index f836953..3766310 100644
--- a/kernel/drivers/gpu/arm/bifrost/mali_kbase_hwaccess_instr.h
+++ b/kernel/drivers/gpu/arm/bifrost/mali_kbase_hwaccess_instr.h
@@ -128,7 +128,7 @@
 int kbase_instr_backend_init(struct kbase_device *kbdev);
 
 /**
- * kbase_instr_backend_init() - Terminate the instrumentation backend
+ * kbase_instr_backend_term() - Terminate the instrumentation backend
  * @kbdev:	Kbase device
  *
  * This function should be called during driver termination.
@@ -144,4 +144,27 @@
 void kbase_instr_backend_debugfs_init(struct kbase_device *kbdev);
 #endif
 
+/**
+ * kbase_instr_hwcnt_on_unrecoverable_error() - JM HWC instr backend function
+ *                                              called when unrecoverable errors
+ *                                              are detected.
+ * @kbdev: Kbase device
+ *
+ * This should be called on encountering errors that can only be recovered from
+ * with reset, or that may put HWC logic in state that could result in hang. For
+ * example, when HW becomes unresponsive.
+ *
+ * Caller requires kbdev->hwaccess_lock held.
+ */
+void kbase_instr_hwcnt_on_unrecoverable_error(struct kbase_device *kbdev);
+
+/**
+ * kbase_instr_hwcnt_on_before_reset() - JM HWC instr backend function to be
+ *                                       called immediately before a reset.
+ *                                       Takes us out of the unrecoverable
+ *                                       error state, if we were in it.
+ * @kbdev: Kbase device
+ */
+void kbase_instr_hwcnt_on_before_reset(struct kbase_device *kbdev);
+
 #endif /* _KBASE_HWACCESS_INSTR_H_ */

--
Gitblit v1.6.2