Skip to content

Commit a64ed1b

Browse files
gggekovfreddan80
authored andcommitted
Arm backend: Move the rodata to the DDR and bring the ITCM limit back to 512KB
This allows us to deploy models on the MPS3 FPGA board running the Corstone-300 design Change-Id: I0bd673c129f82418b962ad608b061de1b36a96df
1 parent dc8b6d7 commit a64ed1b

File tree

8 files changed

+35
-99
lines changed

8 files changed

+35
-99
lines changed

backends/arm/test/runner_utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,6 @@ def run_corstone(
266266
"-C",
267267
"mps3_board.uart0.out_file='-'",
268268
"-C",
269-
"cpu0.CFGITCMSZ=11",
270-
"-C",
271269
"cpu0.semihosting-enable=1",
272270
"-C",
273271
"cpu0.semihosting-stack_base=0",

docs/source/executorch-arm-delegate-tutorial.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ ethos_u_build_dir=examples/arm/executor_runner/
322322
elf=$(find ${ethos_u_build_dir} -name "arm_executor_runner")
323323

324324
FVP_Corstone_SSE-320_Ethos-U85 \
325-
-C mps4_board.subsystem.cpu0.CFGITCMSZ=11 \
326325
-C mps4_board.subsystem.ethosu.num_macs=${num_macs} \
327326
-C mps4_board.visualisation.disable-visualisation=1 \
328327
-C vis_hdlcd.disable_visualisation=1 \

examples/arm/ethos-u-setup/core_platform/patches/0001-Add-.data-fixup-from-Corestone-300.patch

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
From 0fb46c2fe4a072546f87c6cb9202d5001f1eb9c5 Mon Sep 17 00:00:00 2001
2+
From: George Gekov <[email protected]>
3+
Date: Mon, 18 Nov 2024 11:24:11 +0000
4+
Subject: [PATCH] Move rodata to the DDR
5+
6+
---
7+
targets/corstone-300/platform.ld | 4 ++--
8+
1 file changed, 2 insertions(+), 2 deletions(-)
9+
10+
diff --git a/targets/corstone-300/platform.ld b/targets/corstone-300/platform.ld
11+
index b458fc6..8d4bc73 100644
12+
--- a/targets/corstone-300/platform.ld
13+
+++ b/targets/corstone-300/platform.ld
14+
@@ -154,7 +154,7 @@ SECTIONS
15+
*(SORT(.dtors.*))
16+
*(.dtors)
17+
18+
- *(.rodata*)
19+
+
20+
21+
KEEP(*(.eh_frame*))
22+
} > ITCM :rom_exec
23+
@@ -280,7 +280,7 @@ SECTIONS
24+
#endif
25+
* (expected_output_data_sec)
26+
* (sec_command_stream, sec_weight_data, sec_input_data)
27+
-
28+
+ *(.rodata*)
29+
* (ethosu_core_in_queue)
30+
* (ethosu_core_out_queue)
31+
. = ALIGN(4);
32+
--
33+
2.25.1
34+

examples/arm/ethos-u-setup/core_platform/patches/0001-New-phdr-for-.data-section.patch

Lines changed: 0 additions & 33 deletions
This file was deleted.

examples/arm/ethos-u-setup/core_platform/patches/0003-Make-ITCM-1MB.patch

Lines changed: 0 additions & 37 deletions
This file was deleted.

examples/arm/executor_runner/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ target_link_libraries(
234234
quantized_kernels
235235
portable_kernels
236236
"-Wl,--no-whole-archive"
237+
-Xlinker -Map=arm_executor_runner.map
237238
)
238239

239240
# ET headers and generated headers includes

examples/arm/run.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ function run_fvp() {
229229
if [[ ${target} == *"ethos-u55"* ]]; then
230230
echo "Running ${elf} for ${target} run with FVP:${fvp_model} num_macs:${num_macs}"
231231
${fvp_model} \
232-
-C cpu0.CFGITCMSZ=11 \
233232
-C ethosu.num_macs=${num_macs} \
234233
-C mps3_board.visualisation.disable-visualisation=1 \
235234
-C mps3_board.telnetterminal0.start_telnet=0 \
@@ -241,7 +240,6 @@ function run_fvp() {
241240
elif [[ ${target} == *"ethos-u85"* ]]; then
242241
echo "Running ${elf} for ${target} run with FVP:${fvp_model} num_macs:${num_macs}"
243242
${fvp_model} \
244-
-C mps4_board.subsystem.cpu0.CFGITCMSZ=11 \
245243
-C mps4_board.subsystem.ethosu.num_macs=${num_macs} \
246244
-C mps4_board.visualisation.disable-visualisation=1 \
247245
-C vis_hdlcd.disable_visualisation=1 \

0 commit comments

Comments
 (0)