Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp300587pxu; Thu, 15 Oct 2020 04:27:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTzm123sFpi8Oj8iOYrxV7iBi6717rxrNQnSHFk8h6r/W7meNFzqey3LWCSvortqMPKLPs X-Received: by 2002:a50:d98d:: with SMTP id w13mr4039645edj.37.1602761254183; Thu, 15 Oct 2020 04:27:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602761254; cv=none; d=google.com; s=arc-20160816; b=Sw7dGX5J2axnWNBgKGBufzWcDBqfkNF6ZmQvpCRPBh8o8Ck6xKeMvVPTqjzbu3YWQT pOyGq7CU5C6heFz87hVhR2CGx1Ua4Efe8yyaoyJYURExwk5F6RCb8erQ3CY3vLLLJtRA eLkIOABH2IdIvrUZOzuWmCzuuE056xFh1LT5F5G/tRT+FGEKkeKGoHRKec9oXCaVPvAr Ux4YH6+fUOKuxNP9dO6rNYNarqYyca6eHEXm8D63htDxNWQoC/wau6YkzpcZ20Opt04g pAVu+bSNaMdflStwLQWltdKaxm8Q4QD/2OLjEc5CJYCOOdLwhrMjU5XlLZG2/ksLlyL2 3Gmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=LTOL1MLHOtfh7neI9gwSAjb51qZpG4JJ6ZLGUtJ+FlM=; b=g0dK29NFzASVvC7nAHDSWS9BxD7y16w5TyQfzR02eziAB7lmft8Svt/tlr+1LjYATX 29tI1Eht5aif1pEI1WKoTKXzdBf8WbV7w20lM4x27Z5z9lwVdlEx7qevC2sucogtNRSx CEX79ErRbsGdtgCR3LrayyAP4Ooj3I5YKjfxBTmCAKQCt99oGHfMIz2bnjSpVz8uMAGI o6yB2wvBW8Fr+CRfj7+WHyo3UtEtlUvLhHJ/XgMMnSH2AqMGl9UbRlxNbP++CgN677vA S4H+ktxxi8QLxgjmpfpFkI+9lKXKDp1MT+bePD8SN9hyw13/aE8bRXgHHkiykd7L1ege qmDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Txd/Jrrp"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u7si1759195edo.531.2020.10.15.04.27.11; Thu, 15 Oct 2020 04:27:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Txd/Jrrp"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730348AbgJOIgM (ORCPT + 99 others); Thu, 15 Oct 2020 04:36:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:32802 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729723AbgJOIgM (ORCPT ); Thu, 15 Oct 2020 04:36:12 -0400 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 576012075B; Thu, 15 Oct 2020 08:36:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602750971; bh=hP94CwWS7xvhTtF8wHiWx81RZLTLeMuk1epq5z2bU60=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Txd/JrrpLD6X5BUFspoeQ16zqYuMvFY/nGUubsShJbaDZD/vXpFyWkRVj1Db6IsFt sP2wBydRlaO/qSJTch7wm2jzfKeziqjJgYgqPtA5Z/sPQwdIOEOL6oree26WZRVPbN z3oI29eBZ5kFodoa2KvHQwD5FsU9Q5D0mDLAr5VA= Date: Thu, 15 Oct 2020 09:36:05 +0100 From: Will Deacon To: Sudarshan Rajagopalan Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Gavin Shan , Anshuman Khandual , Catalin Marinas , Mark Rutland , Logan Gunthorpe , David Hildenbrand , Andrew Morton , Steven Price Subject: Re: [PATCH v3] arm64/mm: add fallback option to allocate virtually contiguous memory Message-ID: <20201015083605.GA4537@willie-the-truck> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 14, 2020 at 05:51:23PM -0700, Sudarshan Rajagopalan wrote: > When section mappings are enabled, we allocate vmemmap pages from > physically continuous memory of size PMD_SIZE using > vmemmap_alloc_block_buf(). Section mappings are good to reduce TLB > pressure. But when system is highly fragmented and memory blocks are > being hot-added at runtime, its possible that such physically continuous > memory allocations can fail. Rather than failing the memory hot-add > procedure, add a fallback option to allocate vmemmap pages from > discontinuous pages using vmemmap_populate_basepages(). > > Signed-off-by: Sudarshan Rajagopalan > Reviewed-by: Gavin Shan > Reviewed-by: Anshuman Khandual > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Anshuman Khandual > Cc: Mark Rutland > Cc: Logan Gunthorpe > Cc: David Hildenbrand > Cc: Andrew Morton > Cc: Steven Price > --- > arch/arm64/mm/mmu.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) Please can you fix the subject? I have three copies of "PATCH v3" from different days in my inbox. I know it sounds trivial, but getting these little things right really helps with review, especially when it's sitting amongst a sea of other patches. Thanks, Will