From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR02-AM5-obe.outbound.protection.outlook.com (EUR02-AM5-obe.outbound.protection.outlook.com [40.107.0.53]) by mx.groups.io with SMTP id smtpd.web12.1384.1587713579111638101 for ; Fri, 24 Apr 2020 00:32:59 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@nxp.com header.s=selector2 header.b=HSPBP8+F; spf=pass (domain: nxp.com, ip: 40.107.0.53, mailfrom: wasim.khan@nxp.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FmQ29jKaXYjRYcwej8LSXkDg8N5fq9V49A2hPC0d3JyWG01/qoIDk/Lgw6xXLWYcSKa9BhOwBzanxbtk3dSgZQI5Ar/+DFGqk5FxIxER7DLFAqlNYYnRHomzs6dlXraIfquTK0ATXYSId7d+BB+cVNj86g1HRMnjDz868T2eBTWvCPta5Br8G7JAV2tY2hzjbim6KI0KOMnwOT5taKjXLucilLIQ8GcDlcs4EoF4i0ZgivBdw/2Pl67YXo7cqTdPiXtDYSGnx6GTEi+1/KX6i75fwMeEcRAdFuYsqmxH9/TEiCe6h5dBEbUzxkJ4VdCyp3TLBEchtT3Ng28eyujHhg== 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-SenderADCheck; bh=qfkTTpNetuUX+qtqNGlh/dKoXln5F0ePmb7ytQlaU8E=; b=ZSjzGrszaKM1TsqcUJu/cFreuPaJR9f78n0THmf3pjcg4rjaDpw7YSDAuvT+ltLzp8JjjeCBESc4CrFfEQOpleI4TdqkObgMVdNjJGxkfHF5d/JGs1I/GJZtB8NHQZM1YfdvtS1d7j57mKzHMHqt68zzgwUK766XsaA6uo5fow8fnGdvl0j3o4G9F7+Z7EOAcCrp9SYY2ul5RH1ng+q9j78n+UVvC9XTOM1TdI71EbV9FnbDKIYbkwqX9T/SjZXw5m3sjRvJ7evPTakerbyFDbPc2ecvxwmibah0fTLh+wh9LLoq3j7MErxAQaYWw7gDURw11VgdE4DIlCMtEWvASA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qfkTTpNetuUX+qtqNGlh/dKoXln5F0ePmb7ytQlaU8E=; b=HSPBP8+FcxfVpqa35h6V+0riVPlrlFc9Gfa3nzLR2c1Mzo9494mk5G2fsz475ZIjanJTqtJ70BcdUdLKiWoWkjMmt85afIDzw+CrRRdKU3lnHAWnPRiIeBHKBj1JjFdQHwZMW81N6Jx1HdVZ78ZZo3ZRMfLAAPDxBavpVAwMaXo= Received: from VE1PR04MB6702.eurprd04.prod.outlook.com (2603:10a6:803:123::13) by VE1PR04MB6608.eurprd04.prod.outlook.com (2603:10a6:803:125::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2921.29; Fri, 24 Apr 2020 07:32:56 +0000 Received: from VE1PR04MB6702.eurprd04.prod.outlook.com ([fe80::c092:8f65:8b04:dd28]) by VE1PR04MB6702.eurprd04.prod.outlook.com ([fe80::c092:8f65:8b04:dd28%5]) with mapi id 15.20.2937.012; Fri, 24 Apr 2020 07:32:56 +0000 From: "Wasim Khan" To: Ard Biesheuvel , "devel@edk2.groups.io" , Ard Biesheuvel CC: Varun Sethi , "Wu, Hao A" , "Ni, Ray" Subject: Re: [edk2-devel] [PATCH] MdeModulePkg/PciHostBridge: Update Mem and PMem Limit Checks Thread-Topic: [edk2-devel] [PATCH] MdeModulePkg/PciHostBridge: Update Mem and PMem Limit Checks Thread-Index: AQHWGVwVTvFEzXmpYUaOtumZsnOqHqiHDxQAgACgtqCAABrmgIAAFj0g Date: Fri, 24 Apr 2020 07:32:56 +0000 Message-ID: References: <1587638612-13056-1-git-send-email-wasim.khan@nxp.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=wasim.khan@nxp.com; x-originating-ip: [157.47.163.196] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: af60488a-9de5-4238-f79c-08d7e821b51f x-ms-traffictypediagnostic: VE1PR04MB6608:|VE1PR04MB6608: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 03838E948C x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR04MB6702.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(10009020)(4636009)(39860400002)(376002)(366004)(136003)(396003)(346002)(71200400001)(81156014)(7696005)(53546011)(316002)(6506007)(26005)(8936002)(4326008)(8676002)(44832011)(66946007)(15650500001)(76116006)(33656002)(66476007)(64756008)(66556008)(66446008)(9686003)(5660300002)(2906002)(55016002)(52536014)(54906003)(478600001)(110136005)(86362001)(186003);DIR:OUT;SFP:1101; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: /JJqqG8ZMdhkbu5n0Q1ulLqHDDRNlxFQNKut7OkEfY3DeaPwE7Mxd2ME5owhPBhZTfTjG43KiR5mLjrEdo7QfwYth2oTrOPjMybID3W29I/uRz6/71gfHB+UUJtTlGNF7WPfROJmkULl0W4XJ21KqsxQn8Lj88GgLHj8mNmGzI95KGCz0a1tRbOuy+qkMRtXjQk+A3Y62JnxtyBx+Hnh2NYB/k1eDGsTDERQhVQmJx/ZMUtwRNN2i1DRmYewsUQmP56ELGnG7KHYr+TSfRqMTvw3yAOmkDNPqrQZim+9Vpj9XDSsxfApCNzRO8cFZtYWshGgkzYCtm8o97BfH/Eq76kQ5saWjruvNoz3g8EUUQpharUy2f1rcJiTAwYBtUl8cTycNiosE89VNlEQFK6oYbFfvkK1+PLD9dRQPqrTL+usVnAG1aQ3bcN5403fOx3H x-ms-exchange-antispam-messagedata: BEclCqG/2TdywXDVVyc3w696ddn0rA8VtRTvK1LpP2uqnBvlCPT6qFYC+bUBQtVHr0OFvbEi9bGyyKHBcHuGzkxyDiWaFf7t59R+WXr7CapxhK++KcuiulrubRTFvDEcu17ULveZPeIjIcuGt01jlA== MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: af60488a-9de5-4238-f79c-08d7e821b51f X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Apr 2020 07:32:56.5111 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: wgfXjIn1U3SOHKm8ztmzlYaG/dxPxbjyuowTLVMY5PXKCNf309rfKtt541ffHOjzbuJ1GLFNfEZGglTA6uZn9g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6608 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQXJkIEJpZXNoZXV2ZWwg PGFyZC5iaWVzaGV1dmVsQGFybS5jb20+DQo+IFNlbnQ6IEZyaWRheSwgQXByaWwgMjQsIDIwMjAg MTE6MzggQU0NCj4gVG86IGRldmVsQGVkazIuZ3JvdXBzLmlvOyBXYXNpbSBLaGFuIDx3YXNpbS5r aGFuQG54cC5jb20+OyBBcmQNCj4gQmllc2hldXZlbCA8YXJkLmJpZXNoZXV2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