Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp2698573imi; Mon, 25 Jul 2022 06:06:32 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vkUXhImIFydlr/9rxzefyEjH2dEgortgJuQzPw89roIqdK8uMjJJjOKlIlyFhGt2wurM2M X-Received: by 2002:a17:907:2888:b0:72b:8f41:1405 with SMTP id em8-20020a170907288800b0072b8f411405mr9563191ejc.564.1658754391705; Mon, 25 Jul 2022 06:06:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658754391; cv=none; d=google.com; s=arc-20160816; b=WhFKIt9v2dnl/xMP6JzFwWxMPAnjbez4KoO0cXD33EalGUCcSVvY1yADNw3ffoxviL INp9syqkQCxa61KSbU6QpcfucO+niFUApjcUcBSrpl8q3oCoU3ZpBPku5adlN9p9n2w5 4ElcpsAvBIC1HTxJ8DS+lcE5rAZcG9UhWSf5v5N7yt2iZidwiKUGtGCjy0zhMeNqGLJ3 fOAv83WZub5jnOI5eqFGszJAZY/XadI15YV4w9Gdva4OJAdSVv+hi4/56H1UqCzkf7b0 EpIEES6RLfeI/ru5SxcIc6tx+f2qtbRph5UeOZDdSplJ1IvfyjHfvxCJGByHLKFih27O Jrpw== 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=sg9QEcRa1MfRVFIbCkiOWE7hE+M2YmvA70MYII4fxdg=; b=lNfje6ap6DDzmyUazXKWZDZsduasiQLh57aVr2GrAldh79eVBS5lIq0pd8xBKi3Y+m 13/CQo7aEUXWX/DPw5318daosZE6P9nfOe5TV8bMkfrfp8XmTlHLm+y5Jt2cBOxkziYC 4ESHm9IFHx2Ym/hlPE4uOOvhdEaV1mHXk0jShYA4mK03fcTe7O7jF1pRx1o+zBPsiUZU lRmvRt3M0yp8PrSDaBcvKdBCdoPCX9zSBebcwiDmC+CSx7s1iwfY8STX304/nV1yQ4o4 d2orfiRbzMpKL8D00BQYo7DujJq+5jDCwFS67yGaVHplg/5LqB7pdSytu6LAVyGvvtAI 7kXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=ClhNtHSc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dt10-20020a170907728a00b0072b52039a38si12605677ejc.734.2022.07.25.06.06.03; Mon, 25 Jul 2022 06:06:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=ClhNtHSc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235222AbiGYNC7 (ORCPT + 99 others); Mon, 25 Jul 2022 09:02:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231991AbiGYNC4 (ORCPT ); Mon, 25 Jul 2022 09:02:56 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 229D6101EE; Mon, 25 Jul 2022 06:02:56 -0700 (PDT) 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> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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