2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-07 13:13:57 +08:00
linux-next/drivers/pci/pcie
Bjorn Helgaas 7b38fd9760 PCI/PTM: Inherit Switch Downstream Port PTM settings from Upstream Port
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>
2020-05-21 15:53:07 -05:00
..
aer_inject.c PCI/AER: Fix the broken interrupt injection 2020-03-08 11:07:12 +01:00
aer.c PCI/AER: Rationalize error status register clearing 2020-03-28 13:19:05 -05:00
aspm.c PCI/ASPM: Reduce severity of common clock config message 2020-03-28 15:09:22 -05:00
bw_notification.c pci-v5.2-changes 2019-05-14 10:30:10 -07:00
dpc.c PCI/AER: Rationalize error status register clearing 2020-03-28 13:19:05 -05:00
edr.c PCI/DPC: Add Error Disconnect Recover (EDR) support 2020-03-28 13:19:04 -05:00
err.c PCI/AER: Rationalize error status register clearing 2020-03-28 13:19:05 -05:00
Kconfig pci-v5.7-changes 2020-04-03 14:25:02 -07:00
Makefile PCI/DPC: Add Error Disconnect Recover (EDR) support 2020-03-28 13:19:04 -05:00
pme.c PCI/PME: Replace dev_printk(KERN_DEBUG) with dev_info() 2019-05-09 16:27:29 -05:00
portdrv_core.c PCI/ERR: Remove service dependency in pcie_do_recovery() 2020-03-28 13:18:54 -05:00
portdrv_pci.c PCI/DPC: Add "pcie_ports=dpc-native" to allow DPC without AER control 2019-10-25 15:11:43 -05:00
portdrv.h PCI/ERR: Remove service dependency in pcie_do_recovery() 2020-03-28 13:18:54 -05:00
ptm.c PCI/PTM: Inherit Switch Downstream Port PTM settings from Upstream Port 2020-05-21 15:53:07 -05:00