From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (NAM10-MW2-obe.outbound.protection.outlook.com [40.107.94.46]) by mx.groups.io with SMTP id smtpd.web11.10761.1670659888761321726 for ; Sat, 10 Dec 2022 00:11:28 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@amd.com header.s=selector1 header.b=3M1HpIIJ; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: amd.com, ip: 40.107.94.46, mailfrom: abner.chang@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DNAdo80RVBaN0HNNXH5qoIXJZqzEwB3TvyVOwCdAItVQkf7hIyyEIP1vgjpkoIFQku6KFXQHSmaHpTy6biSYf45oBe1esdWTf36Uxi3zvlzvGoWWlQ5trusBBztpIw+SBD/ouNOKHtcmeT5UBNu93CuFOdH+/E0X8CsOESqqIRV7ioTj/srZOI/9JhSC7Zj7+myNsaGqa593lkMK93BQXghdeG7wLTls8/Ww+K/eY6lCm3MGTjjqIh7TTGhEcGJpwM7ZvCUblNDoeiZkgEgLU7xoq/alx+Z8DpEPWhQXdEc96J5Eh0ZAGlT+bRTxS7IwqvZpz4liZ7dpmfDhMaYkCw== 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=Q2Yr0tx2IMsMIOTEw156KTkgs5WXDWa7FaXka0atSw0=; b=H72TWa1MGLcyYk9xoEgccGphdKNQkwiVj6lCPBLZm5Z/eM8Z5obUnyZLmEFyJk8IvPy/mGPglErNLPQ4EKdfDVM0U74ijO2PgXUGb7JJkej/Rzhb978nJdgZr6Bh+XOz3S1v1o6AmtoGjRfM3WXWwK5lXDLNo7UWHCjy0ugyux5uxIfBl+lWvAfbVGkedL0xSG8j+evIL8M94zjmMl4z3CmsC4eu+vaEA0V6Iw4c8gt+yVhhBpSU5/7gGuU93RH/WIZ2z663K9nJu+jp/CLxFJF2J+DfKzof0uAL7iQGpI594w4CJf4+xQlHqQ0wFwaVtQLCtVYLGj7o7IoSKyYnIQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Q2Yr0tx2IMsMIOTEw156KTkgs5WXDWa7FaXka0atSw0=; b=3M1HpIIJCKr1k9A7uthiR4KD1mhMe3NAsFoGKPXA8sc8gR+M2Rs2REmh0nc9Rn97B7yoragWrfAeLV+gHfrzwI96cQOjjMWHpXNhYGfCdNML07DVAq9EXz1MFw9vz442VTP15PxSghF58Bec7em2a24LeWp+n4q9CKVeCPXtRrE= Received: from MN2PR12MB3966.namprd12.prod.outlook.com (2603:10b6:208:165::18) by DM6PR12MB4497.namprd12.prod.outlook.com (2603:10b6:5:2a5::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.14; Sat, 10 Dec 2022 08:11:25 +0000 Received: from MN2PR12MB3966.namprd12.prod.outlook.com ([fe80::ce0a:283e:839:34bd]) by MN2PR12MB3966.namprd12.prod.outlook.com ([fe80::ce0a:283e:839:34bd%3]) with mapi id 15.20.5880.014; Sat, 10 Dec 2022 08:11:25 +0000 From: "Chang, Abner" To: "devel@edk2.groups.io" CC: Hao A Wu , Ray Ni , "Kirkendall, Garrett" , "Lin, Kuei-Hung (Timothy)" Subject: Re: [PATCH] MdeModulePkg/Pci: Display more information of PCIe devices Thread-Topic: [PATCH] MdeModulePkg/Pci: Display more information of PCIe devices Thread-Index: AQHZDG6wa0hn7XM8N0WMBd1TyNcOr65mxNrQ Date: Sat, 10 Dec 2022 08:11:25 +0000 Message-ID: References: <20221210080843.469-1-abner.chang@amd.com> In-Reply-To: <20221210080843.469-1-abner.chang@amd.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Enabled=true; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_SetDate=2022-12-10T08:11:23Z; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Method=Standard; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Name=General; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ActionId=ebd5f837-4393-4a75-880b-554a41a47794; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ContentBits=1 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN2PR12MB3966:EE_|DM6PR12MB4497:EE_ x-ms-office365-filtering-correlation-id: 43557043-26db-4579-3bbc-08dada86219b x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: PC2aR8YLZxSdjrv9dxS7vAMHwABNPVPFbuGuNWzdz5adRg/THPIfotScZvoMdQIsoo1ai9tZB5Kv2yagvVZJZz7BdNAsUWxsy0Fs/QRXRcnbbgGNswhH8Cwm1O7B8AstKnESU6d1h/FP4dZT8MUmHeWNyoOslMe3TBfaARCzBOmAqqacHqRjiCTR/OxXpXjNNN9uGJUcBglklUZBPkQpiB7X+90FXFtOkKZgGwucohZrU5i70IWSUctAt7vxlrsB5rfrOj3frQfLgBsMosJIXjPetwdGio0J4VwgDLR9em/0BxTen72DpNYkHHADEQpCoq2f6hYcZJNK4XTbnFLltAm7Y5/+RZVeB+Lxqjru2jkSMkE5lf9rkSwYWlyx/TDShd9bWJv6eLvLvU8luKAghj/yxDXjAj09abHM6e8vPEs3NF7nyxYBPMKxrXR84tkI6FxEuPAATpJ6yHIsK5HkuSug/D+Ny39jSqjhqFkP7Yvh0mnKvNHvy2FGAusVg6vUeVRQMRlvPW7dexbOzEHymKYaGA3UdsWKKc6n75heWOLY3prAqyKpksK1JIcfZCLXbj+eV9V8AidtP0KOn2o6cZ03mSh1Z7McPsCjULHQQYZN3NaUVVDbcAqeZShKuTy9ejb3eNQqWnBp15t46pYBi7W6NWVYhREtHD8dwu5Yno6lqqxB8LNa3K2dEVmyvLIAaZijkkI4000rdDb5sBAwRA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB3966.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(366004)(396003)(346002)(376002)(136003)(39860400002)(451199015)(53546011)(55016003)(2906002)(5660300002)(52536014)(33656002)(41300700001)(8936002)(122000001)(7696005)(316002)(66446008)(64756008)(478600001)(4326008)(8676002)(66556008)(66946007)(83380400001)(76116006)(66476007)(86362001)(6506007)(38070700005)(9686003)(6916009)(38100700002)(71200400001)(26005)(186003)(54906003);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?GMElbpfRmb4m66NY+I6EjqdvUAKr745B40EB9LhPrff5VDZo6e7aHZJ7MMFQ?= =?us-ascii?Q?Sj1vJQKhQevuPL4Eq0+5MPPXOjK890knQaSeOq+bbJo2GWQ1FeVNPnvHe/yO?= =?us-ascii?Q?QfLWPee0NLojXth2NwxqKkVDuHV/NQCy0IhidUMUYrfCniK9rMGkIadjYrXP?= =?us-ascii?Q?TOOxDzVKDMbW58xCTtw115qXBe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?OOJjqci+W/hGrKPeyQaz+k8WvIZ36JuVTYJ1beBCUCCNucrvYVp+pb/kgr4R?= =?us-ascii?Q?WtnQkin8vYPa5WGVG8gFnBQ1JB/lak3dpdkAQH/J+PfLG/qIbzu76DFo4iTc?= =?us-ascii?Q?T1Bda2hQWM5To3NHWfU6HxxLRKArHHWyJ9hx8KoxWrd+Pj66tuba0gsJpxdn?= =?us-ascii?Q?kJMU9nihmGR/wuedpW4+IVgovd/99+vJ++m0r3+X9B9cgj+rkCXejq/tKF9j?= =?us-ascii?Q?iJBwAV4mI/eipokyo154WYz3KQ5JIeKRhwYTXSgBph2j26o5MilpHNLY4mqT?= =?us-ascii?Q?ldq3HdRRof7+naOjwTerf88ETS8ucl2aK9B7kGbEc+fmmCe2mN6Kgvlc2AHE?= =?us-ascii?Q?XwWtNS2FsaldbVobBbwL/Gl6SxFEQaRaKXxDBzTPWz/LDisizdV5j47u3HDg?= =?us-ascii?Q?pjxVwWmHnZHOtpV570o63PNyHjDw3MhQg9tPh6B4W2caA3T4tPkxEced99t+?= =?us-ascii?Q?o/2uRhCeIJds2aEq6SM=3D?= MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB3966.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 43557043-26db-4579-3bbc-08dada86219b X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Dec 2022 08:11:25.0484 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: R4Dp+oGlUmJRIQzxGoCd0HI9fz+xJ0A7qceaE7WWZfEmhdZGdqVb7UVWN2G7IPyinq4Agq2LN7IlBGjSJmoCOA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4497 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable [AMD Official Use Only - General] CC the author. > -----Original Message----- > From: Chang, Abner > Sent: Saturday, December 10, 2022 4:09 PM > To: devel@edk2.groups.io > Cc: Hao A Wu ; Ray Ni ; Kirkendall, > Garrett ; Chang, Abner > > Subject: [PATCH] MdeModulePkg/Pci: Display more information of PCIe devic= es >=20 > From: Abner Chang >=20 > Display PCIe Vendor ID and Device ID in DEBUG message. >=20 > Signed-off-by: Kuei-Hung Lin > Cc: Hao A Wu > Cc: Ray Ni > Cc: Garrett Kirkendall > Cc: Abner Chang > Signed-off-by: Abner Chang > --- > MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) >=20 > diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c > b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c > index 8eca8596958..c4c3457fcdd 100644 > --- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c > +++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c > @@ -227,13 +227,15 @@ PciSearchDevice ( >=20 > DEBUG (( > DEBUG_INFO, > - "PciBus: Discovered %s @ [%02x|%02x|%02x]\n", > + "PciBus: Discovered %s @ [%02x|%02x|%02x] [VID =3D 0x%x, DID =3D 0x= %0x]\n", > IS_PCI_BRIDGE (Pci) ? L"PPB" : > IS_CARDBUS_BRIDGE (Pci) ? L"P2C" : > L"PCI", > Bus, > Device, > - Func > + Func, > + Pci->Hdr.VendorId, > + Pci->Hdr.DeviceId > )); >=20 > if (!IS_PCI_BRIDGE (Pci)) { > -- > 2.37.1.windows.1