From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (NAM04-BN8-obe.outbound.protection.outlook.com [40.107.100.67]) by mx.groups.io with SMTP id smtpd.web11.10732.1670659750728140295 for ; Sat, 10 Dec 2022 00:09:11 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@amd.com header.s=selector1 header.b=dr9BX17y; 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.100.67, mailfrom: abner.chang@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bubHz5M59kZr16twrduTq3NYF0A973WU58KrMtLnrn34YjRvRZcC6RxKfQcVLx2m2SxE+ruSibEadLjVudWxYgA4AzgVHSWjcVrIewI6zpgbkke5OrVDfSnBBSIquBv6PIwyMCwD+UHorDmflZsUPETPz6bEtPVwfnEeVGORd++ADCdWeiRtnEztRL2EgSTFwU87G+KTtPrg1h92S6mOte+C3GKQvjMF5sr9enrX/6qXU/gmN+kFvvGgFtaCSy5T7KllkeoKYQkzhvR7vtEVy/k0ezjhnUy3OP0kiGJ29vRnNBofGRdVzZZ/yUykCUA9jdZRdLSrRiYDYM1soZeEjg== 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=rUF1LNcs2euqa/P7iDESQ8fEdb2Ct4dn3LaKA58u7k8=; b=lj1K8A+wwC095HYkvV0bbZbpOLaxCETEEIYQaLUQRuyMAxqiOZLbGetG6pgocqEkFl5oVlPIrF4A995bLaI/d1Ih7xDQh11+Wy5dkVDusbOTV9U3ckxVft0RNH43NSsl5eQU/9AFv0Kod68ltE6BHJmC47Jn9kMHTQudgn9tQ3nxLxzcxjd/TnyjoOpm+T5mNMk5qXNG62Ke4p614uurR6c2UBANRW23JGyRwF8GELCB7rhF05SnZH530wFF67NSmw0fDKfPZKoZX1el4w5XNdAyg5W/YuCQCe5UxM79n98dhL7sNOO9d/FjqMqGk/psBqqNt1T2Ohk7y/VAekLN/w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); 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=rUF1LNcs2euqa/P7iDESQ8fEdb2Ct4dn3LaKA58u7k8=; b=dr9BX17yXCV7/uIHi6I0CSmqe4WtgHmlaE0U/1Z1j3BMdw2dYZ+pYoOC1H0F2vja+fr5KWKRCXybb5vMMbD3koXENq9YW38X+uLw+qMkmU3qWXhIfbOLhZdGKStZ3fDmB20O0iDjmkElNDl60Ep/rpV555GX0h9LU4rHqjFR6j4= Received: from BN9P221CA0013.NAMP221.PROD.OUTLOOK.COM (2603:10b6:408:10a::6) by DS0PR12MB6608.namprd12.prod.outlook.com (2603:10b6:8:d0::10) 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:09:08 +0000 Received: from BN8NAM11FT007.eop-nam11.prod.protection.outlook.com (2603:10b6:408:10a:cafe::c6) by BN9P221CA0013.outlook.office365.com (2603:10b6:408:10a::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.19 via Frontend Transport; Sat, 10 Dec 2022 08:09:08 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BN8NAM11FT007.mail.protection.outlook.com (10.13.177.109) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5901.17 via Frontend Transport; Sat, 10 Dec 2022 08:09:07 +0000 Received: from TPE-L1-ABNCHANG.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Sat, 10 Dec 2022 02:09:05 -0600 From: "Chang, Abner" To: CC: Hao A Wu , Ray Ni , "Garrett Kirkendall" , Abner Chang Subject: [PATCH] MdeModulePkg/Pci: Display more information of PCIe devices Date: Sat, 10 Dec 2022 16:08:43 +0800 Message-ID: <20221210080843.469-1-abner.chang@amd.com> X-Mailer: git-send-email 2.37.1.windows.1 MIME-Version: 1.0 Return-Path: Abner.Chang@amd.com X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT007:EE_|DS0PR12MB6608:EE_ X-MS-Office365-Filtering-Correlation-Id: 46f5c6e7-f387-4964-37e6-08dada85cfdd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3KMpGsG6Wm0fta0g4i+W+v+cghhxUz1h+AymQHiteeLCZss8156sW4uzqxHK0kWPyDgk+wSPDygAvWG2yhMFW19ZYqrL38v4f17SdNgcyHIf8EOlMz7j1g04r3bPJzMf4vkSGouSSix1lhSTnC0koQ2iWVu5G1bm0Ald9gaIsvpPmSfwbAHE/zEahp58PYoTo1docBAaIfwS/c/868DnHWBwrUMcUqc7YvMkFIYX/YnJIJsafE0DhZssTPSC4oNMP0pL3MbvKdEE083Ec6DqYWjchAwIt9plON1No17A7JJW1979ZsQji79khIoj6WxMEgYx942s5fWOE9fybb+9E1ZrQAjZM7HuhSGGCte4sBeJBu8rtMVJWT1nHUBtGZxeG+AA1VgdRMnSLc43WrbdEQRkfSp/nfcvs8B1f8M9mD6NWWBpp7cKzjMnRW9DWCuIL5E5b2c9frDQmtFsCZ91wZ+P8qJw7ZbV+kBgBSJTdExNNRzYtTkJW7H3oIcdia4dix0y7qPk6pEHVHI2CZoDOrjDozSC2pXa2IDKGd8KZBCCL4dZNjWXMYJFRfPyXRffQfdyCdOOq3AW2fWMFBZlCQF2cTIWmti/T/7aF83thvwIeDVg5R+MXTRHuELixjVE8omWBKY4xNBVOAmcm1QlVgPRe3vgS/8tQLxkTlYCDMnY5JfmJKnw4b08kHEzR/A1vkjbVvn/Bh9PlgcrEYzr1a1jmPq299aR1xFZRD2J7tM= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230022)(4636009)(136003)(396003)(346002)(376002)(39860400002)(451199015)(36840700001)(46966006)(40470700004)(82740400003)(70586007)(70206006)(40480700001)(6666004)(8676002)(81166007)(478600001)(356005)(4326008)(83380400001)(16526019)(41300700001)(186003)(26005)(86362001)(6916009)(426003)(54906003)(2906002)(2876002)(5660300002)(8936002)(336012)(36860700001)(47076005)(316002)(1076003)(2616005)(36756003)(82310400005)(40460700003)(7696005)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Dec 2022 08:09:07.8764 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 46f5c6e7-f387-4964-37e6-08dada85cfdd X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT007.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB6608 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain From: Abner Chang Display PCIe Vendor ID and Device ID in DEBUG message. 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(-) diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c b/MdeMod= ulePkg/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%0= x]\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)) { --=20 2.37.1.windows.1