* pci: Rework ASPM disable code patch
@ 2011-11-21 17:20 Guy, Wey-Yi
2011-11-21 18:26 ` Greg KH
0 siblings, 1 reply; 5+ messages in thread
From: Guy, Wey-Yi @ 2011-11-21 17:20 UTC (permalink / raw)
To: linville, mjg, gregkh; +Cc: linux-wireless
Hi John/Garrett/Greg,
We test the ASPM patch with the Intel WiFi devices on number of
platforms and the improvement is huge.
In the "idle associated" mode, the power consumption number for our new
devices down to ~40mW range from over 120mW.
We will do more testing but I will suggest to apply this patch to the
stable release.
Thanks
Wey
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: pci: Rework ASPM disable code patch
2011-11-21 18:26 ` Greg KH
@ 2011-11-21 17:38 ` Guy, Wey-Yi
2011-11-21 20:51 ` Greg KH
0 siblings, 1 reply; 5+ messages in thread
From: Guy, Wey-Yi @ 2011-11-21 17:38 UTC (permalink / raw)
To: Greg KH
Cc: linville@tuxdriver.com, mjg@redhat.com,
linux-wireless@vger.kernel.org
On Mon, 2011-11-21 at 10:26 -0800, Greg KH wrote:
> On Mon, Nov 21, 2011 at 09:20:29AM -0800, Guy, Wey-Yi wrote:
> > Hi John/Garrett/Greg,
> >
> > We test the ASPM patch with the Intel WiFi devices on number of
> > platforms and the improvement is huge.
>
> What "ASPM patch"?
https://lkml.org/lkml/2011/11/11/212
>
> > In the "idle associated" mode, the power consumption number for our new
> > devices down to ~40mW range from over 120mW.
> >
> > We will do more testing but I will suggest to apply this patch to the
> > stable release.
>
> What is the git commit id of this patch? Have you read
> Documentation/stable_kernel_rules.txt for how to properly submit a patch
> to the stable kernel trees?
>
> thanks,
>
> greg k-h
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: pci: Rework ASPM disable code patch
2011-11-21 17:20 pci: Rework ASPM disable code patch Guy, Wey-Yi
@ 2011-11-21 18:26 ` Greg KH
2011-11-21 17:38 ` Guy, Wey-Yi
0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2011-11-21 18:26 UTC (permalink / raw)
To: Guy, Wey-Yi; +Cc: linville, mjg, linux-wireless
On Mon, Nov 21, 2011 at 09:20:29AM -0800, Guy, Wey-Yi wrote:
> Hi John/Garrett/Greg,
>
> We test the ASPM patch with the Intel WiFi devices on number of
> platforms and the improvement is huge.
What "ASPM patch"?
> In the "idle associated" mode, the power consumption number for our new
> devices down to ~40mW range from over 120mW.
>
> We will do more testing but I will suggest to apply this patch to the
> stable release.
What is the git commit id of this patch? Have you read
Documentation/stable_kernel_rules.txt for how to properly submit a patch
to the stable kernel trees?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: pci: Rework ASPM disable code patch
2011-11-21 17:38 ` Guy, Wey-Yi
@ 2011-11-21 20:51 ` Greg KH
2011-11-21 21:15 ` Guy, Wey-Yi
0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2011-11-21 20:51 UTC (permalink / raw)
To: Guy, Wey-Yi
Cc: linville@tuxdriver.com, mjg@redhat.com,
linux-wireless@vger.kernel.org
On Mon, Nov 21, 2011 at 09:38:33AM -0800, Guy, Wey-Yi wrote:
> On Mon, 2011-11-21 at 10:26 -0800, Greg KH wrote:
> > On Mon, Nov 21, 2011 at 09:20:29AM -0800, Guy, Wey-Yi wrote:
> > > Hi John/Garrett/Greg,
> > >
> > > We test the ASPM patch with the Intel WiFi devices on number of
> > > platforms and the improvement is huge.
> >
> > What "ASPM patch"?
>
> https://lkml.org/lkml/2011/11/11/212
Ok, yet you feel that my statement there is not sufficient right now?
> > > In the "idle associated" mode, the power consumption number for our new
> > > devices down to ~40mW range from over 120mW.
> > >
> > > We will do more testing but I will suggest to apply this patch to the
> > > stable release.
> >
> > What is the git commit id of this patch? Have you read
> > Documentation/stable_kernel_rules.txt for how to properly submit a patch
> > to the stable kernel trees?
You failed to answer this :(
{sigh}
greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: pci: Rework ASPM disable code patch
2011-11-21 20:51 ` Greg KH
@ 2011-11-21 21:15 ` Guy, Wey-Yi
0 siblings, 0 replies; 5+ messages in thread
From: Guy, Wey-Yi @ 2011-11-21 21:15 UTC (permalink / raw)
To: Greg KH
Cc: linville@tuxdriver.com, mjg@redhat.com,
linux-wireless@vger.kernel.org
On Mon, 2011-11-21 at 12:51 -0800, Greg KH wrote:
> On Mon, Nov 21, 2011 at 09:38:33AM -0800, Guy, Wey-Yi wrote:
> > On Mon, 2011-11-21 at 10:26 -0800, Greg KH wrote:
> > > On Mon, Nov 21, 2011 at 09:20:29AM -0800, Guy, Wey-Yi wrote:
> > > > Hi John/Garrett/Greg,
> > > >
> > > > We test the ASPM patch with the Intel WiFi devices on number of
> > > > platforms and the improvement is huge.
> > >
> > > What "ASPM patch"?
> >
> > https://lkml.org/lkml/2011/11/11/212
>
> Ok, yet you feel that my statement there is not sufficient right now?
oh, I am just want to let you know we test this patch and the result is
very good, it make huge improvement with our devices.
>
> > > > In the "idle associated" mode, the power consumption number for our new
> > > > devices down to ~40mW range from over 120mW.
> > > >
> > > > We will do more testing but I will suggest to apply this patch to the
> > > > stable release.
> > >
> > > What is the git commit id of this patch? Have you read
> > > Documentation/stable_kernel_rules.txt for how to properly submit a patch
> > > to the stable kernel trees?
>
> You failed to answer this :(
oh here is the patch already in linux-next tree
commit 7f92c4f7d92a7558ed7eb29fa59e1c98402dc3c2
Author: Matthew Garrett <mjg@redhat.com>
Date: Thu Nov 10 16:38:33 2011 -0500
PCI: Rework ASPM disable code
Right now we forcibly clear ASPM state on all devices if the BIOS
indicates
that the feature isn't supported. Based on the Microsoft
presentation
"PCI Express In Depth for Windows Vista and Beyond", I'm starting to
think
that this may be an error. The implication is that unless the
platform
grants full control via _OSC, Windows will not touch any PCIe
features -
including ASPM. In that case clearing ASPM state would be an error
unless
the platform has granted us that control.
This patch reworks the ASPM disabling code such that the actual
clearing
of state is triggered by a successful handoff of PCIe control to the
OS.
The general ASPM code undergoes some changes in order to ensure that
the
ability to clear the bits isn't overridden by ASPM having already
been
disabled. Further, this theoretically now allows for situations
where
only a subset of PCIe roots hand over control, leaving the others in
the
BIOS state.
It's difficult to know for sure that this is the right thing to do -
there's zero public documentation on the interaction between all of
these
components. But enough vendors enable ASPM on platforms and then set
this
bit that it seems likely that they're expecting the OS to leave them
alone.
Measured to save around 5W on an idle Thinkpad X220.
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Thanks
Wey
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-11-21 22:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-21 17:20 pci: Rework ASPM disable code patch Guy, Wey-Yi
2011-11-21 18:26 ` Greg KH
2011-11-21 17:38 ` Guy, Wey-Yi
2011-11-21 20:51 ` Greg KH
2011-11-21 21:15 ` Guy, Wey-Yi
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).