Re: [RFC] Log PCIe service info with pci_dev, not pcie_device

2019-03-11 Thread Rafael J. Wysocki
On Friday, March 8, 2019 7:01:49 PM CET Bjorn Helgaas wrote: > This is strictly a discussion starter, obviously not for application. > > The portdrv driver binds to pci_dev for PCIe Root Ports and Switch > Ports. It creates additional pcie_devices for each "service" (Power > Management events, AE

Re: [RFC] Log PCIe service info with pci_dev, not pcie_device

2019-03-08 Thread Keith Busch
On Fri, Mar 08, 2019 at 12:01:49PM -0600, Bjorn Helgaas wrote: > Changing that would be a big project that I don't want to tackle right > now, but I think a small step would be to simplify the dmesg logging > by doing it with the underlying pci_dev instead of the pcie_device. > For example, we coul

[RFC] Log PCIe service info with pci_dev, not pcie_device

2019-03-08 Thread Bjorn Helgaas
This is strictly a discussion starter, obviously not for application. The portdrv driver binds to pci_dev for PCIe Root Ports and Switch Ports. It creates additional pcie_devices for each "service" (Power Management events, AER, hotplug, Downstream Port Containment, etc). These pcie_devices have