All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] MIPS: I6400: Avoid dcache flushes
@ 2016-01-22 10:58 ` James Hogan
  0 siblings, 0 replies; 14+ messages in thread
From: James Hogan @ 2016-01-22 10:58 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: Manuel Lauss, James Hogan, Leonid Yegoshin, linux-mips

These patches allow I6400 core to avoid dcache flushes when making
recently modified data available to icache.

I6400 effectively can fill icache from dirty dcache contents, which
means cpu_has_ic_fills_f_dc can evaluate to true (see patch 2).

However there are a couple of bugs in the cache handling when
cpu_has_ic_fills_f_dc, which need fixing first (see patch 1). That the
CPU fills icache from dcache does not imply that the icache is coherent
with dcache. Stale lines still need flushing from the icache, even if
lines in the dcache don't need writing back first.

James Hogan (2):
  MIPS: c-r4k: Sync icache when it fills from dcache
  MIPS: I6400: Icache fills from dcache

 arch/mips/mm/c-r4k.c | 12 ++++++++++--
 arch/mips/mm/init.c  |  2 +-
 2 files changed, 11 insertions(+), 3 deletions(-)

Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Leonid Yegoshin <leonid.yegoshin@imgtec.com>
Cc: Manuel Lauss <manuel.lauss@gmail.com>
Cc: linux-mips@linux-mips.org
-- 
2.4.10

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2016-01-22 15:56 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-22 10:58 [PATCH 0/2] MIPS: I6400: Avoid dcache flushes James Hogan
2016-01-22 10:58 ` James Hogan
2016-01-22 10:58 ` [PATCH 1/2] MIPS: c-r4k: Sync icache when it fills from dcache James Hogan
2016-01-22 10:58   ` James Hogan
2016-01-22 12:06   ` Manuel Lauss
2016-01-22 12:19     ` James Hogan
2016-01-22 13:05       ` Joshua Kinard
2016-01-22 13:54         ` James Hogan
2016-01-22 14:03         ` Ralf Baechle
2016-01-22 14:30       ` Manuel Lauss
2016-01-22 15:02         ` James Hogan
2016-01-22 15:55           ` Manuel Lauss
2016-01-22 10:58 ` [PATCH 2/2] MIPS: I6400: Icache " James Hogan
2016-01-22 10:58   ` James Hogan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.