Thread (3 messages) flat view 3 messages, 3 authors, 2011-03-23

Re: [RFC][PATCH]: e1000e: If ASPM L0s needs to be disabled, do it prior to enabling device

From: Jeff Kirsher <hidden>
Date: 2011-03-23 04:08:27

On Tue, Mar 22, 2011 at 12:48, Naga Chumbalkar
[off-list ref] wrote:
If ASPM L0s needs to be disabled due to HW errata, do it prior to
"enabling" the device. This way if the kernel ever defaults its
aspm_policy to POLICY_POWERSAVE, then the e1000e driver will get a
chance to disable ASPM on the misbehaving device *prior* to calling
pci_enable_device_mem(). This will be useful in situations
where the BIOS indicates ASPM support on the server by clearing the
ACPI FADT "ASPM Controls" bit.

Note:
The kernel (2.6.38) currently uses the BIOS "default" as its aspm_policy.
However, Linux distros can diverge from that and set the default to "powersave".

Signed-off-by: Naga Chumbalkar <redacted>
Cc: Bruce Allan <redacted>

---
 drivers/net/e1000e/82571.c  |   10 +++++-----
 drivers/net/e1000e/e1000.h  |    1 +
 drivers/net/e1000e/netdev.c |   25 +++++++++++++++++++++----
 3 files changed, 27 insertions(+), 9 deletions(-)
I have added this patch to my queue of e1000e patches.

-- 
Cheers,
Jeff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help