Handle PCI_RES_BUS on the Generic and ThunderX PCIe drivers.
This adds pci_alloc_domain() to allocate domain IDs when they are not
available from FDT/ACPI.
Differential D6453
Add support for NEW_PCIB to the arm64 picb drivers andrew on May 19 2016, 2:34 PM. Authored by Tags None Referenced Files
Details Handle PCI_RES_BUS on the Generic and ThunderX PCIe drivers. This adds pci_alloc_domain() to allocate domain IDs when they are not
Diff Detail
Event TimelineComment Actions Hmm, pci_alloc_domain() seems dubious? Do you actually have multiple domains vs just having everything in a single domain? (All the x86 boxes are currently single-domain so just use a domain of 0, though ACPI supports multiple domains via _SEG and MCFG.) Presumably if there were multiple PCI domains / segments FDT would need to identify the domain the way ACPI does via _SEG?
Comment Actions Actually, 'sc->ecam' seems to be the PCI domain. It is what the drivers already return for the PCIB_IVAR_DOMAIN ivar, and looking at how it is constructed on arm64, it is effectively the upper N bits of the memory address for each PCI config access beyond the bus number (which is basically what a PCI domain means). |