forked from apache/nuttx
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Coremmc performance workaround #352
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57c64a5
to
81577b6
Compare
jlaitine
reviewed
Feb 12, 2025
jlaitine
approved these changes
Feb 12, 2025
jlaitine
reviewed
Feb 12, 2025
mpfs_sendcmd() shall not wait for data lines ready before sending commands to the card. This prevents mmcsd driver to poll card busy status prior to next activity after a write operation.
4bit bus width support and FIC0 clock is 125MHz VR register fifo depth bitfields 5:4 instead of 3:2
5242c84
to
4924b03
Compare
FIC0 definition added into Kconfig |
Also the 4bit capability is checked from VR register instead of reported the support blindly |
jlaitine
reviewed
Feb 12, 2025
4924b03
to
f76ea76
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
For Flat build poll lines_busy loop only short time at once and sleep for one system tick between checks if still busy.
Bus width and Fiq0 clock fixed.
Impact
This workaround is needed because coremmc does not have Transfer Completed interrupt, but the BUSY state shall be read from status register by polling. Just running in busy loop would cause very high cpuload by thread using the write operation of coremmc.