On Tuesday 18 February 2014 11:37:46 Jason Gunthorpe wrote:
No idea of the history, but for DMA heavy work loads write-through is
better since you spend less cpu cycles doing cache flushing, while for
CPU centric work loads write-back is better since you spend less time
waiting for memory.
Since these SOCs are popular for storage and networking apps I'm not
surprised to see this option.
Ok, that makes much more sense than anything I could come up with ;-)
But a static config option is not really in-line with current thinking
on these sorts of things. A DT option would be better (IMHO), but even
that is probably not going to be universally loved.
One of the later patches actually introduced a DT property for
it, but the implementation of that seemed incomplete, so the current
plan is to keep the Kconfig option for now.
Can we worry about this after Andrew's shuffling is done?
Sure.
Arnd