linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/3] arm: support get_user_pages_fast
@ 2018-09-17  0:44 Minchan Kim
  2018-09-17  0:44 ` [PATCH v1 1/3] arm: mm: reordering memory type table Minchan Kim
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Minchan Kim @ 2018-09-17  0:44 UTC (permalink / raw)
  To: Andrew Morton, linux
  Cc: steve.capper, will.deacon, catalin.marinas, linux-kernel,
	linux-arm-kernel, kernel-team, miles.chen, jian-min.lui,
	juju.sung, Minchan Kim

Recently, I got a report get_user_pages_fast helps app's launching time
due to reducing uninterruptible sleep time because it could reduce
mmap_sem lock contentions when app is launching.

To support gupf in ARM-non-LPAE, first patch reorders memory type table
to use 5th bit of the page table.

Second patch introduces L_PTE_SPECIAL for arm so that last patch can
support get_user_pags_fast.

I would greatly appreciate if guys review that I screw up something,
especially, architecture stuffs.

* from RFC
  * Remove CPU_v7M - Catalin
  * define DEV_NONSHARED to SHARED - Catalin
  * https://lkml.kernel.org/r/20180910165011.zcighyuabshsmxjb@armageddon.cambridge.arm.com

Minchan Kim (3):
  arm: mm: reordering memory type table
  arm: mm: introduce L_PTE_SPECIAL
  arm: mm: support get_user_pages_fast

 arch/arm/Kconfig                      |   2 +-
 arch/arm/include/asm/pgtable-2level.h |  22 ++-
 arch/arm/include/asm/pgtable-3level.h |   6 -
 arch/arm/include/asm/pgtable.h        |  13 ++
 arch/arm/mm/Makefile                  |   6 +
 arch/arm/mm/gup.c                     | 221 ++++++++++++++++++++++++++
 arch/arm/mm/proc-macros.S             |   4 +-
 7 files changed, 259 insertions(+), 15 deletions(-)
 create mode 100644 arch/arm/mm/gup.c

-- 
2.19.0.397.gdd90340f6a-goog


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

end of thread, other threads:[~2018-09-28  6:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-17  0:44 [PATCH v1 0/3] arm: support get_user_pages_fast Minchan Kim
2018-09-17  0:44 ` [PATCH v1 1/3] arm: mm: reordering memory type table Minchan Kim
2018-09-21  1:43   ` Minchan Kim
2018-09-24 16:22   ` Catalin Marinas
2018-09-28  6:34     ` Minchan Kim
2018-09-17  0:44 ` [PATCH v1 2/3] arm: mm: introduce L_PTE_SPECIAL Minchan Kim
2018-09-17  0:44 ` [PATCH v1 3/3] arm: mm: support get_user_pages_fast Minchan Kim

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