Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
Setting 'shareable' attribute in PT entry discard cache policies ?
Jump...
Cancel
Locked
Locked
Replies
3 replies
Subscribers
119 subscribers
Views
2947 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
How was your experience today?
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
Setting 'shareable' attribute in PT entry discard cache policies ?
Sujith K V
over 12 years ago
Note: This was originally posted on 21st March 2012 at
http://forums.arm.com
Hi,
I am working on Cortex-A8 with MMU Enabled.
I am configuring L1 as Write Through No Write Allocate and L2 as Write Back Write Allocate. Both L1 and L2 caches are enabled.
And the memory attribute is given normal memory and 'shareable' in the page table entry.
Then, When I write to a variable, its also written to memory.
When I change only the memory attribute to 'non-shareable', the variable is written to cache only.
Is shareability attribute means, irrespective of the cache attributes we set, it will be 'write through ??', Or all writes are happening to memory only?
I dont see any other CP15 register settings which can cause this behaviour.
Can anyone help me ?
Regards,
Parents
Sujith K V
over 12 years ago
Note: This was originally posted on 22nd March 2012 at
http://forums.arm.com
Thank you very much for replying to this query!
so I understand from your reply, that the implementation of the SoC might be making the Memory and Cache coherent if the region is marked 'Shared'.
But doesnt it reduce the perfomance, if I mark it shareable, since this coherency needs to be maintained? also, in ARM ARM, i couldnt find anywhere this mentioned.
Regards
Cancel
Vote up
0
Vote down
Cancel
Reply
Sujith K V
over 12 years ago
Note: This was originally posted on 22nd March 2012 at
http://forums.arm.com
Thank you very much for replying to this query!
so I understand from your reply, that the implementation of the SoC might be making the Memory and Cache coherent if the region is marked 'Shared'.
But doesnt it reduce the perfomance, if I mark it shareable, since this coherency needs to be maintained? also, in ARM ARM, i couldnt find anywhere this mentioned.
Regards
Cancel
Vote up
0
Vote down
Cancel
Children
No data