linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] powerpc: convert cache asm to C
@ 2019-08-15  4:10 Alastair D'Silva
  2019-08-15  4:10 ` [PATCH 1/6] powerpc: Allow flush_icache_range to work across ranges >4GB Alastair D'Silva
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Alastair D'Silva @ 2019-08-15  4:10 UTC (permalink / raw)
  To: alastair
  Cc: Benjamin Herrenschmidt, Paul Mackerras, Michael Ellerman,
	Christophe Leroy, Thomas Gleixner, Greg Kroah-Hartman, Qian Cai,
	Nicholas Piggin, Allison Randal, Andrew Morton, Michal Hocko,
	David Hildenbrand, Mike Rapoport, linuxppc-dev, linux-kernel

From: Alastair D'Silva <alastair@d-silva.org>

This series addresses a few issues discovered in how we flush caches:
1. Flushes were truncated at 4GB, so larger flushes were incorrect.
2. Flushing the dcache in arch_add_memory was unnecessary

This series also converts much of the cache assembler to C, with the
aim of making it easier to maintain.

Alastair D'Silva (6):
  powerpc: Allow flush_icache_range to work across ranges >4GB
  powerpc: define helpers to get L1 icache sizes
  powerpc: Convert flush_icache_range & friends to C
  powerpc: Chunk calls to flush_dcache_range in arch_*_memory
  powerpc: Remove 'extern' from func prototypes in cache headers
  powerpc: Don't flush caches when adding memory

 arch/powerpc/include/asm/cache.h      |  63 +++++++++-----
 arch/powerpc/include/asm/cacheflush.h |  49 ++++++-----
 arch/powerpc/kernel/misc_32.S         | 117 --------------------------
 arch/powerpc/kernel/misc_64.S         |  97 ---------------------
 arch/powerpc/mm/mem.c                 |  80 +++++++++++++++++-
 5 files changed, 146 insertions(+), 260 deletions(-)

-- 
2.21.0


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

end of thread, other threads:[~2019-08-16 15:57 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-15  4:10 [PATCH 0/6] powerpc: convert cache asm to C Alastair D'Silva
2019-08-15  4:10 ` [PATCH 1/6] powerpc: Allow flush_icache_range to work across ranges >4GB Alastair D'Silva
2019-08-15  4:10 ` [PATCH 2/6] powerpc: define helpers to get L1 icache sizes Alastair D'Silva
2019-08-15  4:10 ` [PATCH 3/6] powerpc: Convert flush_icache_range & friends to C Alastair D'Silva
2019-08-15  7:29   ` christophe leroy
2019-08-16  1:44     ` Alastair D'Silva
2019-08-16 15:57     ` Christophe Leroy
2019-08-15  4:10 ` [PATCH 4/6] powerpc: Chunk calls to flush_dcache_range in arch_*_memory Alastair D'Silva
2019-08-15  6:54   ` Mike Rapoport
2019-08-15  7:36   ` christophe leroy
2019-08-16  1:45     ` Alastair D'Silva
2019-08-15  4:10 ` [PATCH 5/6] powerpc: Remove 'extern' from func prototypes in cache headers Alastair D'Silva
2019-08-15  4:10 ` [PATCH 6/6] powerpc: Don't flush caches when adding memory Alastair D'Silva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).