Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp473213pxf; Wed, 10 Mar 2021 09:53:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJzYjp+HDTF0gBNu7+kisdvlmRQHbW/U4HrCmgFarF79qlTCYir7f84Sdzgpr7DvAs253X+i X-Received: by 2002:a05:6402:c11:: with SMTP id co17mr4770551edb.246.1615398831194; Wed, 10 Mar 2021 09:53:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615398831; cv=none; d=google.com; s=arc-20160816; b=VWbkjfiN3qhVwFDPnb0OD5IFqTOrEhW5TrKYM/IwITrn2OKbPlxRQ+0p1CMvoIF5+0 FAn8qj9K4NuW+il/5B2HXZuiVaUPOaEPCH4RbS1RQdnCrTS7+GMz9CsSGuIdCi8egbbr rZE3oGPJ4ln+gNOWf7LDr6KcpNRyw+eutTNDnqEjl9LhKwsDtMQAb0+RBJjyQstTAVI5 /NVLWKwofJr8SylMrNwhTVNTap7//RxrOhs/fvkOR8XrxaLYN8bH74ajw3Yc++9cTmrW HUZdbEdtH0l+LftMFk0k1771IW7yAljUBtWs4LGa9lpI8YgGd2s/dtpIFZIx44el/Bt7 fbUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hXqpbMJWHOHdvq98XeOIaed8yTeivwUOOUdB3+j8Jcc=; b=HGl3scluwuEWqVoJo3yXz7/biPCv9lwvXMSbKM7P+e40oHrfxLcl/gxTJ9WIGp1tik MLtz9ArkPvub8Iujbt1Sr54cs6R945+ud/g1tDfmlpP5zEodYNijd+hpKImCvJthhQzA 9fPX2xhu22pGbMqzIyHwgPhsIge6XV7h6OX4Y25USZ71X04D/vCUqRzxD+gcZm8NY2zb p1Y8qLNiWSD94M44NgkwiIakDEpd5ltZzfXfggXRq/cH+a1uAfDMi/kK46eFhXfDtOgA /Xj5PZTWF1URX9gLocOZithWcGr+ui7PdFkINXpr4BD/ERutOQMV0uMh62SaDqVV2OC7 HmGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HbRFL6X5; 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 m12si20562ejx.720.2021.03.10.09.53.29; Wed, 10 Mar 2021 09:53:51 -0800 (PST) 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=k20201202 header.b=HbRFL6X5; 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 S233508AbhCJRwX (ORCPT + 99 others); Wed, 10 Mar 2021 12:52:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:54416 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233188AbhCJRwN (ORCPT ); Wed, 10 Mar 2021 12:52:13 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id DDAC564F88; Wed, 10 Mar 2021 17:52:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615398733; bh=doWCBtbU+Cvcw96n3h3mK98dT2eO39OIy2ytJMx9y/o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HbRFL6X5Fj+AzjAFIKT3gv0fcYLF1E5iyuyY2AkOGAb/8SEZ5IPqYn7G4WZa59r5n WFCAPpUY7qEj4NodwwJZcjTihZlXG8Cg8G13rBFScGLFM16DRsS+BKt8ESUxy/fjwU +o9RBuNIg5aOL4qRt67mY+FLFe7CpxM3HgMH1S3iaa44NaAYV43VtaQIXLLi+EuetB 1n2jCS1hsduX/AE/aYKU/Qups/RX/lfHLGogmOv3syLcQy0YAumSWiC9tEXYUCqCAG 7B0tbgk8Y8cj56IfHj1tKRAuHmDInG5Gfh9gBaxHtsKN6XzyB0rH21XSR3vKUF9Axz NjNyB5KTb+oHg== Date: Wed, 10 Mar 2021 19:52:03 +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: <20210302100406.22059-1-rppt@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.