Skip to content
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

Enable d-cache #6

Merged
merged 1 commit into from
Aug 17, 2024
Merged

Enable d-cache #6

merged 1 commit into from
Aug 17, 2024

Conversation

tfx2001
Copy link
Collaborator

@tfx2001 tfx2001 commented Aug 17, 2024

Describe

Since hpm-rs/hpm-rt#11 fixed the d-cache problem when accessing SDRAM, enabling d-cache speeds up SDRAM memory access and improves performance.

Here is ramspeed test result:

~ # ramspeed -b 2 -g 1 -m 1 -r
RAMspeed (GENERIC) v2.6.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09

1Gb per pass mode

INTEGER & READING         1 Kb block: 1469.35 Mb/s
INTEGER & READING         2 Kb block: 1485.96 Mb/s
INTEGER & READING         4 Kb block: 1498.95 Mb/s
INTEGER & READING         8 Kb block: 1504.50 Mb/s
INTEGER & READING        16 Kb block: 1506.97 Mb/s
INTEGER & READING        32 Kb block: 1304.37 Mb/s
INTEGER & READING        64 Kb block: 116.81 Mb/s
INTEGER & READING       128 Kb block: 116.84 Mb/s
INTEGER & READING       256 Kb block: 116.90 Mb/s
INTEGER & READING       512 Kb block: 116.84 Mb/s
INTEGER & READING      1024 Kb block: 116.90 Mb/s

Other

Resolves #4

Enable d-cache to increase SDRAM memory access and improve performance.

Here is ramspeed test result:

$ ramspeed -b 2 -g 1 -m 1 -r
RAMspeed (GENERIC) v2.6.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09

1Gb per pass mode

INTEGER & READING         1 Kb block: 1469.35 Mb/s
INTEGER & READING         2 Kb block: 1485.96 Mb/s
INTEGER & READING         4 Kb block: 1498.95 Mb/s
INTEGER & READING         8 Kb block: 1504.50 Mb/s
INTEGER & READING        16 Kb block: 1506.97 Mb/s
INTEGER & READING        32 Kb block: 1304.37 Mb/s
INTEGER & READING        64 Kb block: 116.81 Mb/s
INTEGER & READING       128 Kb block: 116.84 Mb/s
INTEGER & READING       256 Kb block: 116.90 Mb/s
INTEGER & READING       512 Kb block: 116.84 Mb/s
INTEGER & READING      1024 Kb block: 116.90 Mb/s

Signed-off-by: tfx2001 <[email protected]>
@tfx2001 tfx2001 merged commit 194d9cc into main Aug 17, 2024
2 checks passed
@tfx2001 tfx2001 deleted the dev/enable-d-cache branch August 17, 2024 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

D cache is not enabled
1 participant