nuttx/arch
Tiago Medicci Serrano 60ca804b56 esp32s3: Fix bug related to the PSRAM-allocated task stack
If both SPI Flash support (`CONFIG_ESP32S3_SPIFLASH`) and PSRAM
(`CONFIG_ESP32S3_SPIRAM`) are enabled, the PSRAM can only be
assigned to the user's heap (`CONFIG_ESP32S3_SPIRAM_USER_HEAP`).
Additionaly, `CONFIG_ESP32S3_SPI_FLASH_SUPPORT_PSRAM_STACK` must be
set because the system will end up allocating tasks' stacks from
the external PSRAM. This has an impact when dealing with SPI flash
operations because the cache must be disabled and the running task
should not rely on any data from the PSRAM. To accomplish that, It
offloads the SPI flash operation to a work queue (which, by
definition, allocates its heap from the kernel heap).

The same (assigning the PSRAM to the user's heap) is valid when the
Wi-Fi is enabled because the lower-half driver requires data being
allocated from the internal memory (which can only be achieved by
allocating from the kernel heap when both the kernel and user heaps
exists).

Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com>
2025-08-20 02:23:03 +08:00
..
arm Make/Toolchain.defs: add the AR_EXTRACT command 2025-08-19 09:47:44 +08:00
arm64 Make/Toolchain.defs: add the AR_EXTRACT command 2025-08-19 09:47:44 +08:00
avr Make/Toolchain.defs: add the AR_EXTRACT command 2025-08-19 09:47:44 +08:00
ceva Revert "Reduce the size of tcb by four bytes." 2025-05-27 16:30:35 +08:00
dummy
hc style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
mips Make/Toolchain.defs: add the AR_EXTRACT command 2025-08-19 09:47:44 +08:00
misoc Make/Toolchain.defs: add the AR_EXTRACT command 2025-08-19 09:47:44 +08:00
or1k Make/Toolchain.defs: add the AR_EXTRACT command 2025-08-19 09:47:44 +08:00
renesas Revert "Reduce the size of tcb by four bytes." 2025-05-27 16:30:35 +08:00
risc-v Make/Toolchain.defs: add the AR_EXTRACT command 2025-08-19 09:47:44 +08:00
sim arch/sim: avoid host-call being interrupted before getting errno 2025-07-21 19:19:05 -03:00
sparc Make/Toolchain.defs: add the AR_EXTRACT command 2025-08-19 09:47:44 +08:00
tricore Make/Toolchain.defs: add the AR_EXTRACT command 2025-08-19 09:47:44 +08:00
x86 Make/Toolchain.defs: add the AR_EXTRACT command 2025-08-19 09:47:44 +08:00
x86_64 Make/Toolchain.defs: add the AR_EXTRACT command 2025-08-19 09:47:44 +08:00
xtensa esp32s3: Fix bug related to the PSRAM-allocated task stack 2025-08-20 02:23:03 +08:00
z16 Revert "Reduce the size of tcb by four bytes." 2025-05-27 16:30:35 +08:00
z80 Make/Toolchain.defs: add the AR_EXTRACT command 2025-08-19 09:47:44 +08:00
CMakeLists.txt arch/z80: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
Kconfig toolchain/armclang: Fix armclang config 2025-07-15 21:56:46 +08:00