-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
misc: Update CI to apply patches to Ethos driver.
- Loading branch information
1 parent
7f0b69c
commit 1048e74
Showing
2 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,6 +51,14 @@ jobs: | |
repository: tensorflow/tflite-micro | ||
ref: 8c458fc48ee972ea4fc56ddc08849823b9af7ea8 | ||
|
||
- name: '⏳ Checkout Ethos' | ||
run: | | ||
git clone --branch main --depth 1 https://review.mlplatform.org/ml/ethos-u/ethos-u-core-driver \ | ||
tflite-micro/tensorflow/lite/micro/tools/make/downloads/ethos_u_core_driver/ | ||
cd tflite-micro | ||
git apply ../patches/ethosu_driver.patch \ | ||
--directory=tensorflow/lite/micro/tools/make/downloads/ethos_u_core_driver/ | ||
- name: '♻ Caching dependencies' | ||
uses: actions/[email protected] | ||
id: cache | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
diff --git a/src/ethosu_config_u55.h b/src/ethosu_config_u55.h | ||
index 9330bb1..c1ce4a1 100644 | ||
--- a/src/ethosu_config_u55.h | ||
+++ b/src/ethosu_config_u55.h | ||
@@ -22,11 +22,11 @@ | ||
/* Set default values if not manually overriden */ | ||
|
||
#ifndef NPU_QCONFIG | ||
-#define NPU_QCONFIG 2 | ||
+#define NPU_QCONFIG 0 | ||
#endif | ||
|
||
#ifndef NPU_REGIONCFG_0 | ||
-#define NPU_REGIONCFG_0 3 | ||
+#define NPU_REGIONCFG_0 0 | ||
#endif | ||
|
||
#ifndef NPU_REGIONCFG_1 | ||
@@ -58,11 +58,11 @@ | ||
#endif | ||
|
||
#ifndef AXI_LIMIT0_MAX_BEATS_BYTES | ||
-#define AXI_LIMIT0_MAX_BEATS_BYTES 0x0 | ||
+#define AXI_LIMIT0_MAX_BEATS_BYTES 0x1 | ||
#endif | ||
|
||
#ifndef AXI_LIMIT0_MEM_TYPE | ||
-#define AXI_LIMIT0_MEM_TYPE 0x0 | ||
+#define AXI_LIMIT0_MEM_TYPE 0x2 | ||
#endif | ||
|
||
#ifndef AXI_LIMIT0_MAX_OUTSTANDING_READS | ||
@@ -74,11 +74,11 @@ | ||
#endif | ||
|
||
#ifndef AXI_LIMIT1_MAX_BEATS_BYTES | ||
-#define AXI_LIMIT1_MAX_BEATS_BYTES 0x0 | ||
+#define AXI_LIMIT1_MAX_BEATS_BYTES 0x1 | ||
#endif | ||
|
||
#ifndef AXI_LIMIT1_MEM_TYPE | ||
-#define AXI_LIMIT1_MEM_TYPE 0x0 | ||
+#define AXI_LIMIT1_MEM_TYPE 0x2 | ||
#endif | ||
|
||
#ifndef AXI_LIMIT1_MAX_OUTSTANDING_READS | ||
@@ -90,11 +90,11 @@ | ||
#endif | ||
|
||
#ifndef AXI_LIMIT2_MAX_BEATS_BYTES | ||
-#define AXI_LIMIT2_MAX_BEATS_BYTES 0x0 | ||
+#define AXI_LIMIT2_MAX_BEATS_BYTES 0x1 | ||
#endif | ||
|
||
#ifndef AXI_LIMIT2_MEM_TYPE | ||
-#define AXI_LIMIT2_MEM_TYPE 0x0 | ||
+#define AXI_LIMIT2_MEM_TYPE 0x2 | ||
#endif | ||
|
||
#ifndef AXI_LIMIT2_MAX_OUTSTANDING_READS | ||
@@ -106,11 +106,11 @@ | ||
#endif | ||
|
||
#ifndef AXI_LIMIT3_MAX_BEATS_BYTES | ||
-#define AXI_LIMIT3_MAX_BEATS_BYTES 0x0 | ||
+#define AXI_LIMIT3_MAX_BEATS_BYTES 0x1 | ||
#endif | ||
|
||
#ifndef AXI_LIMIT3_MEM_TYPE | ||
-#define AXI_LIMIT3_MEM_TYPE 0x0 | ||
+#define AXI_LIMIT3_MEM_TYPE 0x2 | ||
#endif | ||
|
||
#ifndef AXI_LIMIT3_MAX_OUTSTANDING_READS |