From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web09.27889.1654484554597445455 for ; Sun, 05 Jun 2022 20:02:34 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=g+Cs07bT; spf=pass (domain: intel.com, ip: 192.55.52.151, mailfrom: ray.ni@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654484554; x=1686020554; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=yH7aXeoFt9W3YFg9dxQv9DPqFaUCsQcnwu0PFu4oFJQ=; b=g+Cs07bThyQcFM4TKwBtiedF1okH7l3/MF/sTilUJWhmQlnucgOfPhEw HMqcfxARoKNjVs/6AwgJ3v9XFugd4sAUTAdKajL9lnfFHU9SbZnNzN6Ey yBbQ+SzEnadIiayWvVSRTArH2yOo1WOHsbNf8U2Xl/Ek9oUPOuahcSkd8 kTK/tkXKc4Sz4sN8dMZaELzN/iTYzDS9gnMDvaiL2pHOeqw6FF2Tw0hGM pWHaNPGbqDQBPs3eEBG+DgLpxjEu1C3t9gNbOYCAAmPthRqJWoi8BQhu8 kQJ8AuxKPiKWzVa4A8sZeLE6/Zmdg0sOIzHnz1r7po5/z2HjDWlTZctJP w==; X-IronPort-AV: E=McAfee;i="6400,9594,10369"; a="257060856" X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="257060856" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2022 20:02:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="647286106" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmsmga004.fm.intel.com with ESMTP; 05 Jun 2022 20:02:10 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Sun, 5 Jun 2022 20:02:09 -0700 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Sun, 5 Jun 2022 20:02:09 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Sun, 5 Jun 2022 20:02:09 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.170) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Sun, 5 Jun 2022 20:02:09 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jy8L+q81YGUmoxD3NQZ7Qij0gxX32cAOZiKvL50TOMglFsbAYEU6eJzKoJ0MOs9K/nlE6ASLnquyFDSgWC7mb18h1kOHbC35mMTc9LbPbEz78O8n5fjK1LbT+nYxMV7NSfmkWvaoMLQNcpHqcHDBXX6cDptXVBUb9/IRk/wrX52txTwbMOZM2khRXNukh/Me0AVuTzspB109dSoyve1N3D2Ny9rD03OAWOb0OckSOfG0Q0qB4jDf//u2dw0qDVL1gyKGXlVuTpgd13Djis0Vr+5wwZNPL6QQdOM1cjn0eXE6WAwdNBOMyb48musKh57VXeKgvVWWrEFyqYvCuErwYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=w/Mgo6/a0XPG37s/GL1v0hOjFlvY86P+x55v59w0sCE=; b=FEG+ASMCWht8veDat1YJsPnBbYd4oTP2aiQKPR20G+2x3v79kxXDE6U/SZYXOiOG+QxkAPdtki1DqZTQcQDcpSnkeMRW+nqJWIWG/ScZbaVB40kI/SCgUv0+w+GjQtxpS6b6VfXSkjC1DzwAk5u24173eP2DlJiunAoijUhHcaz+ndKC9jUhp6nLhcLoxTwDVvQS7CqCXsdrMz4MmIJULHAZHo+yvLF2DwMQZyiYvyyhpj39cK9X7sBis3LfKkYdQREQ8iTDQGsfawSD/heqLAFdbBho1+ippb5HpVrPoR9huWVd/6XNiLI+F7zX4LC2itt69Gm/XRcw2bHeklSJlw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from MWHPR11MB1631.namprd11.prod.outlook.com (2603:10b6:301:10::10) by BYAPR11MB2615.namprd11.prod.outlook.com (2603:10b6:a02:c3::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.15; Mon, 6 Jun 2022 03:02:00 +0000 Received: from MWHPR11MB1631.namprd11.prod.outlook.com ([fe80::4501:93e1:b65d:684c]) by MWHPR11MB1631.namprd11.prod.outlook.com ([fe80::4501:93e1:b65d:684c%11]) with mapi id 15.20.5314.019; Mon, 6 Jun 2022 03:02:00 +0000 From: "Ni, Ray" To: "Xu, Min M" , "devel@edk2.groups.io" CC: "Gao, Zhichao" , "Aktas, Erdem" , Gerd Hoffmann , James Bottomley , "Yao, Jiewen" , Tom Lendacky Subject: Re: [PATCH 06/14] ShellPkg: Update shell command memmap to show unaccepted memory Thread-Topic: [PATCH 06/14] ShellPkg: Update shell command memmap to show unaccepted memory Thread-Index: AQHYeVGk0dGzx9P+REWx+3VU7AM87K1BsOEA Date: Mon, 6 Jun 2022 03:01:59 +0000 Message-ID: References: <45dd9950d91333c703d31f96a9058f7e968e5a93.1654420876.git.min.m.xu@intel.com> In-Reply-To: <45dd9950d91333c703d31f96a9058f7e968e5a93.1654420876.git.min.m.xu@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d5d08b2e-c355-405a-615b-08da4768ecb4 x-ms-traffictypediagnostic: BYAPR11MB2615:EE_ x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: lCyM64RkzvDo7wx04ZOtxKggM4HVtRh80Z8S/GhmMWSTyU8QOXTkVMYLqEZv4JdUuu+ZpMw0K0CIpEbohwQ/fzurXMdTxkwtl8gUjoo2ib0ScIU4yoxq8Kmj598DKKWQHoaTIr5DaG/sR1+bAIRI+1sRuLboPWSdoL7ExEi5ct0nhWNk03ufKAswPNVJIAjobNzxE/J1IXW2broc6RkHDsh5CgxZo1OwD16/W7OKcZ9mrr3bQY6jx75TNNHUDqStHiCQhNF46XpWTLTAD/P5GYajV05gnM0ez72yGsistBaEufOZl1TIHpHq8o/uF8eVW3CVljK1vDVOecTiRwDU4SRw17dqGenUrRvHdBo1ZQqQscqShsxKiIS8gLnmmj3KKbN2JOUmbz+82ToUBMDycj3T34dOWSa4KXMBDu8eyHFL9sYBaKwlqxkc9tDcpOjrnroRFol/f2ZaKpUYnK644tsbWWpI/VMSt0tcHj7ZV9J3rPf4KJ1jJuLXKF7Mk/G4j6UxETKr8K76kW71WGEtx8gsOBiBfrePRbirsZbCS9X4nFd2rJ8QeWKrvzb+CQQZc+A9eOBdW5sPI/dXOb0n0welacpKZgTTcyUAkDmESrj4ZZvFnHQ1kxl+XyR+x3wROpqNzMyTRMqYEriw7ueBbDuK4lpDGqn1eNZaY7ylYqzybT2LlVn+g9isfLUplnsEaseyCCVrogW5/G/0RNCcfvY7hTtBWYhWmlSr4rAIhn+abPxvPAvCpeIy1pu49V6DjLupfDakUNfvN5cMiI7/b3g7U+ndQvH8ylQXvcTSMqM= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR11MB1631.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(366004)(55016003)(71200400001)(33656002)(316002)(38100700002)(966005)(186003)(2906002)(15650500001)(7696005)(9686003)(6506007)(82960400001)(26005)(122000001)(53546011)(86362001)(110136005)(54906003)(38070700005)(5660300002)(8936002)(83380400001)(76116006)(66556008)(66476007)(66446008)(64756008)(8676002)(508600001)(4326008)(66946007)(52536014);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?jx1oZFSxsMmIaNymWVQWYSmBMn0rDSioWf7lIELfLAdAI9oYVOLV3Jq5NJ11?= =?us-ascii?Q?zZyuSWGOVIXAwYhfsUCVQpjO4cz3yGsS+ly4hLhTAisJxJ2anQEdiCupLLdD?= =?us-ascii?Q?wCdurjZ1N3EnLR3RPxm0pfJ81iisnJSu0Sd2BRG9H8Tv4nfGLdZU3ZnMBO/M?= =?us-ascii?Q?5GwLvzrpg31Ryvnt2lf/vlQy4yqCyaC71nFthu5gv6dPm7fVMnJRBh3mhEZt?= =?us-ascii?Q?Q3HvbbtO5JHzJ+jWsHPPwvhZULzY8KnTmXf2/3Fo0UlQFETm9ygv/Rp/yxn1?= =?us-ascii?Q?wK9wtBMpxD8hLzr9HpJqNemN4FM8Zb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Spm0OM3swyncroAr3zAmVquGZSFEZzKgYw5sPSnWo9JMpadJuI86rv8i?= =?us-ascii?Q?zGJdqBw1n7TB3ltIaOOw3i8Nv1uf9M6f2LvlsFCr7MpkVKGmkPnyBSP9EbuN?= =?us-ascii?Q?PT+aXOgIauAkIJDps70CZI6YmvC82NVSXea48kK2nR3OwbUkBXGHKpBa02nb?= =?us-ascii?Q?OaimSMgAih/p6HkfdiOFglXWod0Ngpg4CaY4u0FfHrKr0eqjSHaUul+n4YNT?= =?us-ascii?Q?0KsaSzNMtulYaIJQR4LAwssATnlUvjM5gmzK/MKqE/oJD03hoYmqLl9c0jMm?= =?us-ascii?Q?Gj8TUvmLh1jEy74NZsLFFPyPGxlZx5Bc32WF4QgVHAPq5Jhiw1cQKxXYaI4/?= =?us-ascii?Q?eI54hnrZpGylzJoZMUUhPWOdZ+VzAb0VF0mkOOAo77mnICrR0IL9t1sACutr?= =?us-ascii?Q?XpTg1BS99UUcrinhzCwfJm1TUBWcxyo1aLAp+53kgU5lpb5IR8dwpLiuv/Z6?= =?us-ascii?Q?4l5HAAgemGjAkabJC+NGaJIRmg7OsaVD+v+PJtTYwwsMHveJOLdJrnyGcHpi?= =?us-ascii?Q?jr+anHzZtw=3D=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MWHPR11MB1631.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d5d08b2e-c355-405a-615b-08da4768ecb4 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jun 2022 03:01:59.9136 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: U/KnZ1RiB7qtAoiXPhs2WF/056qwPP6nzyQpQZ51vUQgGtiSOslFMZiANh8ifCZDXy14U30YPKdYm072CwM9iQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB2615 Return-Path: ray.ni@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Ray Ni > -----Original Message----- > From: Xu, Min M > Sent: Monday, June 6, 2022 11:00 AM > To: devel@edk2.groups.io > Cc: Xu, Min M ; Ni, Ray ; Gao, Zhic= hao ; Aktas, Erdem > ; Gerd Hoffmann ; James Bottoml= ey ; Yao, Jiewen > ; Tom Lendacky > Subject: [PATCH 06/14] ShellPkg: Update shell command memmap to show unac= cepted memory >=20 > From: Min M Xu >=20 > RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3937 >=20 > ShellCommandRunMemMap() is updated to handle the case of unaccepted > memory type. >=20 > 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 > --- > ShellPkg/Library/UefiShellDebug1CommandsLib/MemMap.c | 6 ++++++ > 1 file changed, 6 insertions(+) >=20 > diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/MemMap.c > b/ShellPkg/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"MemoryMapped= IO"; > STATIC CONST CHAR16 NameEfiMemoryMappedIOPortSpace[] =3D L"MemoryMapped= IOPortSpace"; > 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 ? STRI= NG_TOKEN (STR_MEMMAP_LIST_ITEM) : STRING_TOKEN > (STR_MEMMAP_LIST_ITEM_SFO)), gShellDebug1HiiHandle, NameEfiUnacceptedMemo= ry, Walker->PhysicalStart, Walker- > >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. > -- > 2.29.2.windows.2