]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 19:03:35 +0000 (20:03 +0100)
commitfbb370c01ef499fce087acd6d8608e43fb8753e0
tree4aabafb087193e8d894f51749256fcd794531aad
parent1f3b309108fd0660ea8614a72328ba866ccd3378
s390/pci: Use topology ID for multi-function devices

[ Upstream commit 126034faaac5f356822c4a9bebfa75664da11056 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
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