The Oracle VM Server for SPARC ldm list-io command lists the root complexes and I/O devices on a single PDomain. By searching the ldm list-io output for a specific PCIe or EMS slot number, you can determine the root complex of an installed PCIe device.
The ldm list-io command displays the root complexes and the PCIe devices in the PDomain. The ldm list-io output is divided into three sections:
A list of the root complexes in the PDomain (labeled BUS).
A list of PCIe and EMS slots that includes whether the slots are occupied (OCC) with a device or empty (EMP).
A list of I/O devices installed in the PDomain.
Note - For more information about the ldm command and for instructions on assigning devices to I/O domains, refer to the Oracle VM Server for SPARC documentation.
A PDomain can include one to four DCUs and each DCU can contain two or four CMUs. The ldm command output will contain all of the PCIe and EMS slots in the PDomain.
See Understanding PCIe Device Root Complexes for a list of the root complexes and FRU names for every PCIe and EMS slot in the server.
Use the grep command with the IOU number and slot number of the slot to search the ldm list-io output to list the root complex:
# ldm list-io | grep IOUy/PCIEx
Replace y with the IOU number containing the slot and x with the number of the slot. The IOU number will be the same as the DCU number (DCU2 contains IOU2).
For example, to determine the root complex of the PCIe slot 12 of IOU0, type:
# ldm list-io | grep IOU0/PCIE12 /SYS/IOU0/PCIE12 PCIE pci_14 primary EMP
The root complex is shown in the third column of the output. In the preceding example, pci_14 is the root complex for PCIe slot 12 in IOU0.
To determine the root complex of EMS slot 3 in IOU1, type:
# ldm list-io | grep IOU1/EMS3 /SYS/IOU1/EMS3/CARD/NET0 PCIE pci_20 primary OCC /SYS/IOU1/EMS3/CARD/SCSI PCIE pci_20 primary OCC /SYS/IOU1/EMS3/CARD/NET0/IOVNET.PF0 PF pci_20 primary /SYS/IOU1/EMS3/CARD/NET0/IOVNET.PF1 PF pci_20 primary
The root complex of EMS slot 3 in IOU1 (and DCU1) is pci_20. The ldm output also includes the network and SAS devices associated with the EMS module.