Skip to contentSkip to conversation

Ignore pre-1.1 ASPM quirking when ASPM is disabled

PATCH In review Matthew Garrett 3 participants 4 messages Mar 6, 2012 – Mar 8, 2012 PCI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Ignore pre-1.1 ASPM quirking when ASPM is disabled

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.

---
 drivers/pci/pcie/aspm.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/pci/pcie/aspm.c +3 -0
index 1cfbf22..24f049e 100644
@@ -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
Signature · 1 line
1.7.7.6
#1 lore raw
Quoted 8 lines · Matthew Garrett

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.

That's <[email protected]> if we want to get it right :)

Anyway, Jesse, this needs to get into 3.3-final to prevent regressions...

thanks,

greg k-h

#2 lore raw
Quoted 7 lines · On Tue, 6 Mar 2012 21:48:59 -0800 Greg KH <[email protected]> wrote:
Quoted 6 lines · Matthew Garrett

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.

Quoted 7 lines
Quoted 2 lines

That's <[email protected]> if we want to get it right :)

Anyway, Jesse, this needs to get into 3.3-final to prevent regressions...

Any bz links to add to the changelog? I'll fix up the stable cc when I commit...

Jesse

#3 lore raw
Quoted 13 lines · Jesse Barnes
Quoted 10 lines · On Tue, 6 Mar 2012 21:48:59 -0800 Greg KH <[email protected]> wrote:
Quoted 8 lines · Matthew Garrett

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.

Quoted 7 lines
Quoted 4 lines

That's <[email protected]> if we want to get it right :)

Anyway, Jesse, this needs to get into 3.3-final to prevent regressions...

Any bz links to add to the changelog? I'll fix up the stable cc when I commit...

Not that I know of, there was an email thread about this when I released the 3.2.5 kernel that talked about the problems with it which caused this patch to be created.

thanks,

greg k-h