CHROMIUM: drivers: net: add module param for control of ASPM disable
authorTodd Broch <tbroch@chromium.org>
Sat, 26 May 2012 00:06:31 +0000 (17:06 -0700)
committerOlof Johansson <olof@lixom.net>
Fri, 1 Jun 2012 06:55:40 +0000 (23:55 -0700)
commitd9e5f00a333cbb711d05a2ce44395aed844e2ce0
tree15edd10b72bd2f874fe785a475f46d19c1636b24
parentf0111156ca496760c2511596defb64c2ae51a2c3
CHROMIUM: drivers: net: add module param for control of ASPM  disable

ASPM has been disabled in this driver by default as its been
implicated in stability issues on at least one platform.  This CL adds
a  module parameter to allow control of ASPM disable.  The default
value is disabled to match the current upstream functionality.

BUG=chrome-os-partner:6691
TEST=manual,
1. Test default
- boot kernel on platform w/ r8169
- lspci -vvv -s <device> | grep -i aspm
LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Latency
   L0 unlimited, L1 <64us
LnkCtl:    ASPM L1 Enabled; RCB 64 bytes Disabled- Retrain-
   CommClk+
  - Note, 'ASPM L1 Enabled'

2. Test Disabling ASPM
- echo "options r8169 aspm_disable=1" > /etc/modprobe.d/r8169.conf
- re-boot
- lspci -vvv -s <device> | grep -i aspm
   LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Latency
   L0 unlimited, L1 <64us
LnkCtl:    ASPM Disabled; RCB 64 bytes Disabled- Retrain-
   CommClk+
  - Note, 'ASPM Disabled'

Change-Id: Iae399c08a917fcc7421cb63fb34e9cebca4ab296
Signed-off-by: Todd Broch <tbroch@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/11551
drivers/net/ethernet/realtek/r8169.c