From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (NAM11-CO1-obe.outbound.protection.outlook.com [40.107.220.85]) by mx.groups.io with SMTP id smtpd.web11.150.1659718582866140476 for ; Fri, 05 Aug 2022 09:56:23 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@nvidia.com header.s=selector2 header.b=bcRtQC77; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: nvidia.com, ip: 40.107.220.85, mailfrom: jbrasen@nvidia.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=adWMx7yIX1dY32pcBHIrwufkaowARhdk5s6o8gEXhchbSXU8NhAKbqf05iIQHLng5g57E6oRargIovEsM14AiIzHDdM5R/fAxcRTLfCGJpKKyxSWSrOnHaVpuF9TsuwisOAsDGSDslcD6REurdvVVRf1FNjdTGOBypv2iHHa8VIRBk2zoXRXrCVhI12PfpGvBM4+2QKPrB9auEtJJfEqBSHbrzHNG/6oJ57sOb8Vo+SrE6XCH/u2dkILdm/ucYPko5AItr6XomLkKdMsBOMpU8HyvmedgfElktv/nmuju6AK3GSquwPY+boXJdI6TPaz6vjpP2AY5WJP9SZ68qWkrg== 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=j4D9NbwM2iAb9DxazotBhUy9gf3ZNDMXBeoumXTFGOo=; b=b+JmsXQyCY6N6Bf0XgDO26Q2DQNEZcpiLm3n83soE0MxgQNNeXjNmgqaxwP53D/kJFprVrLegmyLxMp/hTniTtUZNfWMnGpuDto+OTxjsxS0VovUmP3c8BddMSnba4LB2mVL+RxXcFdRLujUW8pkRG4oxtApK7lwt1GP02WdtHHpv853hSa/8YR1mEMRfdFc9dmv8KIT5uNQB4YAV9r9sKzQhFkV+A416kTNB+UXqiVFYNDFFG5a4sirxckFxNdbL/HM8xJ6go/iqkd+7/YkcVx4NH4gfepxwqw/4QQdhMMzpSvkc3HwePDO7VqoKG4RHgkCAlVMwCBCqckJhnfTEw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=j4D9NbwM2iAb9DxazotBhUy9gf3ZNDMXBeoumXTFGOo=; b=bcRtQC77MmMsyMgFgYeqhKFSua1/V3bkucCMfRtgZgjbNuFUzpSHIUnXEZiS1/Jp0mYy7SYufdoFqetsHNAxRaYG5R9F9zVOuf2ez0ZEIEZfrCTn0/FbPWeGC8S3+eJc0zZ8ilnemJCg/DDwdA5SnvbOL32AwtgDgPE2zMZX0oAF3DyPjqXzrq61WztmEOpmS0/9OQHAtvwVd43eDWOkYwBVoEkcJhwpC9Vfow/cirtpkFU1uFbKwi7qQ6frTpixAIfrs6Me1aZFuDhscMACSfit26/urEy0oJPQOkgzOGw5v6itIWtKm5/hcLm3YYlxrXsX61QZyvraaSY7jDSxWQ== Received: from DS7PR12MB5789.namprd12.prod.outlook.com (2603:10b6:8:74::21) by BN6PR12MB1793.namprd12.prod.outlook.com (2603:10b6:404:108::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.14; Fri, 5 Aug 2022 16:56:20 +0000 Received: from DS7PR12MB5789.namprd12.prod.outlook.com ([fe80::419d:dff1:394f:2aac]) by DS7PR12MB5789.namprd12.prod.outlook.com ([fe80::419d:dff1:394f:2aac%3]) with mapi id 15.20.5482.011; Fri, 5 Aug 2022 16:56:20 +0000 From: "Jeff Brasen" To: Ard Biesheuvel CC: "devel@edk2.groups.io" , "hao.a.wu@intel.com" , "ray.ni@intel.com" , "quic_llindhol@quicinc.com" , "ardb+tianocore@kernel.org" Subject: Re: [PATCH v2] MdeModulePkg/NonDiscoverablePciDeviceDxe: Allow partial FreeBuffer Thread-Topic: [PATCH v2] MdeModulePkg/NonDiscoverablePciDeviceDxe: Allow partial FreeBuffer Thread-Index: AQHYo2KYHmEPctI38EmivvRyAT6Lm62bwm0wgAAW6wCABLcLoA== Date: Fri, 5 Aug 2022 16:56:19 +0000 Message-ID: References: In-Reply-To: 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=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 2cba1f2b-a69c-4848-dfc2-08da77036b9b x-ms-traffictypediagnostic: BN6PR12MB1793:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 6//GZjZ78UFxci8deqpSPVGFy/BDU4ZoHzMe6HmQnaoV//BFkdrVY0DMoY//jRjFd6hsHvPSBRwwo0+9e2FOqFHbt7g5OtCjfPzlFfNM91u+MXcF2Ijoku+F8ShAUTOKgX0FQB6/vGSgLMj11kcrd0iKf11MEEtTE8FuyUQ1wrtMu+iH6byskc/2pJCY/nBCWNVCkBXcrfOjzLEQfDGglO8Q8bsv2u3ySOTMAzZiIGrRwiuzqQ+97mg5hiF7QXNTykzRhLqslHqn/sIayXB/N4pepL0dZNcr/aRT1zKm2vApGpB6NiCW6uOIBj4meLE15B4UCMCWCqUwABksxJM6pDxeYuT/QnCJxfe8doVE4elDJZbJ7jrp4KV4YIHJYMLtrJCLSwNr6qxN86NJI+AZoXS5hA3JXbbxXr8XlLUVgp/bJCuMtNP2fBDxox7PRxMgsWM4SC/EJ1GmY0ULDtF0X4XsJnPzCuE3x3gtJLK6RQqaTardF3MwXuFUzqUfv7rtSI+TxzBBnQkwAJ8HcSQZ/JDmsQO7FdOhMX9sSfeXCj0D+3ja6AM89w30JLBI2U1w2r+Q9D1C6xz2xcXioG1Ikr0V+njRwUhW6cjHHwNdsRvIUESJ36WB0z2gM9XOfKVhvyhGS92mAvK681rbjkJ2PKkcvtsKBjm+ib9VOoh7o7d/kMyyRr1w2TZsaFa9Vy6WS/nbz3Bd5a1wnK6MqMnXJKNt+hoMVaWqlNws5vQZK76IHP5Oxcx7u1TcQP3saL74FdUIOqBHJE0mSRjlFz2BKNlr0wBqdYUXGK84AMa9WYS7yJ4vv/N3FhzYzfhnENvEaKivqhkPVjEMbFt27E22Jg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS7PR12MB5789.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(396003)(366004)(39860400002)(376002)(346002)(136003)(71200400001)(186003)(316002)(9686003)(26005)(86362001)(6506007)(53546011)(7696005)(55016003)(122000001)(41300700001)(6916009)(33656002)(54906003)(4326008)(66556008)(2906002)(76116006)(8676002)(5660300002)(478600001)(66476007)(8936002)(52536014)(64756008)(38100700002)(38070700005)(66946007)(66446008)(83380400001)(213903007);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?NHFiRWUvSVNKdTY0TEZMNjJBQ3N4VXdLODlhRUlxei8rSS9scnQ0NzJRTTFw?= =?utf-8?B?RElvMXBmWVRleGU5Z2dabHdMaGp3L2xOTWF1U3BqUXdIYi9wR3Bra3VUMTNL?= =?utf-8?B?K0ZEY2s2K3NpQjBLTHpYV3ZhWTJZTVFUb0xhRHJid2YxSzBhMlViMitiSWF0?= =?utf-8?B?K3ovOG85bExKbGlKQ1AzWTAwMHVCNGQyaDJ4eGsxWmd4S3ZEUHhuNzgwVlRL?=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nM0RlaGRvOWduMyttSEFMZGt6MmZq?= =?utf-8?B?WDZWOWVMYUxZUytsaTBDRUx1dk9nd0NwaTZub0R1bWpGcjFTRTRjNktUNEJ0?= =?utf-8?Q?PDCHXuvxNBkvpGY7ixxhEcbro?= MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DS7PR12MB5789.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2cba1f2b-a69c-4848-dfc2-08da77036b9b X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Aug 2022 16:56:20.0018 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: hg01VLG9cN+8HF2KzwSe/mMF6bo5YkNZoLkzFtU9PdCcrsqU2tISn2QXHGekKsNQQDzjIvGPBamWHpIhXUemSQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1793 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQXJkIEJpZXNoZXV2ZWwg PGFyZGJAa2VybmVsLm9yZz4NCj4gU2VudDogVHVlc2RheSwgQXVndXN0IDIsIDIwMjIgMTA6NTEg QU0NCj4gVG86IEplZmYgQnJhc2VuIDxqYnJhc2VuQG52aWRpYS5jb20+DQo+IENjOiBkZXZlbEBl ZGsyLmdyb3Vwcy5pbzsgaGFvLmEud3VAaW50ZWwuY29tOyByYXkubmlAaW50ZWwuY29tOw0KPiBx dWljX2xsaW5kaG9sQHF1aWNpbmMuY29tOyBhcmRiK3RpYW5vY29yZUBrZXJuZWwub3JnDQo+IFN1 YmplY3Q6IFJlOiBbUEFUQ0ggdj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