summaryrefslogtreecommitdiffstats
path: root/drivers/misc/habanalabs/goya/goyaP.h
diff options
context:
space:
mode:
authorOded Gabbay2019-02-15 23:39:16 +0100
committerGreg Kroah-Hartman2019-02-18 09:46:44 +0100
commit839c48030d27a690cc85f0762f9f6f07a3349fb3 (patch)
treeaf6f7b6596f8292781caac546953c8e418e0f2ae /drivers/misc/habanalabs/goya/goyaP.h
parenthabanalabs: add command buffer module (diff)
downloadkernel-qcow2-linux-839c48030d27a690cc85f0762f9f6f07a3349fb3.tar.gz
kernel-qcow2-linux-839c48030d27a690cc85f0762f9f6f07a3349fb3.tar.xz
kernel-qcow2-linux-839c48030d27a690cc85f0762f9f6f07a3349fb3.zip
habanalabs: add basic Goya h/w initialization
This patch adds the basic part of Goya's H/W initialization. It adds code that initializes Goya's internal CPU, various registers that are related to internal routing, scrambling, workarounds for H/W bugs, etc. It also initializes Goya's security scheme that prevents the user from abusing Goya to steal data from the host, crash the host, change Goya's F/W, etc. Reviewed-by: Mike Rapoport <rppt@linux.ibm.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/habanalabs/goya/goyaP.h')
-rw-r--r--drivers/misc/habanalabs/goya/goyaP.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/misc/habanalabs/goya/goyaP.h b/drivers/misc/habanalabs/goya/goyaP.h
index 6a78976e2098..65cbb45d7083 100644
--- a/drivers/misc/habanalabs/goya/goyaP.h
+++ b/drivers/misc/habanalabs/goya/goyaP.h
@@ -10,7 +10,9 @@
#include <uapi/misc/habanalabs.h>
#include "habanalabs.h"
+#include "include/hl_boot_if.h"
#include "include/goya/goya.h"
+#include "include/goya/goya_fw_if.h"
#define NUMBER_OF_CMPLT_QUEUES 5
#define NUMBER_OF_EXT_HW_QUEUES 5
@@ -149,4 +151,6 @@ struct goya_device {
u32 hw_cap_initialized;
};
+void goya_init_security(struct hl_device *hdev);
+
#endif /* GOYAP_H_ */