summaryrefslogtreecommitdiffstats
path: root/drivers/misc/habanalabs/goya/goyaP.h
diff options
context:
space:
mode:
authorOmer Shpigelman2019-04-01 21:23:02 +0200
committerOded Gabbay2019-04-01 21:23:02 +0200
commit8ba2876ddf935b845340571e2d197347b428879e (patch)
treed8e3a84dc5483c4eff975baa85d6041ae4afc49d /drivers/misc/habanalabs/goya/goyaP.h
parenthabanalabs: add new IOCTL for debug, tracing and profiling (diff)
downloadkernel-qcow2-linux-8ba2876ddf935b845340571e2d197347b428879e.tar.gz
kernel-qcow2-linux-8ba2876ddf935b845340571e2d197347b428879e.tar.xz
kernel-qcow2-linux-8ba2876ddf935b845340571e2d197347b428879e.zip
habanalabs: add goya implementation for debug configuration
This patch adds the ASIC-specific function for GOYA to configure the coresight components. Most of the components have an enabled/disabled flag, depending on whether the user wants to enable the component or disable it. For some of the components, such as ETR and SPMU, the user can also request to read values from them. Those values are needed for the user to parse the trace data. The ETR configuration is also checked for security purposes, to make sure the trace data is written to the device's DRAM. Signed-off-by: Omer Shpigelman <oshpigelman@habana.ai> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/misc/habanalabs/goya/goyaP.h')
-rw-r--r--drivers/misc/habanalabs/goya/goyaP.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/habanalabs/goya/goyaP.h b/drivers/misc/habanalabs/goya/goyaP.h
index 6f1f7715075d..2a6cdca744dd 100644
--- a/drivers/misc/habanalabs/goya/goyaP.h
+++ b/drivers/misc/habanalabs/goya/goyaP.h
@@ -43,6 +43,8 @@
#define QMAN_STOP_TIMEOUT_USEC 100000 /* 100 ms */
+#define CORESIGHT_TIMEOUT_USEC 100000 /* 100 ms */
+
#define TPC_ENABLED_MASK 0xFF
#define PLL_HIGH_DEFAULT 1575000000 /* 1.575 GHz */