* [PATCH] MdeModulePkg/Pci: Display more information of PCIe devices
@ 2022-12-10 8:08 Chang, Abner
2022-12-10 8:11 ` Chang, Abner
0 siblings, 1 reply; 2+ messages in thread
From: Chang, Abner @ 2022-12-10 8:08 UTC (permalink / raw)
To: devel; +Cc: Hao A Wu, Ray Ni, Garrett Kirkendall, Abner Chang
From: Abner Chang <abner.chang@amd.com>
Display PCIe Vendor ID and Device ID in DEBUG message.
Signed-off-by: Kuei-Hung Lin <Kuei-Hung.Lin@amd.com>
Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Garrett Kirkendall <garrett.kirkendall@amd.com>
Cc: Abner Chang <abner.chang@amd.com>
Signed-off-by: Abner Chang <abner.chang@amd.com>
---
MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
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 (
DEBUG ((
DEBUG_INFO,
- "PciBus: Discovered %s @ [%02x|%02x|%02x]\n",
+ "PciBus: Discovered %s @ [%02x|%02x|%02x] [VID = 0x%x, DID = 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
));
if (!IS_PCI_BRIDGE (Pci)) {
--
2.37.1.windows.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] MdeModulePkg/Pci: Display more information of PCIe devices
2022-12-10 8:08 [PATCH] MdeModulePkg/Pci: Display more information of PCIe devices Chang, Abner
@ 2022-12-10 8:11 ` Chang, Abner
0 siblings, 0 replies; 2+ messages in thread
From: Chang, Abner @ 2022-12-10 8:11 UTC (permalink / raw)
To: devel@edk2.groups.io
Cc: Hao A Wu, Ray Ni, Kirkendall, Garrett, Lin, Kuei-Hung (Timothy)
[AMD Official Use Only - General]
CC the author.
> -----Original Message-----
> From: Chang, Abner <Abner.Chang@amd.com>
> Sent: Saturday, December 10, 2022 4:09 PM
> To: devel@edk2.groups.io
> Cc: Hao A Wu <hao.a.wu@intel.com>; Ray Ni <ray.ni@intel.com>; Kirkendall,
> Garrett <Garrett.Kirkendall@amd.com>; Chang, Abner
> <Abner.Chang@amd.com>
> Subject: [PATCH] MdeModulePkg/Pci: Display more information of PCIe devices
>
> From: Abner Chang <abner.chang@amd.com>
>
> Display PCIe Vendor ID and Device ID in DEBUG message.
>
> Signed-off-by: Kuei-Hung Lin <Kuei-Hung.Lin@amd.com>
> Cc: Hao A Wu <hao.a.wu@intel.com>
> Cc: Ray Ni <ray.ni@intel.com>
> Cc: Garrett Kirkendall <garrett.kirkendall@amd.com>
> Cc: Abner Chang <abner.chang@amd.com>
> Signed-off-by: Abner Chang <abner.chang@amd.com>
> ---
> MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> 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 (
>
> DEBUG ((
> DEBUG_INFO,
> - "PciBus: Discovered %s @ [%02x|%02x|%02x]\n",
> + "PciBus: Discovered %s @ [%02x|%02x|%02x] [VID = 0x%x, DID = 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
> ));
>
> if (!IS_PCI_BRIDGE (Pci)) {
> --
> 2.37.1.windows.1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-12-10 8:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-10 8:08 [PATCH] MdeModulePkg/Pci: Display more information of PCIe devices Chang, Abner
2022-12-10 8:11 ` Chang, Abner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox