linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Ignore pre-1.1 ASPM quirking when ASPM is disabled
@ 2012-03-06 18:41 Matthew Garrett
  2012-03-07  5:48 ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Matthew Garrett @ 2012-03-06 18:41 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-pci, jbarnes, Matthew Garrett, stable

Right now we won't touch ASPM state if ASPM is disabled, except in the case
where we find a device that appears to be too old to reliably support ASPM.
Right now we'll clear it in that case, which is almost certainly the wrong
thing to do. The easiest way around this is just to disable the blacklisting
when ASPM is disabled.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Cc: stable@kernel.org
---
 drivers/pci/pcie/aspm.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c
index 1cfbf22..24f049e 100644
--- a/drivers/pci/pcie/aspm.c
+++ b/drivers/pci/pcie/aspm.c
@@ -500,6 +500,9 @@ static int pcie_aspm_sanity_check(struct pci_dev *pdev)
 	int pos;
 	u32 reg32;
 
+	if (aspm_disabled)
+		return 0;
+
 	/*
 	 * Some functions in a slot might not all be PCIe functions,
 	 * very strange. Disable ASPM for the whole slot
-- 
1.7.7.6


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-03-08 15:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-06 18:41 [PATCH] Ignore pre-1.1 ASPM quirking when ASPM is disabled Matthew Garrett
2012-03-07  5:48 ` Greg KH
2012-03-08  4:25   ` Jesse Barnes
2012-03-08 15:44     ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).