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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 75CD9C38142 for ; Tue, 31 Jan 2023 18:24:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=iHCyaskIngGiKQkPcMiW8m9dVK10+mRmLi7bvT6//NI=; b=vUkQlvRP7f88Nj6ZfKeiuami/s h3nHCq2uIgK9mFgy0eDskN3LcKFezqWFgfSGE67jX5LYrNzeSTvj7/v17RmuXokPIKraMGDn8CGjR /rOYB23ZAWroEYiOyfGvd2nhmo09n5dCAnpIoWd7sj38OEA/ADPEO5hJ3zc+4Btlw5C77q80t9yd7 /B83oxyMtTC8RFJMOZejNQywV5nTaazjdQ1VvJFlIt/tDxoVDfMfZUa6SKQ6fC3EkQXk3OfBYC17U 5hh5Iz4FZH5QU4b3TjtwtPbRLau9Z+2/EuLlSZb+AIkAsx9xa7FkzupcSaIy6CFvu+OuKUrrM2pZr cFGpsjqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pMvIR-008yjL-Gj; Tue, 31 Jan 2023 18:23:55 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pMvIO-008yis-Pb for linux-riscv@lists.infradead.org; Tue, 31 Jan 2023 18:23:54 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id EFA32B81E56; Tue, 31 Jan 2023 18:23:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C99C3C433EF; Tue, 31 Jan 2023 18:23:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675189429; bh=VnD9d4+w/3Jfx127g1aQktEJStJ9dQ+jfi150fUwax4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mtc0jMNUrXXop6WwNpS7fLWyH1YMqKs+EpcAX/QMXhb+qtd0A1HrLOAeaeF0etXxm 2Y4ogTZMtQvbUzLtqVmPYZp9Wwy6uaci6eS2teya/w6zqRr0XuqogzIh7sGZvVJDeB alFpPIKIJ3WlttnKpx5Ad8RL4J5o88uodg/FQl3p1vq9fPf7ylbGsM8w9qDGzuVi24 zGMmvXwdYnxjL5K4KUyC+0QAYQHQ1bwa9u3ivgpZAkbDO8yl3HXWTS9cxhls+9euTb wSnGEnY5L2qh8ZnXlooFthxzW/eMJHsy2wpKI4tujjYwcuQJ5wMdfh0hPISpJBOYZp RO7NnPeor7wyA== Date: Tue, 31 Jan 2023 18:23:45 +0000 From: Conor Dooley To: guoren@kernel.org Cc: tongtiangen@huawei.com, alexandre.ghiti@canonical.com, muchun.song@linux.dev, palmer@rivosinc.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Guo Ren , Muchun Song Subject: Re: [PATCH -next V2] riscv: mm: hugetlb: Enable ARCH_WANT_HUGETLB_PAGE_OPTIMIZE_VMEMMAP Message-ID: References: <20230127050421.1920048-1-guoren@kernel.org> MIME-Version: 1.0 In-Reply-To: <20230127050421.1920048-1-guoren@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230131_102353_140283_8EBC90B9 X-CRM114-Status: GOOD ( 22.52 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============3148716289238514226==" Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org --===============3148716289238514226== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jzDCvYMAFAxxEvI8" Content-Disposition: inline --jzDCvYMAFAxxEvI8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 27, 2023 at 12:04:21AM -0500, guoren@kernel.org wrote: > From: Guo Ren >=20 > Add HVO support for RISC-V; see commit 6be24bed9da3 ("mm: hugetlb: > introduce a new config HUGETLB_PAGE_FREE_VMEMMAP"). This patch is > similar to commit 1e63ac088f20 ("arm64: mm: hugetlb: enable > HUGETLB_PAGE_FREE_VMEMMAP for arm64"), and riscv's motivation is the > same as arm64. The current riscv was ready to enable HVO after fixup, > ref commit d33deda095d3 ("riscv/mm: hugepage's PG_dcache_clean flag > is only set in head page"). >=20 > The HugeTLB VmemmapvOptimization (HVO) defaults to off in Kconfig. >=20 > Here is the riscv test log: > cat /proc/sys/vm/hugetlb_optimize_vmemmap > echo 8 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages > mount -t hugetlbfs none test/ -o pagesize=3D2048k > >=20 > Signed-off-by: Guo Ren > Signed-off-by: Guo Ren > Link: https://lore.kernel.org/linux-riscv/1F5AF29D-708A-483B-A29F-CAEE6F5= 54866@linux.dev/ > Acked-by: Muchun Song > --- > Changelog: > V2: > - Optimize the commit log > - Remove riscv page compound_head fixup which has been merged. > - Rebase on riscv for-next (20230127) > - Add HVO author's acked-by >=20 > V1: > https://lore.kernel.org/linux-riscv/20221023133205.3493564-1-guoren@kerne= l.org/ > --- > arch/riscv/Kconfig | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig > index e2b656043abf..949974a38a41 100644 > --- a/arch/riscv/Kconfig > +++ b/arch/riscv/Kconfig > @@ -46,6 +46,7 @@ config RISCV > select ARCH_WANT_FRAME_POINTERS > select ARCH_WANT_GENERAL_HUGETLB > select ARCH_WANT_HUGE_PMD_SHARE if 64BIT > + select ARCH_WANT_HUGETLB_PAGE_OPTIMIZE_VMEMMAP CI is telling me that this is added out of order. I suppose that means that T is before _ in the "alphabet", and this should be moved up one line. Perhaps it can be fixed on application! > select ARCH_WANTS_THP_SWAP if HAVE_ARCH_TRANSPARENT_HUGEPAGE > select BINFMT_FLAT_NO_DATA_START_OFFSET if !MMU > select BUILDTIME_TABLE_SORT if MMU > --=20 > 2.36.1 >=20 --jzDCvYMAFAxxEvI8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCY9lcsQAKCRB4tDGHoIJi 0unmAQDThJqtWFmjK8UJeucxod5elztkEGFbVBGc/3NVd0lUdwEAgTM9IjxSoOIn sHAzccTxl07PcjJhG5qwPwcnNc1eTA8= =hf/N -----END PGP SIGNATURE----- --jzDCvYMAFAxxEvI8-- --===============3148716289238514226== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv --===============3148716289238514226==--