I'm reading about cache in wiki https://en.m.wikipedia.org/wiki/CPU_cache and the following phrase seems not clear.
Also, a write to a main memory location that is not yet mapped in a write-back cache may evict an already dirty location, thereby freeing that cache space for the new memory location.
There could be writes from 1) peripherals and 2) CPU cache. For 1) I do not see meaning in the phrase at all. For 2) I understand computer need to write from cache to new location which was not in cache. Then that location becomes mapped to that cache line. Again I do not see any evictions.
Do I miss Something?
Added: found other part I could not understand and could not find good place via Web search where it is explained in a clear way (tags + index, how and where memory location is stored). Please point to good detailed article.