diff options
author | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2022-03-17 17:15:52 +0100 |
---|---|---|
committer | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2022-04-04 15:34:47 +0200 |
commit | 442fefb74a28307cfcd009723504ea5ac1353430 (patch) | |
tree | e22c128b2888de206d84c48f19e4d268f782d10e /kernel/ethosu_device.h | |
parent | f5b98c965c51def4f63d7fb198f70180e195b2e8 (diff) | |
download | ethos-u-linux-driver-stack-442fefb74a28307cfcd009723504ea5ac1353430.tar.gz |
Reset firmware
Reset the firmware if it becomes unresponsive. Use ping to send
keep alive requests.
Only monitor ping and inference request messages. The other messages
pass no resources to the firmware and can be cancelled without
resetting the firmware.
Change-Id: Ifbcc370f02d79a64f25598f11376a1dc84a7a066
Diffstat (limited to 'kernel/ethosu_device.h')
-rw-r--r-- | kernel/ethosu_device.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/kernel/ethosu_device.h b/kernel/ethosu_device.h index 7d8791a..7c6c99d 100644 --- a/kernel/ethosu_device.h +++ b/kernel/ethosu_device.h @@ -40,6 +40,8 @@ * Types ****************************************************************************/ +struct reset_control; + /** * struct ethosu_device - Device structure */ @@ -51,9 +53,7 @@ struct ethosu_device { struct mutex mutex; struct ethosu_mailbox mailbox; struct ethosu_watchdog watchdog; - struct list_head capabilities_list; - struct list_head inference_list; - struct list_head network_info_list; + struct reset_control *reset; }; /** @@ -64,7 +64,8 @@ struct ethosu_capabilities { struct completion done; struct kref refcount; struct ethosu_uapi_device_capabilities *capabilities; - struct list_head list; + struct ethosu_mailbox_msg msg; + int errno; }; /**************************************************************************** |