diff options
author | Oded Gabbay <oded.gabbay@gmail.com> | 2019-02-16 01:39:16 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-02-18 11:46:44 +0300 |
commit | 839c48030d27a690cc85f0762f9f6f07a3349fb3 (patch) | |
tree | af6f7b6596f8292781caac546953c8e418e0f2ae /drivers/misc/habanalabs/goya/goyaP.h | |
parent | be5d926b5c10430671ae975b80efb7a5652e3f9a (diff) | |
download | linux-839c48030d27a690cc85f0762f9f6f07a3349fb3.tar.xz |
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.h | 4 |
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_ */ |