diff options
author | Siddharth Kapoor <ksiddharth@google.com> | 2022-01-07 19:09:01 +0800 |
---|---|---|
committer | Siddharth Kapoor <ksiddharth@google.com> | 2022-01-07 19:09:01 +0800 |
commit | 0207d6c3b7a2002f15c60d08617e956faf5ba90c (patch) | |
tree | eae0afe608a70b25f64e959db2b782fb33f89160 /mali_kbase/mali_kbase_hwaccess_instr.h | |
parent | 0c596dc70431fa2c70021fa1685e3efc969a852d (diff) | |
download | gpu-0207d6c3b7a2002f15c60d08617e956faf5ba90c.tar.gz |
Mali Valhall Android DDK r35p0 KMD
Provenance: 3e260085ac (collaborate/EAC/v_r35p0)
VX504X08X-BU-00000-r35p0-01eac0 - Valhall Android DDK
VX504X08X-BU-60000-r35p0-01eac0 - Valhall Android Document Bundle
VX504X08X-DC-11001-r35p0-01eac0 - Valhall Android DDK Software Errata
VX504X08X-SW-99006-r35p0-01eac0 - Valhall Android Renderscript AOSP parts
Signed-off-by: Siddharth Kapoor <ksiddharth@google.com>
Change-Id: Id9ef73da49680e2935a827c40d54169545f7162e
Diffstat (limited to 'mali_kbase/mali_kbase_hwaccess_instr.h')
-rw-r--r-- | mali_kbase/mali_kbase_hwaccess_instr.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mali_kbase/mali_kbase_hwaccess_instr.h b/mali_kbase/mali_kbase_hwaccess_instr.h index 819ca13..3766310 100644 --- a/mali_kbase/mali_kbase_hwaccess_instr.h +++ b/mali_kbase/mali_kbase_hwaccess_instr.h @@ -144,4 +144,27 @@ void kbase_instr_backend_term(struct kbase_device *kbdev); 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_ */ |