From 570b183f7ef72dbc5d4575719cdd582c88c37d8b Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Wed, 30 Aug 2017 13:38:50 +0200 Subject: device: Add flag to disable PCIe ASPM For broken devices that spuriously advertise ASPM, make it possible to decide ASPM activation in the device driver. Change-Id: I491aa32a3ec954be87a474478609f0f3971d0fdf Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/25617 Reviewed-by: Aaron Durbin Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) --- src/device/pciexp_device.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/device/pciexp_device.c') diff --git a/src/device/pciexp_device.c b/src/device/pciexp_device.c index b15d9c2a2bd4..502494dad4b7 100644 --- a/src/device/pciexp_device.c +++ b/src/device/pciexp_device.c @@ -377,6 +377,9 @@ static void pciexp_enable_aspm(device_t root, unsigned root_cap, u16 lnkctl; u32 devcap; + if (endp->disable_pcie_aspm) + return; + /* Get endpoint device capabilities for acceptable limits */ devcap = pci_read_config32(endp, endp_cap + PCI_EXP_DEVCAP); -- cgit v1.2.3