From nobody Fri Nov 15 10:14:13 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+90222+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+90222+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1654484435; cv=none; d=zohomail.com; s=zohoarc; b=EIgdGn6q/fIM/YVNv4JL8j09j3yhC5tuoLnsnutTbQ0kf1GTAQd81h56Td5YxwDT6jUVlaUgnL1e4C6JAJ/rKh3OJab5lGwExoDz1aH5C8YfAaZ4QcRc0C+6XS7+HqZHhEqgyNSDlyNRkTa35fnZrBjpETcTykXl2GxkZrp1Pho= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1654484435; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=u/u0QUxDznE28uSTT9Ge9QiR1g33d9Du38pZTz7uW9k=; b=JZIl0McehxfH3hk0AKAGVMV/+5ogI6QmqUaJ6oRoTwKRrepVoilQcf77oSo2MFVXjFV9lfn0nXUauq9qOMDo2nz0xDJbZbJLYRVpHletjS+Ev9tBWcEX1P9Qcz8sNb76D96XG9F9w48JHf6TPnEh5rWfPovU1FnlsHP8Iekhzy8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+90222+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1654484435821562.3772888772107; Sun, 5 Jun 2022 20:00:35 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id g9wdYY1788612xtjB8ikWu3A; Sun, 05 Jun 2022 20:00:35 -0700 X-Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web08.27749.1654484424914450989 for ; Sun, 05 Jun 2022 20:00:35 -0700 X-IronPort-AV: E=McAfee;i="6400,9594,10369"; a="276458108" X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="276458108" X-Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2022 20:00:34 -0700 X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="647285786" X-Received: from mxu9-mobl1.ccr.corp.intel.com ([10.255.29.66]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2022 20:00:32 -0700 From: "Min Xu" To: devel@edk2.groups.io Cc: Min M Xu , Ray Ni , Zhichao Gao , Erdem Aktas , Gerd Hoffmann , James Bottomley , Jiewen Yao , Tom Lendacky Subject: [edk2-devel] [PATCH 06/14] ShellPkg: Update shell command memmap to show unaccepted memory Date: Mon, 6 Jun 2022 10:59:54 +0800 Message-Id: <45dd9950d91333c703d31f96a9058f7e968e5a93.1654420876.git.min.m.xu@intel.com> In-Reply-To: References: MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,min.m.xu@intel.com X-Gm-Message-State: 91sKrdDjqITQkVPSiFYb8MeOx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1654484435; bh=2/ARGMfFw/HULQr5/klc//qibYC2K23udOT+4LHA39k=; h=Cc:Date:From:Reply-To:Subject:To; b=qlufQp1Wk470yx1DWv3cdm8Go7yJcLmUVLorzNs/TcbV5wFOnBm+5BUmXNPMm5wuSxx gVsbqv09r/W3k1/ZMuTGVTMvBjgPyw3jotbgGUZG3qSJCFH9D8hmvyFDAdWsMn1TbLC8o AfAS0JObja3b3JSfeY0ZP/PXobkbSsxVIe8= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1654484436880100017 Content-Type: text/plain; charset="utf-8" From: Min M Xu RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3937 ShellCommandRunMemMap() is updated to handle the case of unaccepted memory type. Cc: Ray Ni Cc: Zhichao Gao Cc: Erdem Aktas Cc: Gerd Hoffmann Cc: James Bottomley Cc: Jiewen Yao Cc: Tom Lendacky Signed-off-by: Min Xu Reviewed-by: Ray Ni --- ShellPkg/Library/UefiShellDebug1CommandsLib/MemMap.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/MemMap.c b/ShellPk= g/Library/UefiShellDebug1CommandsLib/MemMap.c index 72f3c58b0970..41994ae709ce 100644 --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/MemMap.c +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/MemMap.c @@ -26,6 +26,7 @@ STATIC CONST CHAR16 NameEfiACPIMemoryNVS[] =3D= L"ACPIMemoryNVS"; STATIC CONST CHAR16 NameEfiMemoryMappedIO[] =3D L"MemoryMappedIO= "; STATIC CONST CHAR16 NameEfiMemoryMappedIOPortSpace[] =3D L"MemoryMappedIO= PortSpace"; STATIC CONST CHAR16 NameEfiPalCode[] =3D L"PalCode"; +STATIC CONST CHAR16 NameEfiUnacceptedMemory[] =3D L"Unaccepted"; =20 // // Need short names for some memory types @@ -303,6 +304,11 @@ ShellCommandRunMemMap ( TotalPages +=3D Walker->NumberOfPages; PalCodePages +=3D Walker->NumberOfPages; break; + case EfiUnacceptedMemory: + ShellPrintHiiEx (-1, -1, NULL, (EFI_STRING_ID)(!Sfo ? STRING= _TOKEN (STR_MEMMAP_LIST_ITEM) : STRING_TOKEN (STR_MEMMAP_LIST_ITEM_SFO)), g= ShellDebug1HiiHandle, NameEfiUnacceptedMemory, Walker->PhysicalStart, Walke= r->PhysicalStart+MultU64x64 (SIZE_4KB, Walker->NumberOfPages)-1, Walker->Nu= mberOfPages, Walker->Attribute); + TotalPages +=3D Walker->NumberOfPages; + PalCodePages +=3D Walker->NumberOfPages; + break; default: // // Shell Spec defines the SFO format. --=20 2.29.2.windows.2 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#90222): https://edk2.groups.io/g/devel/message/90222 Mute This Topic: https://groups.io/mt/91570201/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-