Skip to content

copy to/in/from user optimization

Feng Kan linux-arm-kernel lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 1 replyIn review
  2. v42 patches 2 repliesSuperseded

Changes in v5 from the cover letter

1. Switch patch ordering.
2. Simplify assembly code and use fixed large tags in marco
3. Fixed indentation issue.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2arm64: Change memcpy in kernel to use the copy template filearch/arm64/lib/copy_template.S arch/arm64/lib/memcpy.S+221 -1530 replies
2/2arm64: copy_to-from-in_user optimization using copy templatearch/arm64/lib/copy_from_user.S arch/arm64/lib/copy_in_user.S arch/arm64/lib/copy_to_user.S+120 -920 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH V5 0/2] copy to/in/from user optimization

This coverts all copy in/from/to user file to use the copy template file. The copy template file is based on the memcpy.S. The first patch converts the memcpy to use the copy template as well. Overnight trinity test and 10G iperf was used to test correctness and performance. Noticeable iperf improvement (~30%) on the receive side.

V5 Changes:
1. Switch patch ordering.
2. Simplify assembly code and use fixed large tags in marco
3. Fixed indentation issue.

Feng Kan (2):
arm64: Change memcpy in kernel to use the copy template file
arm64: copy_to-from-in_user optimization using copy template

 arch/arm64/lib/copy_from_user.S |  78 +++++++++-------
 arch/arm64/lib/copy_in_user.S   |  67 ++++++++------
 arch/arm64/lib/copy_template.S  | 195 ++++++++++++++++++++++++++++++++++++++++
 arch/arm64/lib/copy_to_user.S   |  67 ++++++++------
 arch/arm64/lib/memcpy.S         | 179 ++++++------------------------------
 5 files changed, 341 insertions(+), 245 deletions(-)
 create mode 100644 arch/arm64/lib/copy_template.S
Signature · 1 line
1.9.1