Skip to content

Commit

Permalink
PCI: Allow pcie_aspm=force even when FADT indicates it is unsupported
Browse files Browse the repository at this point in the history
Right now using pcie_aspm=force will not enable ASPM if the FADT indicates
ASPM is unsupported.  However, the semantics of force should probably allow
for this, especially as they did before 3c07635 ("PCI: Rework ASPM
disable code")

This patch just skips the clearing of any ASPM setup that the firmware has
carried out on this bus if pcie_aspm=force is being used.

Reference: http://bugs.launchpad.net/bugs/962038
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: stable@vger.kernel.org
  • Loading branch information
Colin Ian King authored and Bjorn Helgaas committed Jan 14, 2013
1 parent d712f68 commit 9e16721
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/pci/pcie/aspm.c
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,9 @@ void pcie_clear_aspm(struct pci_bus *bus)
{
struct pci_dev *child;

if (aspm_force)
return;

/*
* Clear any ASPM setup that the firmware has carried out on this bus
*/
Expand Down

0 comments on commit 9e16721

Please sign in to comment.