aboutsummaryrefslogtreecommitdiff
path: root/kernel/ethosu_device.h
diff options
context:
space:
mode:
authorDavide Grohmann <davide.grohmann@arm.com>2022-04-07 16:58:32 +0200
committerDavide Grohmann <davide.grohmann@arm.com>2022-05-09 09:38:51 +0200
commit8b1fe55bf4788ac85a0d8f9059ca0305904ddc5d (patch)
tree248f62319537bd4daecb62db44171b533d7a4ffe /kernel/ethosu_device.h
parent7e8f508765632c42cc44fd8ad704c9d90943ab32 (diff)
downloadethos-u-linux-driver-stack-8b1fe55bf4788ac85a0d8f9059ca0305904ddc5d.tar.gz
Reset firmware when inference cancellation fails22.05-rc1
If an inference fails to be cancelled and it is still in a pending state, reset the whole firmware. Indeed the assumption is that something is at fault on the firmware side and it is not progressing. Change-Id: I2f568b2167d86cda3cb96a5e83551b018f5fc55d
Diffstat (limited to 'kernel/ethosu_device.h')
-rw-r--r--kernel/ethosu_device.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/ethosu_device.h b/kernel/ethosu_device.h
index 7c6c99d..132dff2 100644
--- a/kernel/ethosu_device.h
+++ b/kernel/ethosu_device.h
@@ -89,4 +89,9 @@ int ethosu_dev_init(struct ethosu_device *edev,
*/
void ethosu_dev_deinit(struct ethosu_device *edev);
+/**
+ * ethosu_firmware_reset() - Reset the device running firmware
+ */
+int ethosu_firmware_reset(struct ethosu_device *edev);
+
#endif /* ETHOSU_DEVICE_H */