.. | .. |
---|
128 | 128 | int kbase_instr_backend_init(struct kbase_device *kbdev); |
---|
129 | 129 | |
---|
130 | 130 | /** |
---|
131 | | - * kbase_instr_backend_init() - Terminate the instrumentation backend |
---|
| 131 | + * kbase_instr_backend_term() - Terminate the instrumentation backend |
---|
132 | 132 | * @kbdev: Kbase device |
---|
133 | 133 | * |
---|
134 | 134 | * This function should be called during driver termination. |
---|
.. | .. |
---|
144 | 144 | void kbase_instr_backend_debugfs_init(struct kbase_device *kbdev); |
---|
145 | 145 | #endif |
---|
146 | 146 | |
---|
| 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 | + |
---|
147 | 170 | #endif /* _KBASE_HWACCESS_INSTR_H_ */ |
---|