linux/arch/s390/pci
Niklas Schnelle e5794cf1a2 s390/pci: create links between PFs and VFs
On s390 PCI Virtual Functions (VFs) are scanned by firmware and are made
available to Linux via the hot-plug interface. As such the common code
path of doing the scan directly using the parent Physical Function (PF)
is not used and fenced off with the no_vf_scan attribute.

Even if the partition created the VFs itself e.g. using the sriov_numvfs
attribute of a PF, the PF/VF links thus need to be established after the
fact. To do this when a VF is plugged we scan through all functions on
the same zbus and test whether they are the parent PF in which case we
establish the necessary links.

With these links established there is now no more need to fence off
pci_iov_remove_virtfn() for pdev->no_vf_scan as the common code now
works fine.

Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Pierre Morel <pmorel@linux.ibm.com>
Link: https://lore.kernel.org/r/20200506154139.90609-3-schnelle@linux.ibm.com
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
2020-05-20 10:22:51 +02:00
..
Makefile s390/pci: create zPCI bus 2020-04-28 13:49:46 +02:00
pci_bus.c s390/pci: create links between PFs and VFs 2020-05-20 10:22:51 +02:00
pci_bus.h s390/pci: Handling multifunctions 2020-04-28 13:49:47 +02:00
pci_clp.c s390/pci: create links between PFs and VFs 2020-05-20 10:22:51 +02:00
pci_debug.c locking/atomic, s390/pci: Remove redundant casts 2019-06-03 12:32:57 +02:00
pci_dma.c dma-mapping updates for 5.4: 2019-09-19 13:27:23 -07:00
pci_event.c s390/pci: Handling multifunctions 2020-04-28 13:49:47 +02:00
pci_insn.c s390/pci: provide support for MIO instructions 2019-04-29 10:47:01 +02:00
pci_irq.c s390/pci: fix MSI message data 2019-09-16 13:21:51 +02:00
pci_mmio.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pci_sysfs.c s390/pci: create zPCI bus 2020-04-28 13:49:46 +02:00
pci.c s390/pci: Handling multifunctions 2020-04-28 13:49:47 +02:00