I have few doubts regarding $ L1$ and $ L2 $ cache
Consider there is sequential access to L1 and L2 cache i.e L2 is accessed after L1 misses
$\textup{Doubt 1:}$
Suppose we want to read data and data is not present in both $ L1$ and $ L2 $ then during reading that block, is it copied to both $ L1$ and $ L2 $ or only to $ L1$? Please explain w.r.t $\textup{write back}$ and $\textup{write through}$?
$\textup{Doubt 2:}$
Suppose we need to write data and $ L1$ gets write miss and $ L2$ has write hit. Now consider we are using $\textup{write through}$ so data gets updated in memory but does the data brought in $ L1$ cache also?
Considering the same scenario what happens if we use $\textup{write back}$ policy?
$\textup{Doubt 3:}$
Suppose we want to perform write and we are using $\textup{write back}$ policy. Now consider that there is a write miss in both $ L1$ and $ L2 $ and we are using $\textup{write allocate}$, so do we write data only to $ L1$ or to both $ L1$ and $ L2 $?
What happens if its said that both the cache are inclusive?