Skip to content

RFC scatterlist: add I/O variant of sg_pcopy & sg_copy and use them

Neil Armstrong linux-amlogic linux-arm-kernel linux-mmc lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2scatterlist: add I/O variant of sg_pcopy & sg_copyinclude/linux/scatterlist.h lib/scatterlist.c+133 -01 reply
2/2mmc: meson-gx: use sg_copy_to/from_io instead of local versiondrivers/mmc/host/meson-gx-mmc.c+10 -431 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH RFC 0/2] scatterlist: add I/O variant of sg_pcopy & sg_copy and use them

A local variant of sg_copy_buffer has been introduced in the meson-gx mmc driver [1] after a mempcy optimization, fixing the iomem buffer manipulation and the reported system crash [2].

But, the fix is suboptimal in terms of performace/ugliness [3] and a proper I/O variant of sg_copy_buffer should be added and used instead.

[1] https://lore.kernel.org/r/[email protected]
[2] https://lore.kernel.org/r/[email protected]
[3] https://lore.kernel.org/r/CAPDyKFrLSMpPJOgd5e4B1x3Vwfg4q23zgy4ESc8EmFL2MnyK7g@mail.gmail.com

Neil Armstrong (2):
scatterlist: add I/O variant of sg_pcopy & sg_copy
mmc: meson-gx: use sg_copy_to/from_io instead of local version

 drivers/mmc/host/meson-gx-mmc.c |  53 +++-----------
 include/linux/scatterlist.h     |  14 ++++
 lib/scatterlist.c               | 119 ++++++++++++++++++++++++++++++++
 3 files changed, 143 insertions(+), 43 deletions(-)
Signature · 1 line
2.25.1