From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web10.6145.1654742857462973224 for ; Wed, 08 Jun 2022 19:47:37 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=TcxwN8M+; spf=pass (domain: intel.com, ip: 134.134.136.126, mailfrom: hao.a.wu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654742857; x=1686278857; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=Nmw+s6UrlFlfUYR89QSl9PeVu2SqsotN4lxzJPjyyCY=; b=TcxwN8M+/hi5iIv6sWRaRMJmbIfzthHgp/ImEeoYLWUBEjcZp99JFPz/ Js4t8S8SGCq/mw9ur09az26NYG7U+lqKMkBr85G0bWpvV6sNnfbEhhvHg wC/S6fRH0SW0QVXLz0r2pQzHjORoz2p81skaMiuRc3Tn3pn3yiHFt37mo mtXwXEcN75QytyOkhzTA8xJdNnMfqZ+OB4taoqlWJK50g03/XY/dQ9Xlr tiX8bo6vNtt/JT3q7hFqUPdGqfzOivASX5WqGJ8Xje7vYDbYe4JnecbjN A6b6xNOTNnko6Ayd3MUPJH68z5JSP3quLYTGW6AuWs7KNTh3kLI6T7vAV g==; X-IronPort-AV: E=McAfee;i="6400,9594,10372"; a="260259118" X-IronPort-AV: E=Sophos;i="5.91,287,1647327600"; d="scan'208";a="260259118" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2022 19:47:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,287,1647327600"; d="scan'208";a="670922983" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by FMSMGA003.fm.intel.com with ESMTP; 08 Jun 2022 19:47:26 -0700 Received: from orsmsx602.amr.corp.intel.com (10.22.229.15) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Wed, 8 Jun 2022 19:47:25 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Wed, 8 Jun 2022 19:47:25 -0700 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (104.47.73.43) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Wed, 8 Jun 2022 19:47:25 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UiHTA5kI6QAIYjKJBkYYVOJd3fgiMHrTuiBDjexocA6AcKgv+Jc/y9NdXCU1uwgFg6l9azHFw+vrC8+JRyA8oB/Ki/I/6IipwgBs20zN6YrLR2Fji3hvLnlS3X399hF6DIcAyKLWPt5e5r7DLAN9G50Nd7d7nDxXL3BsHIMBtVaf2kzTDpZF+rp7Af7eL5ELKBuU/A00DWAKb+7w9USoDG0NsqyTFI2foHdJB3VieCNZsuTKTh3TEVRiXX0sIaxnTj3wL7JYq4FrETk470d4sTY2C31M+e5sdIe7UhV3XsKqkygL2k/8qj1kxijgu5Hx+vkJ6OR8iED8hTdLJwizdw== 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=LgELY1GKNXQrNWlSOeVBNtTxfNZu3u3TcS/SIAFibbM=; b=Eenvd65EQ79bxlDA1UNuc/Ot/edhtBJHttS/4gZnXRIvJcgjD6v19SuLvYv2zme5u4/j/5WgH4vLseSrM44xY1NXu+bw3HWxmfKXLwdAGwiHPiK6qr9RJEct0EWQlY25hJs+6Fd8ObcltTAIjixWBNfclnyfIyRQO1q92KWOjSSWK1d3HsexpHGPo4AY+4UHiCtbrqg9YDlss0L+O6U6j+XkFR6YX1akAQ7CCExUjpf1hW3eyzkGFQtnZ4VZXu9OMWFJ2d8VBBJ8tLCtbUyIzS3Ji0NH+XPurmzi0sPQmG+uD9DZ82QJMBwFBlweAQub4WRHe841dKA43eb6oxZ3XA== 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 DM6PR11MB4025.namprd11.prod.outlook.com (2603:10b6:5:197::31) by BYAPR11MB3528.namprd11.prod.outlook.com (2603:10b6:a03:87::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.13; Thu, 9 Jun 2022 02:47:18 +0000 Received: from DM6PR11MB4025.namprd11.prod.outlook.com ([fe80::c473:f30f:6b1f:c5ec]) by DM6PR11MB4025.namprd11.prod.outlook.com ([fe80::c473:f30f:6b1f:c5ec%5]) with mapi id 15.20.5314.019; Thu, 9 Jun 2022 02:47:18 +0000 From: "Wu, Hao A" To: "Czajkowski, Maciej" , "devel@edk2.groups.io" CC: "Ni, Ray" , "Gao, Liming" Subject: Re: [edk2-devel][PATCH v1 0/2] Add EDKII_PCI_DEVICE_PPI support to EDK2 Thread-Topic: [edk2-devel][PATCH v1 0/2] Add EDKII_PCI_DEVICE_PPI support to EDK2 Thread-Index: AQHYeaNXP5Y4C4midUijTO6pznPC7q1GVVjg Date: Thu, 9 Jun 2022 02:47:18 +0000 Message-ID: References: <20220606124529.2152-1-maciej.czajkowski@intel.com> In-Reply-To: <20220606124529.2152-1-maciej.czajkowski@intel.com> Accept-Language: en-US, zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 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: 0d62a192-a053-4465-ea1e-08da49c25e4e x-ms-traffictypediagnostic: BYAPR11MB3528: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: Rdpz7FiiujVfig6s48VPqcFKiag4GwxuIt0bjFKmV7FEEVx4bMJoQMwy1VfFbbRi+KkkX8x9YhbFxPhY8Rf2l5LTxX4Owv6EQ4yPMnWiBdMaTtu2wKyJ8PAJn4hmBPHoYqod14QRYTC6JGJPKK780AibxiuzRuCKo2mxYgahyI6QP2MG8KLuww5jDxNX2dMKozdrZfu1klJUUgZcui/lWCfFcdSFfoPYNcQhXDLSPcuL5quGAAYcP13L9z6ADK8fzZPDl1dAONkMrj+dhwLDbSVCRSXWp9TQpreuAwPGxP5PhnVQZdMmBA4DnBJRJD1mnHC4AF0x7StglIFrYXtVu5+nARebEbPF8CPVX0DksGZTnbX+DJzmESBW/LVqV6fEWBFtc3zIcrr1KyEzsXuLFe/CnO9xj4p9raD+iHnyt9FRN1WzuqC354lWSjhhkUJHscnACEcCgXVFwOMC5EFcNL/pJHpX7N9V37yFweOmlE8XghY3yHbMluNgaek6aEWfv6WmOeXfFpXmfFKpYC1paC8bRkgNwSnmoQFnoqmbx4b9H9kPcaCc2BIBtYtBeePlpGUyfw8NDaA5ArtQA4lPgWx0O619/3BLoLhF5B6zapQ5g2EmS8DNGp3flu7ZG/AXYTe/PETUti/omgSM2Z1kuA5vHzKUH8rViuqxTt7KKz0Zd7BlRf0cmLQ3EW8gdUqPh8OXZohvXIsZp09aVvdWJmpiOavg9II02ui6X24UMkqDS492BPbOoHN/OqFyXDMKTk4ZNqEbbelE5xmhYBJWC6Zijbn3P8ykXHSPbja9ex0G4id2aDEm4/g0/NDW+6L7RelXzd4ypz3sXvT8/LjEgw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR11MB4025.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(366004)(54906003)(53546011)(71200400001)(7696005)(8936002)(38070700005)(966005)(76116006)(52536014)(186003)(66556008)(508600001)(5660300002)(64756008)(4326008)(66946007)(66476007)(66446008)(8676002)(110136005)(38100700002)(2906002)(6506007)(33656002)(82960400001)(26005)(122000001)(55016003)(316002)(83380400001)(86362001)(9686003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?+9C7NT37H1jxPtD35zFg+k0G3n7P63EYgWm+DSdAdIDByAb86BCCwILPEIL3?= =?us-ascii?Q?ENZLhxxev0RItoQBIHNvIIJJd+8ufi33Ja4S8NkEA+lSX0BkpL7aGBekNtWO?= =?us-ascii?Q?Djo7rwnRLEmVN5zJbJnjXhaSupwkZi6YMRrFRZW/KueKTuHvV/RdLAm9Bu0T?= =?us-ascii?Q?jzz2gpnhCA+uizqvm5xXh99zovqYwGDylL5DqPlxgbq/GTblX1l6HdKJR6l0?= =?us-ascii?Q?TCrDMU09S7vGWMjfDh0C9ZAGlRCX6+lLxne9nJ2/93qW7FBr6nUh3ktBhe/O?= =?us-ascii?Q?v2142TbgeXCdx6bGZJkRRlgLiYTwFaO+kr84rNkubcUrGOGuMwV8uUzDxUYF?= =?us-ascii?Q?KXHOJkXxxIH0/89jo2j3PdV3MNJsvbZ6rv0/77Zd4jZKuKZQvbfj2TH2SWVk?= =?us-ascii?Q?wPIbJ57ONDXx8VKPLm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xd37q?= =?us-ascii?Q?XFo7oQNRJmBkRQC5UNwy6MQNoBnEOJ7pfa1WKYt2Zdna+7Abv0STHPJvmqG3?= =?us-ascii?Q?i4kk2gs5Aw7oKsApMSa40ujrg5m1LVzQq00ZfZu95lp9Ahbkv7LjAoUs8pZb?= =?us-ascii?Q?Zna2Zcego2ItkatJaRePhxgSEWHuJ88xK8/H9CPvmreEVN0/u3onMkUCTk2U?= =?us-ascii?Q?PyxjCiXyeuJ+34Deeb6ICGPhphKnwkS052J8QmAw6Ek08rIIo/7nYqC/hBmT?= =?us-ascii?Q?oaqe8UE0cxmrQ9MCY2POstz9T/g6S3QGo3xzgSt4lYhADsYr1B3QxVvkRZMA?= =?us-ascii?Q?hDyfiYZe+xhrXojglqcvFn1dgOa5iInBPgiAEEo9OHMDFcbnEQRUKkgHtLVu?= =?us-ascii?Q?/igAsa4y7RG8ISesb+m9IHB/UjfoncBhjAoZ1f162+d3GR3o+keDU84rIfe3?= =?us-ascii?Q?lo6p7RXsdQ=3D=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB4025.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0d62a192-a053-4465-ea1e-08da49c25e4e X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jun 2022 02:47:18.0590 (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: twqffmGaxVswXkKi1qttfu5Q3Q8BGf+4Ld2pm4axqSeivJGcj7k5BlvAeR5Xsk8o1TcSQpTp408wpQtCzOJtYA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB3528 Return-Path: hao.a.wu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Sorry for a question, if the EDKII_PCI_DEVICE_PPI were added to edk2, would= there be a plan to add support to: * NVMe * UFS * SD/MMC * USB (XHCI, EHCI and UHCI) Best Regards, Hao Wu > -----Original Message----- > From: Czajkowski, Maciej > Sent: Monday, June 6, 2022 8:45 PM > To: devel@edk2.groups.io > Cc: Wu, Hao A ; Ni, Ray ; Gao, Limi= ng > > Subject: [edk2-devel][PATCH v1 0/2] Add EDKII_PCI_DEVICE_PPI support to > EDK2 >=20 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3907 >=20 > The purpose of those changes is to introduce the way to enumerate and ass= ign > resources in PEI > for the systems with more than one PCI root. Here is a need to have an in= terface > that will > support such a mechanizm. > For now, the part that performs the enumeration will be implemented in th= e > silicon code. > Sample code can be seen here: https://github.com/mczaj/edk2- > platforms/commit/d443062e58f9fba228869b54f2546d9735b3b506 >=20 > Cc: Hao A Wu > Cc: Ray Ni > Cc: Liming Gao >=20 > Maciej Czajkowski (2): > MdeModulePkg: Add EDKII_PCI_DEVICE_PPI definition > MdeModulePkg/AhciPei: Use PCI_DEVICE_PPI to manage AHCI device >=20 > MdeModulePkg/Bus/Ata/AhciPei/AhciPei.c | 615 +++++++++++++++----- > MdeModulePkg/Bus/Ata/AhciPei/DevicePath.c | 44 -- > MdeModulePkg/Bus/Ata/AhciPei/AhciPei.inf | 5 +- > MdeModulePkg/Include/Ppi/PciDevice.h | 32 + > MdeModulePkg/MdeModulePkg.dec | 3 + > 5 files changed, 493 insertions(+), 206 deletions(-) > create mode 100644 MdeModulePkg/Include/Ppi/PciDevice.h >=20 > -- > 2.27.0.windows.1