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 X-Spam-Level: X-Spam-Status: No, score=-11.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0917BC433E0 for ; Thu, 18 Mar 2021 06:54:08 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 59D1D64F04 for ; Thu, 18 Mar 2021 06:54:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 59D1D64F04 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id A6E0E6B0070; Thu, 18 Mar 2021 02:54:06 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A0B496B0071; Thu, 18 Mar 2021 02:54:06 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8AC4E6B0072; Thu, 18 Mar 2021 02:54:06 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0239.hostedemail.com [216.40.44.239]) by kanga.kvack.org (Postfix) with ESMTP id 6B3F06B0070 for ; Thu, 18 Mar 2021 02:54:06 -0400 (EDT) Received: from smtpin17.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 28667180AD806 for ; Thu, 18 Mar 2021 06:54:06 +0000 (UTC) X-FDA: 77932080492.17.C84F0DC Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf21.hostedemail.com (Postfix) with ESMTP id 9C6D9E0001B2 for ; Thu, 18 Mar 2021 06:54:05 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 9B97764EE2; Thu, 18 Mar 2021 06:53:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616050443; bh=OLr6tn9DSS1nD71KjjsWAEswxGCiO3d2wxs6sdMs5ck=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UEpxhUlMi4rO1maKkMirQrgS6TsD/xMhFzpz0BYGwpS2Hpkc/19BCYAx8f30VoAx5 taA7LSk/xNBcW3uPBwyV5/76T/e6yPUpXZ3ylisQQeBnUbGZNKS+/6yoTsVHUsWtne +mCXxLZOZFjgTJf9wZJSGeQyYiiULplVCon0STnhruft9+oM+Hq6UWfPZwBZjn+IVS 7F7SmSL7VDuqRgJ2is9L+Z2amiFWeIWTPVIshjXANzk0GMZv/OQHaVJQJDku+JDGA2 4JRIrmm+DgZZlvg5PKO10o7azDGCL+F/MLncx8VYZQMRBr+fWv8a8aYxRa6ILpcprm fFA7EifGc6sfQ== Date: Thu, 18 Mar 2021 08:53:52 +0200 From: Mike Rapoport To: x86@kernel.org Cc: Andrew Morton , Andrea Arcangeli , Baoquan He , Borislav Petkov , David Hildenbrand , "H. Peter Anvin" , Ingo Molnar , Mel Gorman , Michal Hocko , Mike Rapoport , Qian Cai , Thomas Gleixner , Vlastimil Babka , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v3 0/2] x86/setup: consolidate early memory reservations Message-ID: References: <20210302100406.22059-1-rppt@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Stat-Signature: mg1e6it3b3yokmqmxhdpfewnbtpd1rnq X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 9C6D9E0001B2 Received-SPF: none (kernel.org>: No applicable sender policy available) receiver=imf21; identity=mailfrom; envelope-from=""; helo=mail.kernel.org; client-ip=198.145.29.99 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1616050445-445687 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: Another gentle ping. On Wed, Mar 10, 2021 at 07:52:13PM +0200, Mike Rapoport wrote: > Any comments on these? > > On Tue, Mar 02, 2021 at 12:04:04PM +0200, Mike Rapoport wrote: > > From: Mike Rapoport > > > > Hi, > > > > David noticed that we do some of memblock_reserve() calls after allocations > > are possible: > > > > https://lore.kernel.org/lkml/6ba6bde3-1520-5cd0-f987-32d543f0b79f@redhat.com > > > > The below patches consolidate early memory reservations done during > > setup_arch() so that memory used by firmware, bootloader, kernel text/data > > and the memory that should be excluded from the available memory for > > whatever other reason is reserved before memblock allocations are possible. > > > > The patches are rebased on v5.12-rc1 and I think x86 tree is the best way > > to merge them. > > > > v3: > > * rebase on v5.12-rc1 > > > > v2: https://lore.kernel.org/lkml/20210128105711.10428-1-rppt@kernel.org > > * get rid of trim_platform_memory_ranges() and call trim_snb_memory() > > directly, per Boris comments > > * massage changelog and comments to use passive voice, per Boris > > * add Acked-by and Reviewed-by, thanks Boris and David > > > > v1: https://lore.kernel.org/lkml/20210115083255.12744-1-rppt@kernel.org > > > > Mike Rapoport (2): > > x86/setup: consolidate early memory reservations > > x86/setup: merge several reservations of start of the memory > > > > arch/x86/kernel/setup.c | 95 ++++++++++++++++++++--------------------- > > 1 file changed, 46 insertions(+), 49 deletions(-) > > > > -- > > 2.28.0 > > > > -- > Sincerely yours, > Mike. -- Sincerely yours, Mike.