]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/pci: Use topology ID for multi-function devices
authorNiklas Schnelle <schnelle@linux.ibm.com>
Thu, 26 Sep 2024 14:08:30 +0000 (16:08 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Thu, 10 Oct 2024 13:32:43 +0000 (15:32 +0200)
commit126034faaac5f356822c4a9bebfa75664da11056
treeb901575a624b9d6e8e55465c392d2c3f03f2318a
parent0467cdde8c4320bbfdb31a8cff1277b202f677fc
s390/pci: Use topology ID for multi-function devices

The newly introduced topology ID (TID) field in the CLP Query PCI
Function explicitly identifies groups of PCI functions whose RIDs belong
to the same (sub-)topology. When available use the TID instead of the
PCHID to match zPCI busses/domains for multi-function devices. Note that
currently only a single PCI bus per TID is supported. This change is
required because in future machines the PCHID will not identify a PCI
card but a specific port in the case of some multi-port NICs while from
a PCI point of view the entire card is a subtopology.

Reviewed-by: Gerd Bayer <gbayer@linux.ibm.com>
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/asm/pci.h
arch/s390/include/asm/pci_clp.h
arch/s390/pci/pci_bus.c
arch/s390/pci/pci_clp.c