]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
riscv: Adjust mmap base address at a third of task size
authorAlexandre Ghiti <aghiti@upmem.com>
Mon, 10 Dec 2018 06:21:46 +0000 (06:21 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Mar 2019 21:04:02 +0000 (14:04 -0700)
commitbf981e9b8ab7caaf782a548527923edf3a25fc03
treef5f6488bd262ef871cb17b76e5b1b75bd7c3ccb4
parentc5e5e6c6c55c8f2ebfb3c37d1987c998f5b19990
riscv: Adjust mmap base address at a third of task size

[ Upstream commit ae662eec8a515ab550524e04c793b5ddf1aae3a1 ]

This ratio is the most used among all other architectures and make
icache_hygiene libhugetlbfs test pass: this test mmap lots of
hugepages whose addresses, without this patch, reach the end of
the process user address space.

Signed-off-by: Alexandre Ghiti <aghiti@upmem.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/riscv/include/asm/processor.h