From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web11.5365.1633989719850575516 for ; Mon, 11 Oct 2021 15:02:00 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=F/XKYbCR; spf=pass (domain: intel.com, ip: 134.134.136.100, mailfrom: nathaniel.l.desimone@intel.com) X-IronPort-AV: E=McAfee;i="6200,9189,10134"; a="290473883" X-IronPort-AV: E=Sophos;i="5.85,365,1624345200"; d="scan'208";a="290473883" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2021 15:01:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,365,1624345200"; d="scan'208";a="486036505" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga007.fm.intel.com with ESMTP; 11 Oct 2021 15:01:58 -0700 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Mon, 11 Oct 2021 15:01:58 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Mon, 11 Oct 2021 15:01:58 -0700 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.57.43) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Mon, 11 Oct 2021 15:01:58 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DuQ/w+8SfBAoFi5LWkNtJYBMSuSkYNwBRM8a0ydQyuT/Al0fap6dPWOzA+Y7MQPKSnS4kbPvWxPl9ONHIQVa/k1G7auXH6OPYUg/qARCbNQX/UvrvAgEsDgnshYwD4m/VHa/1iODOA4IKEpbo/Wyjv0ebqzQY3D1MHmzxB2TVvW8oWMSSpSoQoDypDgVdVuLQgIh8Ss7c8UgcrjT1N9vAEpLhn+9TaW4bTd85zAWXpRsHwEhjak5pDHpasRZ9s6C38TdPupKrsYH8UiF2sDLaQnMGx2Ju/pRROXAw7r3eIEvAjuUFoGjeMRsvLMP14NG+oxvMkuIxdNu6t+CIDXNvA== 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=IhGMRE2VkifeWQzzvhx84IfMWPm0ur9NM645KPliabc=; b=LNUVD72j+ITB4LUYr9q/ZPsGvei7XHdKZAR23lB6NIyKVB3+et/G7qHiV7f6wbFHXBZH2Ulrq7X1npiBk7XOQ0zL+L6/2IrKITaxSgd1LuaLOjEEvyR1TA6hV4bwFLjOhkZgJBcu19XhGF30LR387kAaDcqmLllvyxH7PchA7zDRoPo9+KBI/N9BUhSL1+ckzWAxxO1O9dAjOOK7WOvYU0VwVqvvFbIHuCj0TM1TEUW8vXWvKJxQCwGr++DZOmcAzMXHnTkcrNCYM90KnKX4+EXzNhWP+lax0bhf7B0m6OMQNpG2BJDZL1lQHMzUuoqIAlWzBwzP3KEImmg3bD19lA== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IhGMRE2VkifeWQzzvhx84IfMWPm0ur9NM645KPliabc=; b=F/XKYbCRSmGtDGoXJFBmE93l9K4RgkUQ3gnkHXH6Wzz8GtV2c1TSKbzKKyfF8vH2McQPiWwcet1LkvnoDwG4GwdOSSdPi3lcB/BWb65o3xd70tmLwmY3bNzejwNAWqtioNiPu6g/GHM0I3uPUwDSrB8T0WXPtkD78EKot/jXutw= Received: from MWHPR1101MB2160.namprd11.prod.outlook.com (2603:10b6:301:5b::12) by CO1PR11MB4900.namprd11.prod.outlook.com (2603:10b6:303:9e::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.19; Mon, 11 Oct 2021 22:01:57 +0000 Received: from MWHPR1101MB2160.namprd11.prod.outlook.com ([fe80::f07d:7a97:3b68:92ed]) by MWHPR1101MB2160.namprd11.prod.outlook.com ([fe80::f07d:7a97:3b68:92ed%11]) with mapi id 15.20.4587.026; Mon, 11 Oct 2021 22:01:57 +0000 From: "Nate DeSimone" To: Abdul Lateef Attar , "devel@edk2.groups.io" CC: "Oram, Isaac W" , Liming Gao Subject: Re: [PATCH] SpcrFeaturePkg: Close the event after first callback. Thread-Topic: [PATCH] SpcrFeaturePkg: Close the event after first callback. Thread-Index: AQHXgfAx7/dUGI8VtkCHK7ciqkmEeKvO01EQ Date: Mon, 11 Oct 2021 22:01:57 +0000 Message-ID: References: <20210726073025.1028-1-AbdulLateef.Attar@amd.com> In-Reply-To: <20210726073025.1028-1-AbdulLateef.Attar@amd.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.6.200.16 dlp-product: dlpe-windows authentication-results: amd.com; dkim=none (message not signed) header.d=none;amd.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d419c47f-9713-4aa2-0f2c-08d98d02be75 x-ms-traffictypediagnostic: CO1PR11MB4900: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:163; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 4clnywDvu1Dx38VshZkZwOx1TVZ0QBVBL5EBTQrUpuN9NgnERDg4ih3wMB9KW7E0RyfA1dSKpD9sD5Nr84Y98mXjz5o++JivZRfcoOxRSHCnAIg1AVbRMbpqGyNMi8nnr8jNpGkQOb3RRpmmveJlyWkSXax96V3b5KUA+H5zCEgajL44iDNLvKIIRGeOe+JwL1P3YJSdmhIyjglHK9zZlbb//vCkpZNNC4QhAtS2pcgQPAPzI/W1n8O9N/h8+uqpfy2AfIeYUs23n4YIJVEW0e0TXO/uyqw48/E2TjceInuUkSJHYH7P/cLWUEzKxop4XtBI4KU418YR34Qlrwx4daQ2T21+9A4B+nwcwbnID1r9CwfhXx9AmHmNFThQ/iN8cm0pxUl2hY44DIvGMBWpuV57gWEBNJKcqQ9A3N6RjEAQlEK+PmOvzm9Bsff0fwGEvCiKxGXl1KDJoPeA1G2ayzKXkVixLU+mISC7jo9F1VA4QKevePb6DpEHrAfHnd+yASRGeyAgDtmg1lJhDsiW4c4BE6E+sjBDVyrIz9cn1E4pfJ3mCbLci/S0pk1edPxPPMpkNsqdoejp8g7AZiIA+fPXFaZCcFtNadk41q7IHV8V94Mf87vwg4EFL3JoT0n7f3NNoZKrP8OuYMKQKL7It3cFOFzKkrLmARToa0Au53WXyNilsASFgTqk5Ql+by/o7V5HNA3e0sqIEPg0Zz498tyX6FuvbwsFa39XrDzVpGToexQ29HtmETAuQbEjB8dGlYV9APGIDPpC9YBj+zgnm6gdGqhpIrTK+VsjZA4kQbY= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1101MB2160.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(38070700005)(86362001)(8676002)(66476007)(110136005)(316002)(83380400001)(76116006)(122000001)(4326008)(66946007)(55016002)(71200400001)(8936002)(5660300002)(508600001)(33656002)(53546011)(6506007)(7696005)(52536014)(2906002)(66446008)(54906003)(9686003)(186003)(26005)(66556008)(38100700002)(966005)(64756008);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?osDrZYOqFdtNr1WvbszmjS701HZoKhiEKNoH8aHZj2OHxRvIQtFeV5RiXs6I?= =?us-ascii?Q?22z5w2ktIg00+CpOFpWzzjVw6592XTTHaiI7KqqcR8tNNNA3ipZoeRgALLWu?= =?us-ascii?Q?HUdLZNZ5fMsp2CsP9845n8uRevnG6rRZA5TnhhxWHtVmASra9y81zlB9KFcX?= =?us-ascii?Q?mVlx/HTWr/oM9hCuTmUq7WSe/LsDD8p2mxd0kS3odhOu97sUX/+WRDRlyiPC?= =?us-ascii?Q?sEib7mK4gOu72Nb0zmVgJqUZInkwO1B+iJZD39O2FSjwGdiC53SLATTDOhGW?= =?us-ascii?Q?LPjPvxrDqlGxo/+tnRRspCv/Rk5LO4+KPbOPi7xuAZJC6khWZ4KmEdO8zXmm?= =?us-ascii?Q?ljQgCFjoL0KFCwjwcJmd86V2bm4uYF+kY9dxvql4qoOv5NX/Q+4pCD+JdHk1?= =?us-ascii?Q?e1pudNLBy3axLI53H4nI27Mu7qmZdRGYpQIX8vny7D6GOre9HEwnHA0OSVyY?= =?us-ascii?Q?pDFXdykbIUjd5xT3Cz94iJzlP3mSLWVmA78k9wEGokBgxClj47/2Rtm9aoP+?= =?us-ascii?Q?+Ug4GH3IM+HW6Y6NOm7m+h/nckEu6xnUnTqYYHoJhk53SMnX1NfrGxhEtIeh?= =?us-ascii?Q?BhUHTQ4A0OEi4HjaGBQUVNcOGK7FC/dip/oSUd2uaWGvsYhiF56/YCm0KPFQ?= =?us-ascii?Q?aN8Ey0iBwLNux3HxFXoIf3NOilcZ14+VrNfVrGmE6kyKaPo0gWiVr9Ev62mz?= =?us-ascii?Q?7Iu6Ud4FZFJu94FAxgwlptJ8O2cR6InjDzhjxNGd+I/i2jQCGNh4zvsbUgRG?= =?us-ascii?Q?8QvJHrjx4i4Mywid6gFcucEWR/VEQR45SqqE0rroSn46nNht6turAaQOTPHV?= =?us-ascii?Q?LN7iSDa2DskQL+MMi4nM/aegNX4BuJPP9AzYfmM/1o47RzH9OBv8rETSp5JZ?= =?us-ascii?Q?RxeZkxwYqrmyV5iscqoZBuF5nhJ0MFXpn9cr++P0RSqNxngJMtBV5q88oAH2?= =?us-ascii?Q?zzpdFwbDUIk2DabiosMfxkclP6wraTYGHN6zi7evE2ALhLaep3orVo51nSBv?= =?us-ascii?Q?257Tm5/TOw53NmJ/xeMSQof6OSEvRdpez0+NNl0T4GvzvEbZD2dguK7XakM8?= =?us-ascii?Q?CMQMZrPWlkJANxsYTj10niD1T2P1SwuAJjB2IZTewy95qOHDM07TDEZUir86?= =?us-ascii?Q?SFjRmFnQnRkA1EkvgI3wQZdHP3NTscePfolZoha1/S6PTF39si0YPnODxE+n?= =?us-ascii?Q?sLzTgN2YIu4/jKQo0R5UBX+/XIV4KkBjF1v8dA0FNr8jIoUlO1Xhrn7Jqo4t?= =?us-ascii?Q?9tPsRxwAWYC8W+568Q3Ksn+tHq1Tu3ctlhaM4u6cHCH9cnBQs/CP0WU256/3?= =?us-ascii?Q?Pr5KLxu6l2jLUjBE7pV3cr2J?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MWHPR1101MB2160.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d419c47f-9713-4aa2-0f2c-08d98d02be75 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Oct 2021 22:01:57.3459 (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: YzA8gIOnyK+Gqr+fWA6yfOxezcGqKLKkSMdtm4JvCXKBZA5/ONBcFtV2u5amlA+oGAmS5D6w+klLL0nxMrK9jpypbdJXkCcpobAhG1NGPZA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR11MB4900 Return-Path: nathaniel.l.desimone@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Pushed: https://github.com/tianocore/edk2-platforms/commit/f539647 > -----Original Message----- > From: Abdul Lateef Attar > Sent: Monday, July 26, 2021 12:30 AM > To: devel@edk2.groups.io > Cc: Abdul Lateef Attar ; Oram, Isaac W > ; Desimone, Nathaniel L > ; Liming Gao > > Subject: [PATCH] SpcrFeaturePkg: Close the event after first callback. >=20 > Adds CloseEvent in callback routine OutOfBandACPITableConstruction(), to > avoid multiple installation of SPCR table. >=20 > Cc: Isaac Oram > Cc: Nate DeSimone > Cc: Liming Gao > Signed-off-by: Abdul Lateef Attar > --- > .../OutOfBandManagement/SpcrFeaturePkg/SpcrAcpiDxe/SpcrAcpi.c | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git > a/Features/Intel/OutOfBandManagement/SpcrFeaturePkg/SpcrAcpiDxe/Spc > rAcpi.c > b/Features/Intel/OutOfBandManagement/SpcrFeaturePkg/SpcrAcpiDxe/Sp > crAcpi.c > index 85ac48cfa5..86c40e90b8 100644 > --- > a/Features/Intel/OutOfBandManagement/SpcrFeaturePkg/SpcrAcpiDxe/Spc > rAcpi.c > +++ > b/Features/Intel/OutOfBandManagement/SpcrFeaturePkg/SpcrAcpiDxe/Sp > cr > +++ Acpi.c > @@ -368,6 +368,8 @@ OutOfBandACPITableConstruction ( >=20 > Handle =3D NULL; >=20 > + gBS->CloseEvent (Event); > + > SavedDevicePath =3D GetSpcrDevice(); > if (SavedDevicePath =3D=3D NULL) { > return; > -- > 2.25.1