From: Christophe Leroy <christophe.leroy@c-s.fr>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>,
Paul Mackerras <paulus@samba.org>,
Michael Ellerman <mpe@ellerman.id.au>,
scottwood@freescale.com, sojkam1@fel.cvut.cz
Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org
Subject: [PATCH v4 0/2] powerpc32: memcpy/memset: only use dcbz once cache is enabled
Date: Wed, 16 Sep 2015 12:04:48 +0200 (CEST) [thread overview]
Message-ID: <cover.1442335197.git.christophe.leroy@c-s.fr> (raw)
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
next reply other threads:[~2015-09-16 10:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-16 10:04 Christophe Leroy [this message]
2015-09-16 10:04 ` [PATCH v4 1/2] powerpc32: memcpy: only use dcbz once cache is enabled 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1442335197.git.christophe.leroy@c-s.fr \
--to=christophe.leroy@c-s.fr \
--cc=benh@kernel.crashing.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
--cc=paulus@samba.org \
--cc=scottwood@freescale.com \
--cc=sojkam1@fel.cvut.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).