From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id B259EEB64DA for ; Fri, 14 Jul 2023 11:17:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EACF46B0071; Fri, 14 Jul 2023 07:17:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E5DE46B0072; Fri, 14 Jul 2023 07:17:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D4BC16B0074; Fri, 14 Jul 2023 07:17:10 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id C60496B0071 for ; Fri, 14 Jul 2023 07:17:10 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 7FD67A01A9 for ; Fri, 14 Jul 2023 11:17:10 +0000 (UTC) X-FDA: 81009965820.18.1F3DA54 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf27.hostedemail.com (Postfix) with ESMTP id 5899D40015 for ; Fri, 14 Jul 2023 11:17:07 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=Lv5p4XEJ; spf=pass (imf27.hostedemail.com: domain of conor@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=conor@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1689333427; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=t9ZEU4+pfXwfJdTXSRIq3hoOFRHvcYxbT4dRSpG6Bv4=; b=E36jqwczcPN36GLH4mdekOYngX+sqtW+bY3BQ9p7W818TnRt+hQqa17IcJvwulRaH2SIT5 8llaUGLbJ0gC46eg4WOUiucLRLpXInNMmreyNfEXF7773hXwzM/eqPpVoP79HreQ0lnRzH e/9vNn5HSXlYQkAxCVeqfNeNy2gwqCo= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1689333427; a=rsa-sha256; cv=none; b=AMcfdN7QAU+5OSi/Rz7MrIIDtmpVacilGusVfsY5B1u1LfzsDQG39M5phpW1jQzhHkAOIT A9rDqEf8pEE3eGgONMYcKG0ARl4Vz+hP4vS/qU20avXeyL2YAJk9Jd9HAWR/NHoATOqrMs +3Y/gnSxksvWgh3yMwQ+aZsEelBbp9E= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=Lv5p4XEJ; spf=pass (imf27.hostedemail.com: domain of conor@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=conor@kernel.org; dmarc=pass (policy=none) header.from=kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 61C7A61BAA; Fri, 14 Jul 2023 11:17:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6E61C433C7; Fri, 14 Jul 2023 11:17:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689333425; bh=Yf59rtKFicaadtmI6Nu2BYl9fHiZoEYJ3kP0RAok4to=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Lv5p4XEJQEMYWbfF3sNwRz+QmN/bOZIdS4qb75dRXPFKTzZr72kGVX0h5YjfVYWdF PhUgBU5l1GxxzHUCa0AYbY86VyEPh2lt5CQI/D1w2jl5eZFVlh9Zb0VIG95kKqkBON 0LQSgEEjpRwOHP4U8NL+kMLyDXECXLt7xgZVosEniQOAmc/Ac5G6MBnvVwz+/4JIhM mHgYukXGY/eNVWv9vjAuxG4ig1/K/yzGnZpnoz05MCqOQZhfi5rkD6zU+9tP8uEp44 1VtjmtpAbcdPRbBt1Krv2ccvfEtR39qs02rULLJoWltPcziP8WwTLIu3jduXY5imNh Z8jQYbEpf2UTw== Date: Fri, 14 Jul 2023 12:17:00 +0100 From: Conor Dooley To: Charlie Jenkins Cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, paul.walmsley@sifive.com, palmer@rivosinc.com, aou@eecs.berkeley.edu, anup@brainfault.org, konstantin@linuxfoundation.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, mick@ics.forth.gr, jrtc27@jrtc27.com, rdunlap@infradead.org, alexghiti@rivosinc.com Subject: Re: [PATCH v5 0/4] RISC-V: mm: Make SV48 the default address space Message-ID: <20230714-hangnail-stinking-60f9725ac0d5@spud> References: <20230714001430.75798-1-charlie@rivosinc.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jMLB4CN0CiHBLUdn" Content-Disposition: inline In-Reply-To: <20230714001430.75798-1-charlie@rivosinc.com> X-Stat-Signature: n4hwwabt54gezb7uhqdt6m8j547qmsbd X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 5899D40015 X-Rspam-User: X-HE-Tag: 1689333427-735510 X-HE-Meta: U2FsdGVkX18Zkbeqw3UiE0ys8ZFYO0Yg7AaqxLnjzbedxI58OtJEPiKpnXMeKIAm9fcyRA/Akn7QbKV1p1Dblge0bL12VRgDRQMxswMSrdDFJiHUShtll5UvZWHuhUVop17ae8tsh0ejXAcRq2yoJFJyuZ2uKAM5yz0b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cQuw/pNlIGq72fhHdPEBJyLxiBv0E19nnYxoV9+WLKwjU+amOMo7UQ/TyQfVrOfHw0DTuhAXsLQTX9zMKchlBoxFRckpOp9MYGmJoxpUXUWvGyO956XV9K9uKnCM= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: --jMLB4CN0CiHBLUdn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 13, 2023 at 05:13:59PM -0700, Charlie Jenkins wrote: > Make sv48 the default address space for mmap as some applications > currently depend on this assumption. Users can now select a > desired address space using a non-zero hint address to mmap. Previously, > requesting the default address space from mmap by passing zero as the hint > address would result in using the largest address space possible. Some > applications depend on empty bits in the virtual address space, like Go a= nd > Java, so this patch provides more flexibility for application developers. The patchwork automation failed to apply this, what is the base for the series? >=20 > -Charlie >=20 > --- > v5: > - Minor wording change in documentation > - Change some parenthesis in arch_get_mmap_ macros > - Added case for addr=3D=3D0 in arch_get_mmap_ because without this, prog= rams would > crash if RLIMIT_STACK was modified before executing the program. This w= as > tested using the libhugetlbfs tests.=20 >=20 > v4: > - Split testcases/document patch into test cases, in-code documentation, = and > formal documentation patches > - Modified the mmap_base macro to be more legible and better represent me= mory > layout > - Fixed documentation to better reflect the implmentation > - Renamed DEFAULT_VA_BITS to MMAP_VA_BITS > - Added additional test case for rlimit changes > --- >=20 > Charlie Jenkins (4): > RISC-V: mm: Restrict address space for sv39,sv48,sv57 > RISC-V: mm: Add tests for RISC-V mm > RISC-V: mm: Update pgtable comment documentation > RISC-V: mm: Document mmap changes >=20 > Documentation/riscv/vm-layout.rst | 22 +++ > arch/riscv/include/asm/elf.h | 2 +- > arch/riscv/include/asm/pgtable.h | 20 ++- > arch/riscv/include/asm/processor.h | 46 +++++- > tools/testing/selftests/riscv/Makefile | 2 +- > tools/testing/selftests/riscv/mm/.gitignore | 1 + > tools/testing/selftests/riscv/mm/Makefile | 21 +++ > .../selftests/riscv/mm/testcases/mmap.c | 133 ++++++++++++++++++ > 8 files changed, 234 insertions(+), 13 deletions(-) > create mode 100644 tools/testing/selftests/riscv/mm/.gitignore > create mode 100644 tools/testing/selftests/riscv/mm/Makefile > create mode 100644 tools/testing/selftests/riscv/mm/testcases/mmap.c >=20 > --=20 > 2.41.0 >=20 --jMLB4CN0CiHBLUdn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZLEurAAKCRB4tDGHoIJi 0vWmAQC/EywXok82Hrth9kz9y/zRYvLkySW1jR8buVPiN1zfigEAnSaGF2UkAjYa 6VCcjkwS7uQI4c/XFRtzztmmptbfaQo= =V+TD -----END PGP SIGNATURE----- --jMLB4CN0CiHBLUdn--