-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
NuttX stm32f7 re-enable dcache with write back #12435
Conversation
e252f6f
to
8e00913
Compare
a22a3f8
to
ddbc38c
Compare
@davids5 this is working with the NuttX 7.29 update (#12344). I believe the difference is the cache unification. https://groups.google.com/forum/#!searchin/nuttx/cache$20unify%7Csort:date/nuttx/fGAD89gI6-M/8TV_RLWjCQAJ |
@PX4/testflights could you try this on all fmu-v5 hardware (pixhawk 4, 4 mini, cuav 5+ and 5 nano)? |
a00f3d3
to
fae6a8a
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.
Last we tested this the PIO changes alone did not fix the issues. Was part of the fix in 7.29?
Tested on Pixhawk4 v5 f-450 Position Mode: no issue Master log: @dagar we will test the CUAV 5+ tomorrow, we have the set up ready. |
Tested on Pixhawk 4mini v5:Modes Tested: Procedure: Notes: Logs:
Tested on Pixhawk Pro v4:Modes Tested:
Procedure: Notes: Logs:
Tested on NXP FMUK66 v3:Modes Tested:
Procedure: Notes: Logs: |
Tested on Pixhack v5+:Modes Tested: Procedure: Notes: Logs: |
@dagar OK I understand it now: The dcache is a 4 way assoc cache it has 128 indexes * 4 ways == 512 entries * 32 byte line size == 16KB cache. The nuttx 7.28 code This did not matter in a Write Through scheme because what was written in the cache was (also) in memory. An invalidate operation would lead to a later read it back. But in write back mode the invalidate lost the data not yet committed to memory. Adding this to master proves the point by fixing the bad code. tmpways = 3..0
Works. |
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.
@dagar - Good to go once rebased.
@dagar rebased on master and force pushed. |
Thank you @davids5! |
Just some metrics:
This PR with CONFIG_ARMV7M_DCACHE_WRITETHROUGH=y
This PR with NO d-cache
|
WIP PR for testing NuttX dcache writeback fixes on Jenkins HIL.