On 7/16/2018 5:17 PM, Bjorn Helgaas wrote:[snip]
[+cc maintainers of drivers that already use pcie_print_link_status()
and GPU folks]
+ÂÂÂ /* Multi-function PCIe share the same link/status. */
+ÂÂÂ if ((PCI_FUNC(dev->devfn) != 0) || dev->is_virtfn)
+ÂÂÂÂÂÂÂ return;
+
+ÂÂÂ pcie_print_link_status(dev);
+}
Is this function called by default for every PCIe device? What about VFs? We make an exception for them on our driver since a VF doesn't have access to the needed information in order to provide a meaningful message.