Skip to content

Using L2 as scratchpad on top of Linux OS #23

Answered by griffini
dawsfox asked this question in How to
Discussion options

You must be logged in to vote

We don't tend to use the scratchpad in Linux.

Currently, the HSS will setup 4-ways as L2 Scratchpad

[19.23509] HSS_DDRPrintL2CacheWaysConfig(): L2 Cache Configuration:
    L2-Scratchpad:  4 ways (512 KiB)
         L2-Cache:  8 ways (1024 KiB)
           L2-LIM:  4 ways (512 KiB)

Right now, the HSS is using the first 320KB of this 512KiB. So you could for example, use the remaining 192KiB?

If you need more, you can reallocate the LIM ways to scratchpad - this will require modifications to the design configuration XML (either manually, or using the Libero PolarFire SoC MSS Configurator) - for example, https://github.com/polarfire-soc/hart-software-services/blob/master/boards/mpfs-icicle-ki…

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by hughbreslin
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
How to
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #14 on May 20, 2022 11:24.