aboutsummaryrefslogtreecommitdiff
path: root/kernel/ethosu_core_interface.h
diff options
context:
space:
mode:
authorPer Åstrand <per.astrand@arm.com>2020-10-23 21:25:05 +0200
committerPer Åstrand <per.astrand@arm.com>2020-11-16 13:57:35 +0100
commitf7e407a0fe58d76d54e3d1f9d2cb117036cd095b (patch)
tree8726e753f14c5a95d64312004c5117cf0e75b6d2 /kernel/ethosu_core_interface.h
parentf8ae5e1f5ca090b37a701f9dd75ee57106d30dc8 (diff)
downloadethos-u-linux-driver-stack-f7e407a0fe58d76d54e3d1f9d2cb117036cd095b.tar.gz
Add PMU config to inference creation
Add PMU configuration information to inference creation. Change-Id: Id8a69517a5d3e4822dbaf46f76cadb2700b3d981
Diffstat (limited to 'kernel/ethosu_core_interface.h')
-rw-r--r--kernel/ethosu_core_interface.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/ethosu_core_interface.h b/kernel/ethosu_core_interface.h
index 0dd1996..86e10ac 100644
--- a/kernel/ethosu_core_interface.h
+++ b/kernel/ethosu_core_interface.h
@@ -30,6 +30,9 @@
/** Maximum number of IFM/OFM buffers per inference */
#define ETHOSU_CORE_BUFFER_MAX 16
+/** Maximum number of PMU counters to be returned for inference */
+#define ETHOSU_CORE_PMU_MAX 4
+
/**
* enum ethosu_core_msg_type - Message types
*
@@ -87,6 +90,8 @@ struct ethosu_core_inference_req {
uint32_t ofm_count;
struct ethosu_core_buffer ofm[ETHOSU_CORE_BUFFER_MAX];
struct ethosu_core_buffer network;
+ uint8_t pmu_event_config[ETHOSU_CORE_PMU_MAX];
+ uint32_t pmu_cycle_counter_enable;
};
struct ethosu_core_inference_rsp {
@@ -94,6 +99,10 @@ struct ethosu_core_inference_rsp {
uint32_t ofm_count;
uint32_t ofm_size[ETHOSU_CORE_BUFFER_MAX];
uint32_t status;
+ uint8_t pmu_event_config[ETHOSU_CORE_PMU_MAX];
+ uint32_t pmu_event_count[ETHOSU_CORE_PMU_MAX];
+ uint32_t pmu_cycle_counter_enable;
+ uint64_t pmu_cycle_counter_count;
};
#endif