Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arm backend: Move the rodata to the DDR and bring the ITCM limit back… #7008

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions backends/arm/test/runner_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,6 @@ def run_corstone(
"-C",
"mps3_board.uart0.out_file='-'",
"-C",
"cpu0.CFGITCMSZ=11",
"-C",
"cpu0.semihosting-enable=1",
"-C",
"cpu0.semihosting-stack_base=0",
Expand Down
1 change: 0 additions & 1 deletion docs/source/executorch-arm-delegate-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,6 @@ ethos_u_build_dir=examples/arm/executor_runner/
elf=$(find ${ethos_u_build_dir} -name "arm_executor_runner")

FVP_Corstone_SSE-320_Ethos-U85 \
-C mps4_board.subsystem.cpu0.CFGITCMSZ=11 \
-C mps4_board.subsystem.ethosu.num_macs=${num_macs} \
-C mps4_board.visualisation.disable-visualisation=1 \
-C vis_hdlcd.disable_visualisation=1 \
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
From 0fb46c2fe4a072546f87c6cb9202d5001f1eb9c5 Mon Sep 17 00:00:00 2001
From: George Gekov <[email protected]>
Date: Mon, 18 Nov 2024 11:24:11 +0000
Subject: [PATCH] Move rodata to the DDR

---
targets/corstone-300/platform.ld | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/targets/corstone-300/platform.ld b/targets/corstone-300/platform.ld
index b458fc6..8d4bc73 100644
--- a/targets/corstone-300/platform.ld
+++ b/targets/corstone-300/platform.ld
@@ -154,7 +154,7 @@ SECTIONS
*(SORT(.dtors.*))
*(.dtors)

- *(.rodata*)
+

KEEP(*(.eh_frame*))
} > ITCM :rom_exec
@@ -280,7 +280,7 @@ SECTIONS
#endif
* (expected_output_data_sec)
* (sec_command_stream, sec_weight_data, sec_input_data)
-
+ *(.rodata*)
* (ethosu_core_in_queue)
* (ethosu_core_out_queue)
. = ALIGN(4);
--
2.25.1

This file was deleted.

This file was deleted.

1 change: 1 addition & 0 deletions examples/arm/executor_runner/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ target_link_libraries(
quantized_kernels
portable_kernels
"-Wl,--no-whole-archive"
-Xlinker -Map=arm_executor_runner.map
)

# ET headers and generated headers includes
Expand Down
2 changes: 0 additions & 2 deletions examples/arm/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ function run_fvp() {
if [[ ${target} == *"ethos-u55"* ]]; then
echo "Running ${elf} for ${target} run with FVP:${fvp_model} num_macs:${num_macs}"
${fvp_model} \
-C cpu0.CFGITCMSZ=11 \
-C ethosu.num_macs=${num_macs} \
-C mps3_board.visualisation.disable-visualisation=1 \
-C mps3_board.telnetterminal0.start_telnet=0 \
Expand All @@ -238,7 +237,6 @@ function run_fvp() {
elif [[ ${target} == *"ethos-u85"* ]]; then
echo "Running ${elf} for ${target} run with FVP:${fvp_model} num_macs:${num_macs}"
${fvp_model} \
-C mps4_board.subsystem.cpu0.CFGITCMSZ=11 \
-C mps4_board.subsystem.ethosu.num_macs=${num_macs} \
-C mps4_board.visualisation.disable-visualisation=1 \
-C vis_hdlcd.disable_visualisation=1 \
Expand Down
Loading