LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH v3 0/2] Optimize dma_*_from_contiguous calls
@ 2019-05-24  4:06 Nicolin Chen
  2019-05-24  4:06 ` [PATCH v3 1/2] dma-contiguous: Abstract dma_{alloc,free}_contiguous() Nicolin Chen
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Nicolin Chen @ 2019-05-24  4:06 UTC (permalink / raw)
  To: hch, robin.murphy, m.szyprowski
  Cc: vdumpa, linux, catalin.marinas, will.deacon, chris, jcmvbkbc,
	joro, dwmw2, tony, akpm, sfr, treding, keescook, iamjoonsoo.kim,
	wsa+renesas, linux-arm-kernel, linux-kernel, linux-xtensa, iommu,
	dann.frazier

[ Per discussion at v1, we decide to add two new functions and start
  replacing callers one by one. For this series, it only touches the
  dma-direct part. And instead of merging two PATCHes, I still keep
  them separate so that we may easily revert PATCH-2 if anything bad
  happens as last time -- PATCH-1 is supposed to be a safe cleanup. ]

This series of patches try to optimize dma_*_from_contiguous calls:
PATCH-1 abstracts two new functions and applies to dma-direct.c file.
PATCH-2 saves single pages and reduce fragmentations from CMA area.

Please check their commit messages for detail changelog.

Nicolin Chen (2):
  dma-contiguous: Abstract dma_{alloc,free}_contiguous()
  dma-contiguous: Use fallback alloc_pages for single pages

 include/linux/dma-contiguous.h | 11 +++++++
 kernel/dma/contiguous.c        | 57 ++++++++++++++++++++++++++++++++++
 kernel/dma/direct.c            | 24 +++-----------
 3 files changed, 72 insertions(+), 20 deletions(-)

-- 
2.17.1


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

end of thread, other threads:[~2019-07-25 23:42 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-24  4:06 [PATCH v3 0/2] Optimize dma_*_from_contiguous calls Nicolin Chen
2019-05-24  4:06 ` [PATCH v3 1/2] dma-contiguous: Abstract dma_{alloc,free}_contiguous() Nicolin Chen
2019-05-29 18:35   ` Nathan Chancellor
2019-05-29 22:48     ` Nicolin Chen
2019-07-25 16:06   ` Ezequiel Garcia
2019-07-25 16:50     ` Nicolin Chen
2019-07-25 17:31       ` Dafna Hirschfeld
2019-07-25 23:42         ` Nicolin Chen
2019-05-24  4:06 ` [PATCH v3 2/2] dma-contiguous: Use fallback alloc_pages for single pages Nicolin Chen
2019-05-24 16:16   ` Ira Weiny
2019-05-27 10:55     ` Nicolin Chen
2019-05-24 20:03 ` [PATCH v3 0/2] Optimize dma_*_from_contiguous calls dann frazier
2019-05-28  6:04 ` Christoph Hellwig
2019-05-29 23:06   ` Nicolin Chen

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