From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id A49D9941D34 for ; Wed, 31 Jan 2024 12:00:10 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=VQ3InXJN1sOAKNMQ7xs5kL5tfQ/qUQlVwDsF99M9/VE=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding:Content-Type; s=20140610; t=1706702409; v=1; b=B838bfQPFRSYn6uwrfPch9oHqfwgE3tGk4G6rpxGnSsi0Xv1lUm+ZJAVvAj3PikJTh7MAbeh bJCFVwxa61DTMlLfpt8r626a64NfXcteUQ+2RVszLmDNFjNzWIklE62V8a2nS4DSLTejQjPv4Ub GbuJOT/MzHKprBDIVozUsUhE= X-Received: by 127.0.0.2 with SMTP id obCEYY7687511x72e5C6pOxb; Wed, 31 Jan 2024 04:00:09 -0800 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web11.12221.1706702408525599673 for ; Wed, 31 Jan 2024 04:00:08 -0800 X-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-255-3C9YmROpN-iHhI0vL7q2EQ-1; Wed, 31 Jan 2024 07:00:03 -0500 X-MC-Unique: 3C9YmROpN-iHhI0vL7q2EQ-1 X-Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3061E185A788; Wed, 31 Jan 2024 12:00:03 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.243]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 06655492BC6; Wed, 31 Jan 2024 12:00:03 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 66F3D1800DFB; Wed, 31 Jan 2024 13:00:00 +0100 (CET) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Oliver Steffen , Jiewen Yao , Laszlo Ersek , Ard Biesheuvel , Gerd Hoffmann Subject: [edk2-devel] [PATCH 3/3] OvmfPkg/PlatformPei: log pei memory cap details Date: Wed, 31 Jan 2024 13:00:00 +0100 Message-ID: <20240131120000.358090-4-kraxel@redhat.com> In-Reply-To: <20240131120000.358090-1-kraxel@redhat.com> References: <20240131120000.358090-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,kraxel@redhat.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: RkGjMuOPHrC2l4wnsEZchkWlx7686176AA= Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=B838bfQP; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=redhat.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Signed-off-by: Gerd Hoffmann --- OvmfPkg/PlatformPei/MemDetect.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/OvmfPkg/PlatformPei/MemDetect.c b/OvmfPkg/PlatformPei/MemDetect.c index e22743b4bfaa..988fcc512362 100644 --- a/OvmfPkg/PlatformPei/MemDetect.c +++ b/OvmfPkg/PlatformPei/MemDetect.c @@ -246,6 +246,30 @@ GetPeiMemoryCap ( MemoryCap = MAX_UINT32; } + DEBUG (( + DEBUG_INFO, + "%a: page tables: %6lld kb (%d/%d/%d/%d)\n", + __func__, + (UINT64)(EFI_PAGES_TO_SIZE (TotalPages) / 1024), + Level5Pages, + Level4Pages, + Level3Pages, + Level2Pages + )); + DEBUG (( + DEBUG_INFO, + "%a: ap stacks: %6lld kb (%d cpus)\n", + __func__, + (UINT64)(ApStacks / 1024), + PlatformInfoHob->PcdCpuMaxLogicalProcessorNumber + )); + DEBUG (( + DEBUG_INFO, + "%a: memory cap: %6lld kb\n", + __func__, + (UINT64)(MemoryCap / 1024) + )); + // // Add 64 MB for miscellaneous allocations. Note that for // PhysMemAddressWidth values close to 36, the cap will actually be -- 2.43.0 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#114883): https://edk2.groups.io/g/devel/message/114883 Mute This Topic: https://groups.io/mt/104073299/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-