Michael Lampe
2012-Feb-12 22:57 UTC
[CentOS] Anyone already tried to backport the latest ASPM kernel patch to 6.2?
After going from CentOS 5.7 to 6.2, a lot of things turned out to be much better, but there are also quite some regressions. The most obvious one is power consumption on my notebook. It was notably lower before. The ASPM issue introduced in 2.6.38 was widely reported and discussed, and the 6.2 kernel has exacatly this code as a backport. http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=2f671e2dbff6eb5ef4e2600adbec550c13b8fe72 So I started to experiment with the upstream patch: http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=commitdiff;h=3c076351c4027a56d5005a39a0b518a4ba393ce2;hp=69166fbf02c7a21745013f2de037bf7af26e4279 To make it apply, one needs to change 'pci_is_pcie(pdev)' into 'pdev->is_pcie'. One also needs to fiddle a little with the first chunk. I came up with the patch attached, but unfortunately the new kernel showed no improvement. Most probably I got something wrong. Anyone else here who tried this or is interested in sorting this out? Thanks, Michael -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: aspm-patch URL: <http://lists.centos.org/pipermail/centos/attachments/20120212/6b573135/attachment-0005.ksh>
Patrick Lists
2012-Feb-12 23:19 UTC
[CentOS] Anyone already tried to backport the latest ASPM kernel patch to 6.2?
On 12-02-12 23:57, Michael Lampe wrote:> After going from CentOS 5.7 to 6.2, a lot of things turned out to be > much better, but there are also quite some regressions. The most obvious > one is power consumption on my notebook. It was notably lower before. > > The ASPM issue introduced in 2.6.38 was widely reported and discussed, > and the 6.2 kernel has exacatly this code as a backport. > > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=2f671e2dbff6eb5ef4e2600adbec550c13b8fe72 > > > So I started to experiment with the upstream patch: > > http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=commitdiff;h=3c076351c4027a56d5005a39a0b518a4ba393ce2;hp=69166fbf02c7a21745013f2de037bf7af26e4279 > > > To make it apply, one needs to change 'pci_is_pcie(pdev)' into > 'pdev->is_pcie'. One also needs to fiddle a little with the first chunk. > > I came up with the patch attached, but unfortunately the new kernel > showed no improvement. Most probably I got something wrong. > > Anyone else here who tried this or is interested in sorting this out?Iirc to enable ASPM on Fedora the kernel must be booted with pcie_aspm=force. Maybe you need to use that option too? For more info see: http://www.phoronix.com/scan.php?page=article&item=linux_aspm_solution&num=1 Regards, Patrick
Possibly Parallel Threads
- [PATCH 1/3] pci: force disable ASPM before changing the link speed
- [PATCH 1/3] pci: force disable ASPM before changing the link speed
- Core Dump - Asterisk 1.4.24 - Elastix
- DAHDI-Linux and DAHDI-Tools 2.8.0-rc5 Now Available
- DAHDI-Linux and DAHDI-Tools 2.8.0-rc5 Now Available