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
xtensa/esp32s3: Support malloc from external RAM and internal RAM #11144
xtensa/esp32s3: Support malloc from external RAM and internal RAM #11144
Conversation
just curious; did it actually make wifi work better? |
|
|
||
#ifdef CONFIG_MM_KERNEL_HEAP | ||
#define HEAP_REGION1_END 0x3fccfff0 | ||
#define HEAP_REGION2_START 0x3fcd0000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add indent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add commit message!
Enables the allocation of the entire Userspace heap into SPI RAM and reserving the Internal RAM exclusively for the Kernel heap.
1. Disable psram as task stack to avoid system blocking. 2. Add some function comments.
20e97d5
to
30269fb
Compare
Summary
This PR intends to enable the separation of Kernel and Userspace heaps in ESP32S3 operating under Flat mode.
This new feature enables the allocation of the entire Userspace heap into SPI RAM and reserving the Internal RAM exclusively for the Kernel heap, which may benefit some timing-constrained Kernel components (e.g. Wi-Fi driver).
Impact
Testing
esp32s3-devkit:psram_usrheap
defconfig.esp32s3-devkit:wapi
and enable SPIRAM config:CONFIG_ESP32S3_SPIRAM/CONFIG_ESP32S3_SPIRAM_USER_HEAP/CONFIG_XTENSA_IMEM_USE_SEPARATE_HEAP