-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add esp_spiram_writeback_range support #15849
base: master
Are you sure you want to change the base?
Add esp_spiram_writeback_range support #15849
Conversation
[Experimental Bot, please feedback here] Fill In The Commit Message: This PR contains a Commit with an Empty Commit Message. Please fill in the Commit Message with the PR Summary. This PR description does not fully meet the NuttX requirements. Here's a breakdown and suggestions for improvement: Missing/Insufficient Information:
Improvements and Clarifications:
Example of Improved Testing Section:
// Output of esp_spiram_test and mm command before the change, showing errors or slow performance.
// Output of esp_spiram_test and mm command after the change, showing no errors and improved performance (e.g., "SPI SRAM memory test OK!" and faster mm operations). Quantify the improvement if possible.
By addressing these points, the PR description will be much clearer, more complete, and easier for reviewers to understand and approve. Remember, a well-written PR saves everyone time and helps ensure the quality of the NuttX project. |
2e8ed94
to
62aea9c
Compare
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 git commit log...
a1d3cf7
to
8793fa5
Compare
Thanks, updated. |
8793fa5
to
03960ae
Compare
Add esp_spiram_writeback_range function to flush some areas of spiram cache Signed-off-by: Eren Terzioglu <[email protected]>
Update common layer to prevent build errors Signed-off-by: Eren Terzioglu <[email protected]>
Summary
Add esp_spiram_writeback_range function to flush some areas of spiram cache to update spiram faster and more reliable.
Impact
ESP32, ESP32S2 and ESP32S3
Testing
Build for esp32 command
Build for esp32s2 command
Build for esp32s3 command
Before build and flash I changed these lines which are pointed with
+
to check flush is working fine:Note: Change can be applied every chip's related file (
nuttx/arch/xtensa/src/esp32s2/esp32s2_spiram.c
andnuttx/arch/xtensa/src/esp32s3/esp32s3_spiram.c
) which are mentioned on impact section.Additionaly,
Cache_Disable_DCache_Autoload
function used to disable auto flush on. To enable that feature properly you can change this lines:Change inspired from
esp-hal-3rdparty/components/esp_common/test_apps/esp_common/main/test_attr.c:89 (write_spiram_and_reset)
.Also tested with
mm
command