Other Parts Discussed in Thread: SYSBIOS
Tool/software: TI-RTOS
Hi
like to understand what happens with the below command
Cache_inv(addr,size,Cache_Type_ALLD,TRUE)
addr = 0xC0000000
size=500MBytes
we are using this command to invalidate the cache. The problem we are having is that it takes about
52441674 DSP clock cycles for invalidate (the DSP is running at 750Mhz) around 70ms. We would have thought it should be shorter than that. During this time we are not doing anything else and all the HWI are disabled before going executing this command.
In the below e2e it looks like it says the number of DSP clock cycles that it takes to invalidate the cache is
https://e2e.ti.com/support/processors/f/791/t/422590?L1D-cache-invalidate-latency
(total addresible ram space)/(cache line length)
if this is true then for our case it should take
L1D = 500MB/64= 8.2M cycles
L2D=500MB/128 = 4.1Mcycles
the total cycle should be 8.2M + 4.1M = 12.3M cycles and not 54Mcyles.
Like to know why the number of cycles is about 3x than what its suppose to be.
Thanks
Regards
Mohsen