Skip to contentSkip to conversation

r4k_dma_cache_inv_pc() does writeback

DISCUSSION Jun Sun 2 participants 2 messages Oct 30, 2000 – Oct 31, 2000 MIPS

lore
Share & tools
lore

Jun Sun

author
#0 lore raw

It just occur to me that r4k_dma_cache_inv_pc() actually does a writeback before it invalidates the cache. Is there story behind it? Or just a plain bug?

If it is a bug, I don't find an easy way to invalidate the whole dcache other than writing a new function, perhaps in r4kcache.h.

Jun

#1 lore raw
Quoted 3 lines · Jun Sun

It just occur to me that r4k_dma_cache_inv_pc() actually does a writeback before it invalidates the cache. Is there story behind it? Or just a plain bug?

No big story, I was simply to lazy to implement yet another function. You could probably get some performance gains.

Quoted 2 lines

If it is a bug, I don't find an easy way to invalidate the whole dcache other than writing a new function, perhaps in r4kcache.h.

Ralf