linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] riscv: mm: Use hint address in mmap if available
@ 2024-01-30  0:36 Charlie Jenkins
  2024-01-30  0:37 ` [PATCH 1/3] " Charlie Jenkins
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Charlie Jenkins @ 2024-01-30  0:36 UTC (permalink / raw)
  To: Alexandre Ghiti, Paul Walmsley, Palmer Dabbelt, Albert Ou,
	Shuah Khan, Jonathan Corbet, Yangyu Chen
  Cc: linux-riscv, linux-kernel, linux-kselftest, linux-doc,
	Charlie Jenkins

On riscv, mmap currently returns an address from the largest address
space that can fit entirely inside of the hint address. This makes it
such that the hint address is almost never returned. This patch raises
the mappable area up to and including the hint address. This allows mmap
to often return the hint address, which allows a performance improvement
over searching for a valid address as well as making the behavior more
similar to other architectures.

Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
---
Charlie Jenkins (3):
      riscv: mm: Use hint address in mmap if available
      selftests: riscv: Generalize mm selftests
      docs: riscv: Define behavior of mmap

 Documentation/arch/riscv/vm-layout.rst           | 16 ++--
 arch/riscv/include/asm/processor.h               | 21 ++----
 tools/testing/selftests/riscv/mm/mmap_bottomup.c | 20 +----
 tools/testing/selftests/riscv/mm/mmap_default.c  | 20 +----
 tools/testing/selftests/riscv/mm/mmap_test.h     | 93 +++++++++++++-----------
 5 files changed, 66 insertions(+), 104 deletions(-)
---
base-commit: 556e2d17cae620d549c5474b1ece053430cd50bc
change-id: 20240119-use_mmap_hint_address-f9f4b1b6f5f1
-- 
- Charlie


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

end of thread, other threads:[~2024-01-30 22:12 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-30  0:36 [PATCH 0/3] riscv: mm: Use hint address in mmap if available Charlie Jenkins
2024-01-30  0:37 ` [PATCH 1/3] " Charlie Jenkins
2024-01-30  1:53   ` Stefan O'Rear
2024-01-30  2:04     ` Charlie Jenkins
2024-01-30  2:34   ` Yangyu Chen
2024-01-30  2:50     ` Charlie Jenkins
2024-01-30  7:42       ` Yangyu Chen
2024-01-30 21:05   ` kernel test robot
2024-01-30 22:12   ` kernel test robot
2024-01-30  0:37 ` [PATCH 2/3] selftests: riscv: Generalize mm selftests Charlie Jenkins
2024-01-30  0:37 ` [PATCH 3/3] docs: riscv: Define behavior of mmap Charlie Jenkins
2024-01-30  2:04 ` [PATCH 0/3] riscv: mm: Use hint address in mmap if available Stefan O'Rear
2024-01-30  2:13   ` Charlie Jenkins
2024-01-30 22:04     ` Stefan O'Rear
2024-01-30 22:10       ` Charlie Jenkins

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