typo error. abundant=>redundant<br><br><div class="gmail_quote">2012/3/19 Scott Fang <span dir="ltr"><<a href="mailto:donnie.fang@gmail.com">donnie.fang@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In function ttm_tt_set_caching<br>,,,,,,,<br><br> if (ttm->caching_state == tt_cached)<br> <span style="color:rgb(153,0,0)"> </span><span style="background-color:rgb(255,0,0);color:rgb(255,0,0)"> <span style="background-color:rgb(255,255,255)">drm_clflush_pages(ttm->pages, ttm->num_pages);</span></span><br>
<br> for (i = 0; i < ttm->num_pages; ++i) {<br> cur_page = ttm->pages[i];<br> if (likely(cur_page != NULL)) {<br> ret = ttm_tt_set_page_caching(cur_page,<br> ttm->caching_state,<br>
c_state);<br> if (unlikely(ret != 0))<br> goto out_err;<br> }<br> }<br><br> ttm->caching_state = c_state;<br><br> return 0;<br><br><br><span style="background-color:rgb(255,0,0);color:rgb(255,0,0)"><span style="background-color:rgb(255,255,255)">drm_clflush_pages<span style="color:rgb(0,0,0)"> flush cache one time.</span><br>
<span style="color:rgb(0,0,0)">then in the following function </span></span></span><span style="color:rgb(255,0,0)">ttm_tt_set_page_caching->set_memory_wc->change_page_attr_set: <span style="color:rgb(0,0,0)">in this function may flush page cache again.</span><br style="color:rgb(0,0,0)">
<br style="color:rgb(0,0,0)"><span style="color:rgb(0,0,0)">Does the code do some<span style="color:rgb(255,0,0)"> redundant </span>flush, or there is some trick to these codes?</span><br style="color:rgb(0,0,0)"><br style="color:rgb(0,0,0)">
<span style="color:rgb(0,0,0)">Thanks for the answer in advance.</span><br>
</span>
</blockquote></div><br>