How to utilize L2 partition?

Like shown here:

Ampere’s L2 cache is partitioned into two parts. If we can store the data near the corresponding L2, we can save time to move data! But how can we do that? Any example? Thank you!!!

There are some details in the Programming Guide here.