There's a good overview here:
http://wiki.davincidsp.com/index.php?title=Cache_Management

... which includes a section on common cache errors and some details about 
Codec Engine's support for cache management.

Chris

________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Griffis, Brad
Sent: Sunday, June 29, 2008 1:55 PM
To: amr ali; davinci-linux-open-source@linux.davincidsp.com
Subject: RE: Cache Coherency between ARM core and DSP

Be careful with your cache operations.  A WB-inv is not the "catch all" 
operation.  You can do some damage if you do it in the wrong place.

A few hints/tips:
*  Make sure that only one of the processors is accessing the data at any given 
time.
*  Before touching a buffer for the first time the processor should do a "block 
invalidate" to make sure it doesn't have any old data corresponding to that 
address range.
*  After finishing work with a buffer the processor should do a "block 
writeback (invalidate)" to push all the new data out to DDR.

FYI, I'm speaking pretty generically with my above comments.  I'm not sure what 
cache operations are already being performed by Codec Engine, DSP Link, 
Framework Components, etc.  Someone else may comment on those specifically.

It would be helpful if you share your motivations for doing these cache 
operations.  Are you having cache coherence issues?  If you share more about 
why you're doing it we might be able to make enhancements in Codec Engine to 
help you out.  They might even already exist!

Brad

________________________________
From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of amr ali [EMAIL PROTECTED]
Sent: Sunday, June 29, 2008 2:53 AM
To: davinci-linux-open-source@linux.davincidsp.com
Subject: Cache Coherency between ARM core and DSP

Hi,
If I want to perform cache coherency my self on some data I pass from ARM to 
DSP and vice-versa, what should I do?
A suggested scenario is to make the following modifications in ARM code:
WB cache & invalidate it
VISA API
WB cache & invalidate it again

Your suggestions are welcome.
Should I do same thing in DSP code?
BR,
Amr Ali.


________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. 
It's easy! Try 
it!<http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us>
_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to