]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
e1000e: bump up timeout to wait when ME un-configures ULP mode
authorMario Limonciello <mario.limonciello@dell.com>
Mon, 14 Dec 2020 19:29:33 +0000 (13:29 -0600)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 23 Dec 2020 23:18:33 +0000 (15:18 -0800)
commit3cf31b1a9effd859bb3d6ff9f8b5b0d5e6cac952
tree9ba8c9f0ab103b8ef901a188be68ce344904fef4
parent808e0d8832cc81738f3e8df12dff0688352baf50
e1000e: bump up timeout to wait when ME un-configures ULP mode

Per guidance from Intel ethernet architecture team, it may take
up to 1 second for unconfiguring ULP mode.

However in practice this seems to be taking up to 2 seconds on
some Lenovo machines.  Detect scenarios that take more than 1 second
but less than 2.5 seconds and emit a warning on resume for those
scenarios.

Suggested-by: Aaron Ma <aaron.ma@canonical.com>
Suggested-by: Sasha Netfin <sasha.neftin@intel.com>
Suggested-by: Hans de Goede <hdegoede@redhat.com>
CC: Mark Pearson <markpearson@lenovo.com>
Fixes: f15bb6dde738cc8fa0 ("e1000e: Add support for S0ix")
BugLink: https://bugs.launchpad.net/bugs/1865570
Link: https://patchwork.ozlabs.org/project/intel-wired-lan/patch/20200323191639.48826-1-aaron.ma@canonical.com/
Link: https://lkml.org/lkml/2020/12/13/15
Link: https://lkml.org/lkml/2020/12/14/708
Signed-off-by: Mario Limonciello <mario.limonciello@dell.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Yijun Shen <Yijun.shen@dell.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/e1000e/ich8lan.c