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 BCBFDCCA48B for ; Mon, 25 Jul 2022 13:03:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F253B940018; Mon, 25 Jul 2022 09:02:59 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id ED4AA940011; Mon, 25 Jul 2022 09:02:59 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D9C4F940018; Mon, 25 Jul 2022 09:02:59 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id CBBBC940011 for ; Mon, 25 Jul 2022 09:02:59 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id A17E914120E for ; Mon, 25 Jul 2022 13:02:59 +0000 (UTC) X-FDA: 79725637278.22.94E4C47 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by imf06.hostedemail.com (Postfix) with ESMTP id 034E71800A2 for ; Mon, 25 Jul 2022 13:02:55 +0000 (UTC) Received: from zn.tnic (p200300ea972976f8329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9729:76f8:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id AC7D11EC066E; Mon, 25 Jul 2022 15:02:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1658754170; h=from:from: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; bh=sg9QEcRa1MfRVFIbCkiOWE7hE+M2YmvA70MYII4fxdg=; b=ClhNtHScdoG8Y5fyZ2k/x94410/Qs23KCbUM+qrzXtS6kzCj1WAwBU31plS1ksqGHVHF7u 0f38hv6VwQDEPorch8AA6dKTLZ+myaMuboUrTBI7Vsbs878fDiRmN+IkGi44zmCtR87b5e cElxaQ9wb1Rkzx4qWtSldGDlVoPYhvw= Date: Mon, 25 Jul 2022 15:02:50 +0200 From: Borislav Petkov To: "Kirill A. Shutemov" Cc: Andy Lutomirski , Sean Christopherson , Andrew Morton , Joerg Roedel , Ard Biesheuvel , Andi Kleen , Kuppuswamy Sathyanarayanan , David Rientjes , Vlastimil Babka , Tom Lendacky , Thomas Gleixner , Peter Zijlstra , Paolo Bonzini , Ingo Molnar , Varad Gautam , Dario Faggioli , Dave Hansen , Mike Rapoport , David Hildenbrand , marcelo.cerri@canonical.com, tim.gardner@canonical.com, khalid.elmously@canonical.com, philip.cox@canonical.com, x86@kernel.org, linux-mm@kvack.org, linux-coco@lists.linux.dev, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCHv7 04/14] efi/x86: Get full memory map in allocate_e820() Message-ID: References: <20220614120231.48165-1-kirill.shutemov@linux.intel.com> <20220614120231.48165-5-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220614120231.48165-5-kirill.shutemov@linux.intel.com> ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=alien8.de header.s=dkim header.b=ClhNtHSc; spf=pass (imf06.hostedemail.com: domain of bp@alien8.de designates 5.9.137.197 as permitted sender) smtp.mailfrom=bp@alien8.de; dmarc=pass (policy=none) header.from=alien8.de ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1658754176; 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=sg9QEcRa1MfRVFIbCkiOWE7hE+M2YmvA70MYII4fxdg=; b=VXev0oC6/HT/jeLBPSdwABm5KMXdC0lYOgj7wORO/GqgWWZK/sSM8qeaKDPCynRGf1bPUd 5nSwdMMD5bgqjuOMOIdSZXqPOgO+a2rjD6v//jhbrreeQ8qK9XrhbzmZ+XXgayxBCXUYCP kcDu06PDP3X6Vhltq6Tq7ZT4Lvz7XZ8= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1658754176; a=rsa-sha256; cv=none; b=Lf2UFEjU9rD3pDQTM2GLA/j58rjqpzKEeTGYSE7wp99wvQaVwYJCta6idQv0LtgPyPfgWj HsbT0wD4mJerkSHVKyQGWLFwJ7WjhX3/UD8YLoOf4S/98q9j6SleKaBnQJCqcpOHpc+pLR e+099fnM2C7shz/yVNAaD20yNHMfqFE= Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=alien8.de header.s=dkim header.b=ClhNtHSc; spf=pass (imf06.hostedemail.com: domain of bp@alien8.de designates 5.9.137.197 as permitted sender) smtp.mailfrom=bp@alien8.de; dmarc=pass (policy=none) header.from=alien8.de X-Rspam-User: X-Stat-Signature: e3ehb89uz5an1f9skxzxahnayi8jxf55 X-Rspamd-Queue-Id: 034E71800A2 X-Rspamd-Server: rspam02 X-HE-Tag: 1658754175-237792 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: On Tue, Jun 14, 2022 at 03:02:21PM +0300, Kirill A. Shutemov wrote: > Currently allocate_e820() only interested in the size of map and size of ^ is > memory descriptor to determine how many e820 entries the kernel needs. > > UEFI Specification version 2.9 introduces a new memory type -- > unaccepted memory. To track unaccepted memory kernel needs to allocate > a bitmap. The size of the bitmap is dependent on the maximum physical > address present in the system. A full memory map is required to find > the maximum address. > > Modify allocate_e820() to get a full memory map. > > This is preparation for the next patch that implements handling of > unaccepted memory in EFI stub. As already pointed out, the concept of "next patch" is ambiguous in git. Just drop the whole sentence. > Signed-off-by: Kirill A. Shutemov > --- > drivers/firmware/efi/libstub/x86-stub.c | 28 +++++++++++-------------- > 1 file changed, 12 insertions(+), 16 deletions(-) With the above addressed: Reviewed-by: Borislav Petkov Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette