[kernel/f15/master] Another fix for ASPM powersave mode
Chuck Ebbert
cebbert at fedoraproject.org
Wed Apr 27 03:44:32 UTC 2011
commit 915385f9f0cb1f6cbfa24fe339510318204f78cd
Author: Chuck Ebbert <cebbert at redhat.com>
Date: Tue Apr 26 23:44:48 2011 -0400
Another fix for ASPM powersave mode
kernel.spec | 13 +++++++--
...-aspm-state-clearing-regardless-of-policy.patch | 29 ++++++++++++++++++++
2 files changed, 39 insertions(+), 3 deletions(-)
---
diff --git a/kernel.spec b/kernel.spec
index 8302778..98df4ba 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -631,9 +631,13 @@ Patch204: linux-2.6-debug-always-inline-kzalloc.patch
Patch380: linux-2.6-defaults-pci_no_msi.patch
Patch381: linux-2.6-defaults-pci_use_crs.patch
+
+# ASPM: enable powersave by default
Patch383: linux-2.6-defaults-aspm.patch
+Patch384: pci-pcie-links-may-not-get-configured-for-aspm-under-powersave-mode.patch
+Patch385: pci-enable-aspm-state-clearing-regardless-of-policy.patch
-Patch385: ima-allow-it-to-be-completely-disabled-and-default-off.patch
+Patch389: ima-allow-it-to-be-completely-disabled-and-default-off.patch
Patch390: linux-2.6-defaults-acpi-video.patch
Patch391: linux-2.6-acpi-video-dos.patch
@@ -717,7 +721,6 @@ Patch12200: acpi_reboot.patch
# Runtime power management
Patch12203: linux-2.6-usb-pci-autosuspend.patch
Patch12204: linux-2.6-enable-more-pci-autosuspend.patch
-Patch12207: pci-pcie-links-may-not-get-configured-for-aspm-under-powersave-mode.patch
Patch12303: dmar-disable-when-ricoh-multifunction.patch
@@ -1236,8 +1239,9 @@ ApplyPatch linux-2.6-defaults-pci_no_msi.patch
ApplyPatch linux-2.6-defaults-pci_use_crs.patch
# enable ASPM by default on hardware we expect to work
ApplyPatch linux-2.6-defaults-aspm.patch
-#
+# fixes for ASPM powersave mode
ApplyPatch pci-pcie-links-may-not-get-configured-for-aspm-under-powersave-mode.patch
+ApplyPatch pci-enable-aspm-state-clearing-regardless-of-policy.patch
#ApplyPatch ima-allow-it-to-be-completely-disabled-and-default-off.patch
@@ -1962,6 +1966,9 @@ fi
# and build.
%changelog
+* Tue Apr 26 2011 Chuck Ebbert <cebbert at redhat.com>
+- Another fix for ASPM powersave mode
+
* Mon Apr 25 2011 Jarod Wilson <jarod at redhat.com>
- ite-cir: fix modular build on powerpc (#698378)
- mceusb: add Dell-branded transceiver device ID
diff --git a/pci-enable-aspm-state-clearing-regardless-of-policy.patch b/pci-enable-aspm-state-clearing-regardless-of-policy.patch
new file mode 100644
index 0000000..afc9776
--- /dev/null
+++ b/pci-enable-aspm-state-clearing-regardless-of-policy.patch
@@ -0,0 +1,29 @@
+From: Alex Williamson <alex.williamson at redhat.com>
+Date: Thu, 10 Mar 2011 18:54:16 +0000 (-0700)
+Subject: PCI: Enable ASPM state clearing regardless of policy
+X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Fjbarnes%2Fpci-2.6.git;a=commitdiff_plain;h=1a4e6a3c049bba1574c2a80af44f0ceb5c1abf83
+
+PCI: Enable ASPM state clearing regardless of policy
+
+Commit 2f671e2d allowed us to clear ASPM state when the FADT
+tells us it isn't supported, but we don't put this into effect
+if the aspm_policy is set to POLICY_POWERSAVE. Enable the
+state to be cleared regardless of policy.
+
+Signed-off-by: Alex Williamson <alex.williamson at redhat.com>
+Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
+---
+
+diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c
+index eee09f7..3eb667b 100644
+--- a/drivers/pci/pcie/aspm.c
++++ b/drivers/pci/pcie/aspm.c
+@@ -608,7 +608,7 @@ void pcie_aspm_init_link_state(struct pci_dev *pdev)
+ * the BIOS's expectation, we'll do so once pci_enable_device() is
+ * called.
+ */
+- if (aspm_policy != POLICY_POWERSAVE) {
++ if (aspm_policy != POLICY_POWERSAVE || aspm_clear_state) {
+ pcie_config_aspm_path(link);
+ pcie_set_clkpm(link, policy_to_clkpm_state(link));
+ }
More information about the scm-commits
mailing list