aboutsummaryrefslogtreecommitdiff
path: root/kernel/ethosu_network_info.h
diff options
context:
space:
mode:
authorKristofer Jonsson <kristofer.jonsson@arm.com>2022-03-17 17:15:52 +0100
committerKristofer Jonsson <kristofer.jonsson@arm.com>2022-04-04 15:34:47 +0200
commit442fefb74a28307cfcd009723504ea5ac1353430 (patch)
treee22c128b2888de206d84c48f19e4d268f782d10e /kernel/ethosu_network_info.h
parentf5b98c965c51def4f63d7fb198f70180e195b2e8 (diff)
downloadethos-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_network_info.h')
-rw-r--r--kernel/ethosu_network_info.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/kernel/ethosu_network_info.h b/kernel/ethosu_network_info.h
index 2a333a6..680be80 100644
--- a/kernel/ethosu_network_info.h
+++ b/kernel/ethosu_network_info.h
@@ -26,6 +26,7 @@
****************************************************************************/
#include "ethosu_core_interface.h"
+#include "ethosu_mailbox.h"
#include <linux/kref.h>
#include <linux/types.h>
@@ -44,9 +45,9 @@ struct ethosu_network_info {
struct ethosu_network *net;
struct ethosu_uapi_network_info *uapi;
struct kref kref;
- struct list_head list;
struct completion done;
int errno;
+ struct ethosu_mailbox_msg msg;
};
/****************************************************************************
@@ -72,8 +73,10 @@ void ethosu_network_info_get(struct ethosu_network_info *info);
/**
* ethosu_network_info_put() - Put network info
+ *
+ * Return: 1 if object was removed, else 0.
*/
-void ethosu_network_info_put(struct ethosu_network_info *info);
+int ethosu_network_info_put(struct ethosu_network_info *info);
/**
* ethosu_network_info_wait() - Get network info