Skip to content

arch/risc-v: Enable setting cache line size for ESP32-P4#18931

Merged
xiaoxiang781216 merged 1 commit into
apache:masterfrom
tmedicci:feature/cache_size_esp32p4
May 22, 2026
Merged

arch/risc-v: Enable setting cache line size for ESP32-P4#18931
xiaoxiang781216 merged 1 commit into
apache:masterfrom
tmedicci:feature/cache_size_esp32p4

Conversation

@tmedicci
Copy link
Copy Markdown
Contributor

Summary

  • arch/risc-v: Enable setting cache line size for ESP32-P4
    • Enables setting the cache line size for ESP32-P4 using Kconfig options.

Impact

Impact on user: Yes. Enable the selection of the cache line size instead of setting a fixed value.

Impact on build: No.

Impact on hardware: No.

Impact on documentation: No.

Impact on security: No.

Impact on compatibility: No.

Testing

This doesn't have a specific testing procedure. ostest can be used to ensure that the config doesn't break anything.

Building

make -j distclean
./tools/configure.sh -S esp32p4-function-ev-board:ostest
make flash ESPTOOL_PORT=/dev/ttyACM0
picocom -b 115200 /dev/ttyUSB1

Other cache line settings can be selected to be tested.

Running

Just run ostest.

Results

nsh> ostest
stdio_test: write fd=1
stdio_test: Standard I/O Check: printf
stdio_test: write fd=2
...
Final memory usage:
VARIABLE  BEFORE   AFTER
======== ======== ========
arena       769a0    769a0
ordblks         2        5
mxordblk    72620    6dd10
uordblks     4328     43b8
fordblks    72678    725e8
user_main: Exiting
ostest_main: Exiting with status 0

Enables setting the cache line size for ESP32-P4 using Kconfig
options.

Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com>
@github-actions github-actions Bot added Arch: risc-v Issues related to the RISC-V (32-bit or 64-bit) architecture Size: S The size of the change in this PR is small labels May 21, 2026
@xiaoxiang781216 xiaoxiang781216 merged commit 2c8dc17 into apache:master May 22, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Arch: risc-v Issues related to the RISC-V (32-bit or 64-bit) architecture Size: S The size of the change in this PR is small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants