<br><br><div class="gmail_quote">2012/10/12 Catalin Marinas <span dir="ltr"><<a href="mailto:catalin.marinas@arm.com" target="_blank">catalin.marinas@arm.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Fri, Oct 12, 2012 at 11:51:07AM +0100, Li Haifeng wrote:<br>
> For flush all data cache, the flush action begins from Level 0, then increase<br>
> cache level by 1.<br>
><br>
> But in function v7_flush_dcache_all, the step is 2. IOW, it will just flush<br>
> 0,2,4,6 level cache.<br>
> As the following code, the step is stored in r10, and the increase line is "add<br>
> r10, r10, #2".<br>
<br>
</div>That's because the cache level is written in the CSSELR bits 3:1 (so no<br>
bit 0). When the levels of cache is calculated (r3), it is also 2x.<br></blockquote><div> </div><div>Great, Thanks very much. </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Catalin<br>
<br>
</font></span></blockquote></div><br>