hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/drivers/gpu/arm/bifrost/mali_kbase_hwaccess_instr.h
....@@ -128,7 +128,7 @@
128128 int kbase_instr_backend_init(struct kbase_device *kbdev);
129129
130130 /**
131
- * kbase_instr_backend_init() - Terminate the instrumentation backend
131
+ * kbase_instr_backend_term() - Terminate the instrumentation backend
132132 * @kbdev: Kbase device
133133 *
134134 * This function should be called during driver termination.
....@@ -144,4 +144,27 @@
144144 void kbase_instr_backend_debugfs_init(struct kbase_device *kbdev);
145145 #endif
146146
147
+/**
148
+ * kbase_instr_hwcnt_on_unrecoverable_error() - JM HWC instr backend function
149
+ * called when unrecoverable errors
150
+ * are detected.
151
+ * @kbdev: Kbase device
152
+ *
153
+ * This should be called on encountering errors that can only be recovered from
154
+ * with reset, or that may put HWC logic in state that could result in hang. For
155
+ * example, when HW becomes unresponsive.
156
+ *
157
+ * Caller requires kbdev->hwaccess_lock held.
158
+ */
159
+void kbase_instr_hwcnt_on_unrecoverable_error(struct kbase_device *kbdev);
160
+
161
+/**
162
+ * kbase_instr_hwcnt_on_before_reset() - JM HWC instr backend function to be
163
+ * called immediately before a reset.
164
+ * Takes us out of the unrecoverable
165
+ * error state, if we were in it.
166
+ * @kbdev: Kbase device
167
+ */
168
+void kbase_instr_hwcnt_on_before_reset(struct kbase_device *kbdev);
169
+
147170 #endif /* _KBASE_HWACCESS_INSTR_H_ */