linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
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
Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,
	Joakim Tjernlund <joakim.tjernlund@transmode.se>
Subject: [PATCH 0/2] powerpc32: optimisation of csum_partial_copy_generic()
Date: Mon, 22 Jun 2015 19:01:05 +0200 (CEST)	[thread overview]
Message-ID: <cover.1434978970.git.christophe.leroy@c-s.fr> (raw)

This patch optimises csum_partial_copy_generic() by making use of cache
instructions (dcbt/dcbz) just like copy_tofrom_user() does

On a TCP benchmark using socklib on the loopback interface on which checksum
offload and scatter/gather have been deactivated, we get about 20% performance
increase.


Christophe Leroy (2):
  powerpc32: checksum_wrappers_64 becomes checksum_wrappers
  powerpc32: rewrite of csum_partial_copy_generic based of copy_tofrom_user

 arch/powerpc/include/asm/checksum.h     |   9 -
 arch/powerpc/lib/Makefile               |   3 +-
 arch/powerpc/lib/checksum_32.S          | 320 +++++++++++++++++++++-----------
 arch/powerpc/lib/checksum_wrappers.c    | 102 ++++++++++
 arch/powerpc/lib/checksum_wrappers_64.c | 102 ----------
 5 files changed, 312 insertions(+), 224 deletions(-)
 create mode 100644 arch/powerpc/lib/checksum_wrappers.c
 delete mode 100644 arch/powerpc/lib/checksum_wrappers_64.c

-- 
2.1.0

             reply	other threads:[~2015-06-22 17:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-22 17:01 Christophe Leroy [this message]
2015-06-22 17:01 ` [PATCH 1/2] powerpc32: checksum_wrappers_64 becomes checksum_wrappers Christophe Leroy
2015-06-23  0:31   ` Scott Wood
2015-06-22 17:01 ` [PATCH 2/2] powerpc32: rewrite of csum_partial_copy_generic based of copy_tofrom_user Christophe Leroy

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.1434978970.git.christophe.leroy@c-s.fr \
    --to=christophe.leroy@c-s.fr \
    --cc=benh@kernel.crashing.org \
    --cc=joakim.tjernlund@transmode.se \
    --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 \
    /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).