1
0
Fork 0
alistair23-linux/drivers/pci/pcie
Bjorn Helgaas 0bd8e62464 PCI/PTM: Inherit Switch Downstream Port PTM settings from Upstream Port
[ Upstream commit 7b38fd9760 ]

Except for Endpoints, we enable PTM at enumeration-time.  Previously we did
not account for the fact that Switch Downstream Ports are not permitted to
have a PTM capability; their PTM behavior is controlled by the Upstream
Port (PCIe r5.0, sec 7.9.16).  Since Downstream Ports don't have a PTM
capability, we did not mark them as "ptm_enabled", which meant that
pci_enable_ptm() on an Endpoint failed because there was no PTM path to it.

Mark Downstream Ports as "ptm_enabled" if their Upstream Port has PTM
enabled.

Fixes: eec097d431 ("PCI: Add pci_enable_ptm() for drivers to enable PTM on endpoints")
Reported-by: Aditya Paluri <Venkata.AdityaPaluri@synopsys.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-06-24 17:50:31 +02:00
..
Kconfig PCI/LINK: Add Kconfig option (default off) 2019-05-02 08:34:32 -05:00
Makefile PCI/LINK: Add Kconfig option (default off) 2019-05-02 08:34:32 -05:00
aer.c PCI/AER: Initialize aer_fifo 2020-02-14 16:34:09 -05:00
aer_inject.c PCI: Fix typos and whitespace errors 2019-07-09 07:24:53 -05:00
aspm.c PCI/ASPM: Allow ASPM on links to PCIe-to-PCI/PCI-X Bridges 2020-06-24 17:50:24 +02:00
bw_notification.c pci-v5.2-changes 2019-05-14 10:30:10 -07:00
dpc.c PCI/DPC: Log messages with pci_dev, not pcie_device 2019-05-09 16:27:34 -05:00
err.c PCI: Get rid of dev->has_secondary_link flag 2019-09-07 07:45:31 -05:00
pme.c PCI/PME: Replace dev_printk(KERN_DEBUG) with dev_info() 2019-05-09 16:27:29 -05:00
portdrv.h PCI/LINK: Add Kconfig option (default off) 2019-05-02 08:34:32 -05:00
portdrv_core.c Revert "PCI: Add missing link delays required by the PCIe spec" 2019-08-07 13:06:42 +02:00
portdrv_pci.c PCI/LINK: Report degraded links via link bandwidth notification 2019-03-05 15:04:13 -06:00
ptm.c PCI/PTM: Inherit Switch Downstream Port PTM settings from Upstream Port 2020-06-24 17:50:31 +02:00