linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/2] powerpc32: memcpy/memset: only use dcbz once cache is enabled
@ 2015-09-16 10:04 Christophe Leroy
  2015-09-16 10:04 ` [PATCH v4 1/2] powerpc32: memcpy: " Christophe Leroy
  2015-09-16 10:04 ` [PATCH v4 2/2] powerpc32: memset: " Christophe Leroy
  0 siblings, 2 replies; 5+ messages in thread
From: Christophe Leroy @ 2015-09-16 10:04 UTC (permalink / raw)
  To: Benjamin Herrenschmidt, Paul Mackerras, Michael Ellerman,
	scottwood, sojkam1
  Cc: linux-kernel, linuxppc-dev

memcpy() and memset() use instruction dcbz to speed up copy by not
wasting time loading cache lines with data that will be overwritten.
Some platform like mpc52xx do no have cache active at startup and
can therefore not use memcpy(). Allthough no part of the code
explicitly uses memcpy() and memset(), GCC makes calls to them.

Christophe Leroy (2):
  powerpc32: memcpy: only use dcbz once cache is enabled
  powerpc32: memset: only use dcbz once cache is enabled

 arch/powerpc/kernel/setup_32.c |  6 ++++++
 arch/powerpc/lib/copy_32.S     | 11 +++++++++++
 2 files changed, 17 insertions(+)

-- 
2.1.0

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

end of thread, other threads:[~2015-09-17  5:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-16 10:04 [PATCH v4 0/2] powerpc32: memcpy/memset: only use dcbz once cache is enabled Christophe Leroy
2015-09-16 10:04 ` [PATCH v4 1/2] powerpc32: memcpy: " Christophe Leroy
2015-09-17  5:13   ` [v4,1/2] " Michael Ellerman
2015-09-16 10:04 ` [PATCH v4 2/2] powerpc32: memset: " Christophe Leroy
2015-09-17  5:13   ` [v4,2/2] " Michael Ellerman

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).