e1000e: bump up timeout to wait when ME un-configure ULP mode
Subsystems (3)
PATCH 1/1 e1000e: bump up timeout to wait when ME un-configure ULP mode
ME takes 2+ seconds to un-configure ULP mode done after resume from s2idle on some ThinkPad laptops.
Without enough wait, reset and re-init will fail with error.
--- drivers/net/ethernet/intel/e1000e/ich8lan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/intel/e1000e/ich8lan.c +2 -2
@@ -1240,9 +1240,9 @@ static s32 e1000_disable_ulp_lpt_lp(struct e1000_hw *hw, bool force)ew32 (H2ME , mac_reg); } -/* Poll up to 300msec for ME to clear ULP_CFG_DONE. */ +/* Poll up to 2.5sec for ME to clear ULP_CFG_DONE. */ while (er32 (FWSM ) &E1000_FWSM_ULP_CFG_DONE ) { -if (i++ ==30 ) { +if (i++ ==250 ) { ret_val = -E1000_ERR_PHY ; goto out; }
Signature · 1 line
2.17.1
Hi Aaron,
Quoted 5 lines · Aaron Ma
ME takes 2+ seconds to un-configure ULP mode done after resume from s2idle on some ThinkPad laptops.
Without enough wait, reset and re-init will fail with error.
Thanks, this patch solves the issue. We can drop the DMI quirk in favor of this patch.
Quoted 14 lines
Fixes f15bb6dde738cc8fa0 ("e1000e: Add support for S0ix")Signed-off-by Aaron Ma <[email protected]>---
drivers/net/ethernet/intel/e1000e/ich8lan.c| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)drivers/net/ethernet/intel/e1000e/ich8lan.c +0
-0@@ -1240,9 +1240,9 @@ static s32 e1000_disable_ulp_lpt_lp(struct e1000_hw *hw, bool force)ew32 (H2ME , mac_reg);
drivers/net/ethernet/intel/e1000e/ich8lan.c static s32 e1000_disable_ulp_lpt_lp(struct e1000_hw *hw, bool force) · line 1248
Quoted 10 lines
drivers/net/ethernet/intel/e1000e/ich8lan.c +2
-2} -/* Poll up to 300msec for ME to clear ULP_CFG_DONE. */ +/* Poll up to 2.5sec for ME to clear ULP_CFG_DONE. */ while (er32 (FWSM ) &E1000_FWSM_ULP_CFG_DONE ) { -if (i++ ==30 ) { +if (i++ ==250 ) { ret_val = -E1000_ERR_PHY ; goto out; }
The return value was not caught by the caller, so the error ends up unnoticed. Maybe let the caller check the return value of e1000_disable_ulp_lpt_lp()?
Kai-Heng
Quoted 3 lines
Signature · 1 line
2.17.1
Quoted 38 lines · Kai-Heng Feng
Hi Aaron,
Quoted 5 lines · Aaron Ma
ME takes 2+ seconds to un-configure ULP mode done after resume from s2idle on some ThinkPad laptops.
Without enough wait, reset and re-init will fail with error.Thanks, this patch solves the issue. We can drop the DMI quirk in favor of this patch.
Quoted 14 lines
Fixes f15bb6dde738cc8fa0 ("e1000e: Add support for S0ix")Signed-off-by Aaron Ma <[email protected]>---
drivers/net/ethernet/intel/e1000e/ich8lan.c| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)drivers/net/ethernet/intel/e1000e/ich8lan.c +0
-0@@ -1240,9 +1240,9 @@ static s32 e1000_disable_ulp_lpt_lp(struct e1000_hw *hw, bool force)ew32 (H2ME , mac_reg);drivers/net/ethernet/intel/e1000e/ich8lan.c static s32 e1000_disable_ulp_lpt_lp(struct e1000_hw *hw, bool force) · line 1248
Quoted 10 lines
drivers/net/ethernet/intel/e1000e/ich8lan.c +2
-2} -/* Poll up to 300msec for ME to clear ULP_CFG_DONE. */ +/* Poll up to 2.5sec for ME to clear ULP_CFG_DONE. */ while (er32 (FWSM ) &E1000_FWSM_ULP_CFG_DONE ) { -if (i++ ==30 ) { +if (i++ ==250 ) { ret_val = -E1000_ERR_PHY ; goto out; }The return value was not caught by the caller, so the error ends up unnoticed. Maybe let the caller check the return value of
e1000_disable_ulp_lpt_lp()?
Quoted 1 line
Kai-Heng
Hello Kai-Heng and Aaron,
I a bit confused. In our previous conversation you told ME not running. let me shimming in. Increasing delay won't be solve the problem and just mask it. We need to understand why ME take too much time. What is problem with this specific system?
So, basically no ME system should works for you.
Meanwhile I prefer keep DMI quirk.
Thanks,
Sasha
Quoted 5 lines
Quoted 4 lines
Signature · 2 lines
-- 2.17.1
Hi Sasha,
Quoted 37 lines · Sasha
Quoted 23 lines · Kai-Heng Feng
Hi Aaron,
Quoted 5 lines · Aaron Ma
ME takes 2+ seconds to un-configure ULP mode done after resume from s2idle on some ThinkPad laptops.
Without enough wait, reset and re-init will fail with error.Thanks, this patch solves the issue. We can drop the DMI quirk in favor of this patch.
Quoted 16 lines
Fixes f15bb6dde738cc8fa0 ("e1000e: Add support for S0ix")Signed-off-by Aaron Ma <[email protected]>---
drivers/net/ethernet/intel/e1000e/ich8lan.c| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)drivers/net/ethernet/intel/e1000e/ich8lan.c +0
-0@@ -1240,9 +1240,9 @@ static s32 e1000_disable_ulp_lpt_lp(struct e1000_hw *hw, bool force)ew32 (H2ME , mac_reg); }Quoted 11 lines
drivers/net/ethernet/intel/e1000e/ich8lan.c static s32 e1000_disable_ulp_lpt_lp(struct e1000_hw *hw, bool force) · line 1248
Quoted 8 lines
drivers/net/ethernet/intel/e1000e/ich8lan.c +2
-2-/* Poll up to 300msec for ME to clear ULP_CFG_DONE. */ +/* Poll up to 2.5sec for ME to clear ULP_CFG_DONE. */ while (er32 (FWSM ) &E1000_FWSM_ULP_CFG_DONE ) { -if (i++ ==30 ) { +if (i++ ==250 ) { ret_val = -E1000_ERR_PHY ; goto out; }The return value was not caught by the caller, so the error ends up unnoticed. Maybe let the caller check the return value of
e1000_disable_ulp_lpt_lp()? Kai-Heng
Quoted 2 lines
Hello Kai-Heng and Aaron,
I a bit confused. In our previous conversation you told ME not running.
Yes I can confirm Intel AMT is disabled BIOS menu. I think Intel AMT is ME in this context?
How do I check if it's really disabled under Linux?
Kai-Heng
Quoted 8 lines
let me shimming in. Increasing delay won't be solve the problem and just mask it. We need to understand why ME take too much time. What is problem with this specific system? So, basically no ME system should works for you.
Meanwhile I prefer keep DMI quirk.
Thanks,
SashaQuoted 2 lines
Quoted 2 lines
Signature · 1 line
2.17.1
Hello Kai-Heng,
If you are using vPro system, ME LAN driver is always alive and you have no way to disable it until you build new BIOS. Is this also for Lenovo system?
Rex Tsai | Intel Client LAN Engineer | +1 (503) 264-0517
-----Original Message-----
From: Kai-Heng Feng <[email protected]>
Sent: Tuesday, March 24, 2020 11:40 PM
To: Neftin, Sasha <[email protected]>
Cc: Aaron Ma <[email protected]>; Kirsher, Jeffrey T <[email protected]>; David Miller <[email protected]>; moderated list:INTEL ETHERNET DRIVERS <[email protected]>; open list:NETWORKING DRIVERS <[email protected]>; open list <[email protected]>; Lifshits, Vitaly <[email protected]>; Tsai, Rex <[email protected]>
Subject: Re: [PATCH] e1000e: bump up timeout to wait when ME un-configure ULP mode
Hi Sasha,
Quoted 38 lines · Sasha
Quoted 24 lines · Kai-Heng Feng
Hi Aaron,
Quoted 5 lines · Aaron Ma
ME takes 2+ seconds to un-configure ULP mode done after resume from s2idle on some ThinkPad laptops.
Without enough wait, reset and re-init will fail with error.Thanks, this patch solves the issue. We can drop the DMI quirk in favor of this patch.
Quoted 17 lines
Fixes f15bb6dde738cc8fa0 ("e1000e: Add support for S0ix")Signed-off-by Aaron Ma <[email protected]>---
drivers/net/ethernet/intel/e1000e/ich8lan.c| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)drivers/net/ethernet/intel/e1000e/ich8lan.c +0
-0@@ -1240,9 +1240,9 @@ static s32 e1000_disable_ulp_lpt_lp(struct e1000_hw *hw, bool force)ew32 (H2ME , mac_reg); }Quoted 11 lines
drivers/net/ethernet/intel/e1000e/ich8lan.c static s32 e1000_disable_ulp_lpt_lp(struct e1000_hw *hw, bool force) · line 1248
Quoted 8 lines
drivers/net/ethernet/intel/e1000e/ich8lan.c +2
-2-/* Poll up to 300msec for ME to clear ULP_CFG_DONE. */ +/* Poll up to 2.5sec for ME to clear ULP_CFG_DONE. */ while (er32 (FWSM ) &E1000_FWSM_ULP_CFG_DONE ) { -if (i++ ==30 ) { +if (i++ ==250 ) { ret_val = -E1000_ERR_PHY ; goto out; }The return value was not caught by the caller, so the error ends up unnoticed. Maybe let the caller check the return value of
e1000_disable_ulp_lpt_lp()? Kai-Heng
Quoted 2 lines
Hello Kai-Heng and Aaron,
I a bit confused. In our previous conversation you told ME not running.
Yes I can confirm Intel AMT is disabled BIOS menu. I think Intel AMT is ME in this context?
How do I check if it's really disabled under Linux?
Kai-Heng
Quoted 8 lines
let me shimming in. Increasing delay won't be solve the problem and just mask it. We need to understand why ME take too much time. What is problem with this specific system? So, basically no ME system should works for you.
Meanwhile I prefer keep DMI quirk.
Thanks,
SashaQuoted 2 lines
Quoted 2 lines
--
2.17.1
Quoted 2 lines · Rex
Hello Kai-Heng,
If you are using vPro system, ME LAN driver is always alive and you have no way to disable it until you build new BIOS. Is this also for Lenovo system?
Right, some new models from Lenovo.
Regards,
Aaron
Quoted 68 lines
Rex Tsai | Intel Client LAN Engineer | +1 (503) 264-0517
-----Original Message-----
From: Kai-Heng Feng <[email protected]>
Sent: Tuesday, March 24, 2020 11:40 PM
To: Neftin, Sasha <[email protected]>
Cc: Aaron Ma <[email protected]>; Kirsher, Jeffrey T <[email protected]>; David Miller <[email protected]>; moderated list:INTEL ETHERNET DRIVERS <[email protected]>; open list:NETWORKING DRIVERS <[email protected]>; open list <[email protected]>; Lifshits, Vitaly <[email protected]>; Tsai, Rex <[email protected]>
Subject: Re: [PATCH] e1000e: bump up timeout to wait when ME un-configure ULP modeHi Sasha,
Quoted 38 lines · Sasha
Quoted 24 lines · Kai-Heng Feng
Hi Aaron,
Quoted 5 lines · Aaron Ma
ME takes 2+ seconds to un-configure ULP mode done after resume from s2idle on some ThinkPad laptops.
Without enough wait, reset and re-init will fail with error.Thanks, this patch solves the issue. We can drop the DMI quirk in favor of this patch.
Quoted 17 lines
Fixes f15bb6dde738cc8fa0 ("e1000e: Add support for S0ix")Signed-off-by Aaron Ma <[email protected]>---
drivers/net/ethernet/intel/e1000e/ich8lan.c| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)drivers/net/ethernet/intel/e1000e/ich8lan.c +0
-0@@ -1240,9 +1240,9 @@ static s32 e1000_disable_ulp_lpt_lp(struct e1000_hw *hw, bool force)ew32 (H2ME , mac_reg); }Quoted 11 lines
drivers/net/ethernet/intel/e1000e/ich8lan.c static s32 e1000_disable_ulp_lpt_lp(struct e1000_hw *hw, bool force) · line 1248
Quoted 8 lines
drivers/net/ethernet/intel/e1000e/ich8lan.c +2
-2-/* Poll up to 300msec for ME to clear ULP_CFG_DONE. */ +/* Poll up to 2.5sec for ME to clear ULP_CFG_DONE. */ while (er32 (FWSM ) &E1000_FWSM_ULP_CFG_DONE ) { -if (i++ ==30 ) { +if (i++ ==250 ) { ret_val = -E1000_ERR_PHY ; goto out; }The return value was not caught by the caller, so the error ends up unnoticed. Maybe let the caller check the return value of
e1000_disable_ulp_lpt_lp()? Kai-HengQuoted 2 lines
Hello Kai-Heng and Aaron,
I a bit confused. In our previous conversation you told ME not running.Yes I can confirm Intel AMT is disabled BIOS menu. I think Intel AMT is ME in this context?
How do I check if it's really disabled under Linux?
Kai-Heng
Quoted 8 lines
let me shimming in. Increasing delay won't be solve the problem and just mask it. We need to understand why ME take too much time. What is problem with this specific system? So, basically no ME system should works for you.
Meanwhile I prefer keep DMI quirk.
Thanks,
SashaQuoted 2 lines
Quoted 2 lines
--
2.17.1
Quoted 44 lines · Sasha
Quoted 43 lines · Kai-Heng Feng
Hi Aaron,
Quoted 5 lines · Aaron Ma
ME takes 2+ seconds to un-configure ULP mode done after resume from s2idle on some ThinkPad laptops.
Without enough wait, reset and re-init will fail with error.Thanks, this patch solves the issue. We can drop the DMI quirk in favor of this patch.
Quoted 25 lines
Fixes f15bb6dde738cc8fa0 ("e1000e: Add support for S0ix")Signed-off-by Aaron Ma <[email protected]>---
drivers/net/ethernet/intel/e1000e/ich8lan.c| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)drivers/net/ethernet/intel/e1000e/ich8lan.c +2
-2@@ -1240,9 +1240,9 @@ static s32 e1000_disable_ulp_lpt_lp(struct e1000_hw *hw, bool force) ??????????? ew32(H2ME, mac_reg); ??????? } -??????? /* Poll up to 300msec for ME to clear ULP_CFG_DONE. */ +??????? /* Poll up to 2.5sec for ME to clear ULP_CFG_DONE. */ ??????? while (er32(FWSM) & E1000_FWSM_ULP_CFG_DONE) { -??????????? if (i++ == 30) { +??????????? if (i++ == 250) { ??????????????? ret_val = -E1000_ERR_PHY; ??????????????? goto out;Quoted 1 line
??????????? }
The return value was not caught by the caller, so the error ends up unnoticed.
Maybe let the caller check the return value ofe1000_disable_ulp_lpt_lp()?
Quoted 7 lines
Quoted 1 line
Kai-Heng
Hello Kai-Heng and Aaron,
I a bit confused. In our previous conversation you told ME not running. let me shimming in. Increasing delay won't be solve the problem and just mask it. We need to understand why ME take too much time. What is problem with this specific system?
So, basically no ME system should works for you.
Some laptops ME work that's why only reproduce issue on some laptops. In this issue i219 is controlled by ME.
Quirk is only for 1 model type. But issue is reproduced by more models. So it won't work.
Regard,
Aaron
Quoted 10 lines
Meanwhile I prefer keep DMI quirk.
Thanks,
SashaQuoted 5 lines
Quoted 4 lines
--?
2.17.1
Quoted 55 lines · Aaron Ma
Quoted 44 lines · Sasha
Quoted 43 lines · Kai-Heng Feng
Hi Aaron,
Quoted 5 lines · Aaron Ma
ME takes 2+ seconds to un-configure ULP mode done after resume from s2idle on some ThinkPad laptops.
Without enough wait, reset and re-init will fail with error.Thanks, this patch solves the issue. We can drop the DMI quirk in favor of this patch.
Quoted 25 lines
Fixes f15bb6dde738cc8fa0 ("e1000e: Add support for S0ix")Signed-off-by Aaron Ma <[email protected]>---
drivers/net/ethernet/intel/e1000e/ich8lan.c| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)drivers/net/ethernet/intel/e1000e/ich8lan.c +2
-2@@ -1240,9 +1240,9 @@ static s32 e1000_disable_ulp_lpt_lp(struct e1000_hw *hw, bool force) ??????????? ew32(H2ME, mac_reg); ??????? } -??????? /* Poll up to 300msec for ME to clear ULP_CFG_DONE. */ +??????? /* Poll up to 2.5sec for ME to clear ULP_CFG_DONE. */ ??????? while (er32(FWSM) & E1000_FWSM_ULP_CFG_DONE) { -??????????? if (i++ == 30) { +??????????? if (i++ == 250) { ??????????????? ret_val = -E1000_ERR_PHY; ??????????????? goto out;Quoted 1 line
??????????? }
The return value was not caught by the caller, so the error ends up unnoticed.
Maybe let the caller check the return value ofe1000_disable_ulp_lpt_lp()?Quoted 7 lines
Quoted 1 line
Kai-Heng
Hello Kai-Heng and Aaron,
I a bit confused. In our previous conversation you told ME not running. let me shimming in. Increasing delay won't be solve the problem and just mask it. We need to understand why ME take too much time. What is problem with this specific system?
So, basically no ME system should works for you.
Quoted 3 lines
Some laptops ME work that's why only reproduce issue on some laptops. In this issue i219 is controlled by ME.
Who can explain - why ME required too much time on this system? Probably need work with ME/BIOS vendor and understand it. Delay will just mask the real problem - we need to find root cause.
Quoted 16 lines
Quirk is only for 1 model type. But issue is reproduced by more models. So it won't work.
Regard,
AaronQuoted 10 lines
Meanwhile I prefer keep DMI quirk.
Thanks,
SashaQuoted 5 lines
Quoted 4 lines
Signature · 2 lines
-- 2.17.1
Quoted 56 lines · Sasha
Quoted 55 lines · Aaron Ma
Quoted 51 lines · Sasha
Quoted 43 lines · Kai-Heng Feng
Hi Aaron,
Quoted 5 lines · Aaron Ma
ME takes 2+ seconds to un-configure ULP mode done after resume from s2idle on some ThinkPad laptops.
Without enough wait, reset and re-init will fail with error.Thanks, this patch solves the issue. We can drop the DMI quirk in favor of this patch.
Quoted 25 lines
Fixes f15bb6dde738cc8fa0 ("e1000e: Add support for S0ix")Signed-off-by Aaron Ma <[email protected]>---
drivers/net/ethernet/intel/e1000e/ich8lan.c| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)drivers/net/ethernet/intel/e1000e/ich8lan.c +2
-2@@ -1240,9 +1240,9 @@ static s32 e1000_disable_ulp_lpt_lp(struct e1000_hw *hw, bool force) ???????????? ew32(H2ME, mac_reg); ???????? } -??????? /* Poll up to 300msec for ME to clear ULP_CFG_DONE. */ +??????? /* Poll up to 2.5sec for ME to clear ULP_CFG_DONE. */ ???????? while (er32(FWSM) & E1000_FWSM_ULP_CFG_DONE) { -??????????? if (i++ == 30) { +??????????? if (i++ == 250) { ???????????????? ret_val = -E1000_ERR_PHY; ???????????????? goto out;Quoted 1 line
???????????? }
The return value was not caught by the caller, so the error ends up unnoticed.
Maybe let the caller check the return value ofe1000_disable_ulp_lpt_lp()?Quoted 1 line
Kai-Heng
Hello Kai-Heng and Aaron,
I a bit confused. In our previous conversation you told ME not running. let me shimming in. Increasing delay won't be solve the problem and just mask it. We need to understand why ME take too much time. What is problem with this specific system?
So, basically no ME system should works for you.
Quoted 6 lines
Quoted 3 lines
Some laptops ME work that's why only reproduce issue on some laptops. In this issue i219 is controlled by ME.
Who can explain - why ME required too much time on this system? Probably need work with ME/BIOS vendor and understand it. Delay will just mask the real problem - we need to find root cause.
IMHO, it should be ME check the link status when link disconnected, that's why Poll up to 5 seconds for Cable Disconnected indication when enable ULP.
The reason is same for both disable/enable ULP mode.
I agree to ask ME to check it too.
Regards,
Aaron
Quoted 17 lines
Quoted 16 lines
Quirk is only for 1 model type. But issue is reproduced by more models. So it won't work.
Regard,
AaronQuoted 10 lines
Meanwhile I prefer keep DMI quirk.
Thanks,
SashaQuoted 5 lines
Quoted 4 lines
--?
2.17.1
Dear Linux folks,
Am 25.03.20 um 14:58 schrieb Neftin, Sasha:
Quoted 51 lines · Aaron Ma
Quoted 50 lines · Sasha
Quoted 47 lines · Kai-Heng Feng
Quoted 27 lines
Quoted 6 lines · Aaron Ma
ME takes 2+ seconds to un-configure ULP mode done after resume from s2idle on some ThinkPad laptops.
Without enough wait, reset and re-init will fail with error.Thanks, this patch solves the issue. We can drop the DMI quirk in favor of this patch.
Quoted 17 lines
Fixes f15bb6dde738cc8fa0 ("e1000e: Add support for S0ix")Signed-off-by Aaron Ma <[email protected]>---
drivers/net/ethernet/intel/e1000e/ich8lan.c| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)drivers/net/ethernet/intel/e1000e/ich8lan.c +0
-0@@ -1240,9 +1240,9 @@ static s32 e1000_disable_ulp_lpt_lp(struct e1000_hw *hw, bool force) ???????????? ew32(H2ME, mac_reg); ???????? }Quoted 13 lines
Quoted 8 lines
drivers/net/ethernet/intel/e1000e/ich8lan.c +2
-2-??????? /* Poll up to 300msec for ME to clear ULP_CFG_DONE. */ +??????? /* Poll up to 2.5sec for ME to clear ULP_CFG_DONE. */ ???????? while (er32(FWSM) & E1000_FWSM_ULP_CFG_DONE) { -??????????? if (i++ == 30) { +??????????? if (i++ == 250) { ???????????????? ret_val = -E1000_ERR_PHY; ???????????????? goto out;???????????? }
The return value was not caught by the caller, so the error ends up unnoticed.
Maybe let the caller check the return value ofe1000_disable_ulp_lpt_lp()?I a bit confused. In our previous conversation you told ME not running. let me shimming in. Increasing delay won't be solve the problem and just mask it. We need to understand why ME take too much time. What is problem with this specific system?
So, basically no ME system should works for you.
Quoted 8 lines
Quoted 2 lines
Some laptops ME work that's why only reproduce issue on some laptops. In this issue i219 is controlled by ME.
Who can explain - why ME required too much time on this system? Probably need work with ME/BIOS vendor and understand it. Delay will just mask the real problem - we need to find root cause.
Quoted 2 lines
Quirk is only for 1 model type. But issue is reproduced by more models. So it won't work.
(Where is Aaron?s reply? It wasn?t delivered to me yet.)
As this is clearly a regression, please revert the commit for now, and then find a way to correctly implement S0ix support. Linux? regression policy demands that as no fix has been found since v5.5-rc1. Changing Intel ME settings, even if it would work around the issue, is not an acceptable solution. Delaying the resume time is also not a solution.
Regarding Intel Management Engine, only Intel knows what it does and what the error is, as the ME firmware is proprietary and closed.
Lastly, there is no way to fully disable the Intel Management Engine. The HAP stuff claims to stop the Intel ME execution, but nobody knows, if it?s successful.
Aaron, Kai-Hang, can you send the revert?
Kind regards,
Paul
Hi Paul,
Quoted 63 lines · Paul Menzel
Dear Linux folks,
Am 25.03.20 um 14:58 schrieb Neftin, Sasha:
Quoted 57 lines · Aaron Ma
Quoted 44 lines · Sasha
Quoted 41 lines · Kai-Heng Feng
Quoted 40 lines
Quoted 6 lines · Aaron Ma
ME takes 2+ seconds to un-configure ULP mode done after resume from s2idle on some ThinkPad laptops.
Without enough wait, reset and re-init will fail with error.Thanks, this patch solves the issue. We can drop the DMI quirk in favor of this patch.
Quoted 24 lines
Fixes f15bb6dde738cc8fa0 ("e1000e: Add support for S0ix")Signed-off-by Aaron Ma <[email protected]>---
drivers/net/ethernet/intel/e1000e/ich8lan.c| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)drivers/net/ethernet/intel/e1000e/ich8lan.c +2
-2@@ -1240,9 +1240,9 @@ static s32 e1000_disable_ulp_lpt_lp(struct e1000_hw *hw, bool force)ew32 (H2ME ,mac_reg ); } -/* Poll up to 300msec for ME to clear ULP_CFG_DONE. */ +/* Poll up to 2.5sec for ME to clear ULP_CFG_DONE. */ while (er32 (FWSM ) &E1000_FWSM_ULP_CFG_DONE ) { -if (i++ ==30 ) { +if (i++ ==250 ) { ret_val = -E1000_ERR_PHY ; goto out;Quoted 1 line
}The return value was not caught by the caller, so the error ends up unnoticed.
Maybe let the caller check the return value ofe1000_disable_ulp_lpt_lp()?Quoted 8 lines
Quoted 5 lines
I a bit confused. In our previous conversation you told ME not running. let me shimming in. Increasing delay won't be solve the problem and just mask it. We need to understand why ME take too much time. What is problem with this specific system?
So, basically no ME system should works for you.Some laptops ME work that's why only reproduce issue on some laptops. In this issue i219 is controlled by ME.
Who can explain - why ME required too much time on this system? Probably need work with ME/BIOS vendor and understand it. Delay will just mask the real problem - we need to find root cause.
Quoted 6 lines
Quoted 2 lines
Quoted 2 lines
Quirk is only for 1 model type. But issue is reproduced by more models. So it won't work.
(Where is Aaron?s reply? It wasn?t delivered to me yet.)
As this is clearly a regression, please revert the commit for now, and then find a way to correctly implement S0ix support. Linux? regression policy demands that as no fix has been found since v5.5-rc1. Changing Intel ME settings, even if it would work around the issue, is not an acceptable solution. Delaying the resume time is also not a solution.
The s0ix patch can reduce power consumption, finally makes S2idle an acceptable sleep method. So I'd say it's a fix, albeit a regression was introduced.
Quoted 6 lines
Regarding Intel Management Engine, only Intel knows what it does and what the error is, as the ME firmware is proprietary and closed.
Lastly, there is no way to fully disable the Intel Management Engine. The HAP stuff claims to stop the Intel ME execution, but nobody knows, if it?s successful.
Aaron, Kai-Hang, can you send the revert?
I consider that as an important fix for s2idle, I don't think reverting is appropriate.
Kai-Heng
Quoted 7 lines
Kind regards,
Paul
Dear Kai-Heng,
Am 26.03.20 um 12:29 schrieb Kai-Heng Feng:
Quoted 80 lines
Quoted 63 lines · Paul Menzel
Am 25.03.20 um 14:58 schrieb Neftin, Sasha:
Quoted 51 lines · Aaron Ma
Quoted 50 lines · Sasha
Quoted 47 lines · Kai-Heng Feng
Quoted 27 lines
Quoted 6 lines · Aaron Ma
ME takes 2+ seconds to un-configure ULP mode done after resume from s2idle on some ThinkPad laptops.
Without enough wait, reset and re-init will fail with error.Thanks, this patch solves the issue. We can drop the DMI quirk in favor of this patch.
Quoted 17 lines
Fixes f15bb6dde738cc8fa0 ("e1000e: Add support for S0ix")Signed-off-by Aaron Ma <[email protected]>---
drivers/net/ethernet/intel/e1000e/ich8lan.c| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)drivers/net/ethernet/intel/e1000e/ich8lan.c +0
-0@@ -1240,9 +1240,9 @@ static s32 e1000_disable_ulp_lpt_lp(struct e1000_hw *hw, bool force)ew32 (H2ME ,mac_reg ); }Quoted 13 lines
Quoted 8 lines
drivers/net/ethernet/intel/e1000e/ich8lan.c +2
-2-/* Poll up to 300msec for ME to clear ULP_CFG_DONE. */ +/* Poll up to 2.5sec for ME to clear ULP_CFG_DONE. */ while (er32 (FWSM ) &E1000_FWSM_ULP_CFG_DONE ) { -if (i++ ==30 ) { +if (i++ ==250 ) { ret_val = -E1000_ERR_PHY ; goto out;}The return value was not caught by the caller, so the error ends up unnoticed.
Maybe let the caller check the return value ofe1000_disable_ulp_lpt_lp()?I a bit confused. In our previous conversation you told ME not running. let me shimming in. Increasing delay won't be solve the problem and just mask it. We need to understand why ME take too much time. What is problem with this specific system?
So, basically no ME system should works for you.Quoted 8 lines
Quoted 2 lines
Some laptops ME work that's why only reproduce issue on some laptops. In this issue i219 is controlled by ME.
Who can explain - why ME required too much time on this system? Probably need work with ME/BIOS vendor and understand it. Delay will just mask the real problem - we need to find root cause.
Quoted 2 lines
Quirk is only for 1 model type. But issue is reproduced by more models. So it won't work.
Quoted 8 lines
(Where is Aaron?s reply? It wasn?t delivered to me yet.)
As this is clearly a regression, please revert the commit for now, and then find a way to correctly implement S0ix support. Linux? regression policy demands that as no fix has been found since v5.5-rc1. Changing Intel ME settings, even if it would work around the issue, is not an acceptable solution. Delaying the resume time is also not a solution.
The s0ix patch can reduce power consumption, finally makes S2idle an acceptable sleep method. So I'd say it's a fix, albeit a regression was introduced.
Quoted 4 lines
Regarding Intel Management Engine, only Intel knows what it does and what the error is, as the ME firmware is proprietary and closed.
Quoted 8 lines
Quoted 5 lines
Lastly, there is no way to fully disable the Intel Management Engine. The HAP stuff claims to stop the Intel ME execution, but nobody knows, if it?s successful.
Aaron, Kai-Hang, can you send the revert?
I consider that as an important fix for s2idle, I don't think reverting is appropriate.
If there is a fix with no other regression, I agree. But there has not been one, so please revert. It doesn?t matter if the commit introducing the regression fixes something else. It gets too complicated to decide, which regression is worth it or not. The Linux kernel guarantees its users, they can update any time without breaking user space (in this case suspend/resume). Please read Linus? several messages about that. His message [1] exactly addresses your arguments.
Quoted 11 lines
Yeah, HELL NO!
Guess what? You're wrong. YOU ARE MISSING THE #1 KERNEL RULE.
We do not regress, and we do not regress exactly because your are 100% wrong.
And the reason you state for your opinion is in fact exactly *WHY* you are wrong.
Your "good reasons" are pure and utter garbage.
Quoted 8 lines
The whole point of "we do not regress" is so that people can upgrade the kernel and never have to worry about it.
Quoted 1 line
Kernel had a bug which has been fixed
That is *ENTIRELY* immaterial.
Guys, whether something was buggy or not DOES NOT MATTER.
So, please (also Intel developers), please adhere to this rule, and revert the commit.
Kind regards,
Paul
Neftin
PATCH 1/1 e1000e: bump up timeout to wait when ME un-configure ULP mode
Quoted 97 lines · Paul Menzel
Dear Kai-Heng,
Am 26.03.20 um 12:29 schrieb Kai-Heng Feng:
Quoted 83 lines
Quoted 66 lines · Paul Menzel
Am 25.03.20 um 14:58 schrieb Neftin, Sasha:
Quoted 53 lines · Aaron Ma
Quoted 52 lines · Sasha
Quoted 49 lines · Kai-Heng Feng
Quoted 27 lines
Quoted 6 lines · Aaron Ma
ME takes 2+ seconds to un-configure ULP mode done after resume from s2idle on some ThinkPad laptops.
Without enough wait, reset and re-init will fail with error.Thanks, this patch solves the issue. We can drop the DMI quirk in favor of this patch.
Quoted 17 lines
Fixes f15bb6dde738cc8fa0 ("e1000e: Add support for S0ix")Signed-off-by Aaron Ma <[email protected]>---
drivers/net/ethernet/intel/e1000e/ich8lan.c| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)drivers/net/ethernet/intel/e1000e/ich8lan.c +0
-0@@ -1240,9 +1240,9 @@ static s32 e1000_disable_ulp_lpt_lp(struct e1000_hw *hw, bool force) ????????????? ew32(H2ME, mac_reg); ????????? }Quoted 13 lines
Quoted 8 lines
drivers/net/ethernet/intel/e1000e/ich8lan.c +2
-2-??????? /* Poll up to 300msec for ME to clear ULP_CFG_DONE. */ +??????? /* Poll up to 2.5sec for ME to clear ULP_CFG_DONE. */ ????????? while (er32(FWSM) & E1000_FWSM_ULP_CFG_DONE) { -??????????? if (i++ == 30) { +??????????? if (i++ == 250) { ????????????????? ret_val = -E1000_ERR_PHY; ????????????????? goto out;????????????? }
The return value was not caught by the caller, so the error ends up unnoticed.
Maybe let the caller check the return value ofe1000_disable_ulp_lpt_lp()?I a bit confused. In our previous conversation you told ME not running.
let me shimming in. Increasing delay won't be solve the problem and just
mask it. We need to understand why ME take too much time. What is problem with this specific system?
So, basically no ME system should works for you.Quoted 9 lines
Quoted 2 lines
Some laptops ME work that's why only reproduce issue on some laptops. In this issue i219 is controlled by ME.
Who can explain - why ME required too much time on this system? Probably need work with ME/BIOS vendor and understand it. Delay will just mask the real problem - we need to find root cause.
Quoted 3 lines
Quirk is only for 1 model type. But issue is reproduced by more models.
So it won't work.Quoted 8 lines
(Where is Aaron?s reply? It wasn?t delivered to me yet.)
As this is clearly a regression, please revert the commit for now, and then find a way to correctly implement S0ix support. Linux? regression policy demands that as no fix has been found since v5.5-rc1. Changing Intel ME settings, even if it would work around the issue, is not an acceptable solution. Delaying the resume time is also not a solution.
The s0ix patch can reduce power consumption, finally makes S2idle an acceptable sleep method. So I'd say it's a fix, albeit a regression was introduced.
Quoted 4 lines
Regarding Intel Management Engine, only Intel knows what it does and what the error is, as the ME firmware is proprietary and closed.
Quoted 8 lines
Quoted 5 lines
Lastly, there is no way to fully disable the Intel Management Engine. The HAP stuff claims to stop the Intel ME execution, but nobody knows, if it?s successful.
Aaron, Kai-Hang, can you send the revert?
I consider that as an important fix for s2idle, I don't think reverting is appropriate.
Quoted 8 lines
If there is a fix with no other regression, I agree. But there has not been one, so please revert. It doesn?t matter if the commit introducing the regression fixes something else. It gets too complicated to decide, which regression is worth it or not. The Linux kernel guarantees its users, they can update any time without breaking user space (in this case suspend/resume).? Please read Linus? several messages about that. His message [1] exactly addresses your arguments.
Revert is no option. S0ix supported on none ME system, approved by Intel design team and power management domain owner.
Vendor should provide none ME BIOS I thought. Our PAE will work toward meet this.
Quoted 35 lines
Quoted 12 lines
Yeah, HELL NO!
Guess what? You're wrong. YOU ARE MISSING THE #1 KERNEL RULE.
We do not regress, and we do not regress exactly because your are 100% wrong.
And the reason you state for your opinion is in fact exactly *WHY* you are wrong.
Your "good reasons" are pure and utter garbage.
Quoted 8 lines
The whole point of "we do not regress" is so that people can upgrade the kernel and never have to worry about it.
Quoted 1 line
Kernel had a bug which has been fixed
That is *ENTIRELY* immaterial.
Guys, whether something was buggy or not DOES NOT MATTER.
So, please (also Intel developers), please adhere to this rule, and revert the commit.
Kind regards,
Paul
[1]: https://lkml.org/lkml/2018/8/3/621
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan at osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
PATCH 1/1 e1000e: bump up timeout to wait when ME un-configure ULP mode
Dear Jeff, dear David,
Could you please comment as maintainers?
Am 26.03.20 um 15:34 schrieb Neftin, Sasha:
Quoted 105 lines · Paul Menzel
Quoted 96 lines
Am 26.03.20 um 12:29 schrieb Kai-Heng Feng:
Quoted 84 lines
Quoted 67 lines · Paul Menzel
Am 25.03.20 um 14:58 schrieb Neftin, Sasha:
Quoted 54 lines · Aaron Ma
Quoted 53 lines · Sasha
Quoted 50 lines · Kai-Heng Feng
Quoted 28 lines
Quoted 7 lines
On Mar 24, 2020, at 03:16, Aaron Ma <[email protected]> wrote:
ME takes 2+ seconds to un-configure ULP mode done after resume from s2idle on some ThinkPad laptops.
Without enough wait, reset and re-init will fail with error.Thanks, this patch solves the issue. We can drop the DMI quirk in favor of this patch.
Quoted 17 lines
Fixes f15bb6dde738cc8fa0 ("e1000e: Add support for S0ix")Signed-off-by Aaron Ma <[email protected]>---
drivers/net/ethernet/intel/e1000e/ich8lan.c| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)drivers/net/ethernet/intel/e1000e/ich8lan.c +0
-0@@ -1240,9 +1240,9 @@ static s32 e1000_disable_ulp_lpt_lp(struct e1000_hw *hw, bool force) ????????????? ew32(H2ME, mac_reg); ????????? }Quoted 13 lines
Quoted 8 lines
drivers/net/ethernet/intel/e1000e/ich8lan.c +2
-2-??????? /* Poll up to 300msec for ME to clear ULP_CFG_DONE. */ +??????? /* Poll up to 2.5sec for ME to clear ULP_CFG_DONE. */ ????????? while (er32(FWSM) & E1000_FWSM_ULP_CFG_DONE) { -??????????? if (i++ == 30) { +??????????? if (i++ == 250) { ????????????????? ret_val = -E1000_ERR_PHY; ????????????????? goto out;????????????? }
The return value was not caught by the caller, so the error ends up unnoticed.
Maybe let the caller check the return value ofe1000_disable_ulp_lpt_lp()?I a bit confused. In our previous conversation you told ME not running.
let me shimming in. Increasing delay won't be solve the problem and just
mask it. We need to understand why ME take too much time. What is problem with this specific system?
So, basically no ME system should works for you.Quoted 9 lines
Quoted 2 lines
Some laptops ME work that's why only reproduce issue on some laptops. In this issue i219 is controlled by ME.
Who can explain - why ME required too much time on this system? Probably need work with ME/BIOS vendor and understand it. Delay will just mask the real problem - we need to find root cause.
Quoted 3 lines
Quirk is only for 1 model type. But issue is reproduced by more models.
So it won't work.Quoted 8 lines
(Where is Aaron?s reply? It wasn?t delivered to me yet.)
As this is clearly a regression, please revert the commit for now, and then find a way to correctly implement S0ix support. Linux? regression policy demands that as no fix has been found since v5.5-rc1. Changing Intel ME settings, even if it would work around the issue, is not an acceptable solution. Delaying the resume time is also not a solution.
The s0ix patch can reduce power consumption, finally makes S2idle an acceptable sleep method. So I'd say it's a fix, albeit a regression was introduced.
Quoted 4 lines
Regarding Intel Management Engine, only Intel knows what it does and what the error is, as the ME firmware is proprietary and closed.
Quoted 8 lines
Quoted 5 lines
Lastly, there is no way to fully disable the Intel Management Engine. The HAP stuff claims to stop the Intel ME execution, but nobody knows, if it?s successful.
Aaron, Kai-Hang, can you send the revert?
I consider that as an important fix for s2idle, I don't think reverting is appropriate.
Quoted 8 lines
If there is a fix with no other regression, I agree. But there has not been one, so please revert. It doesn?t matter if the commit introducing the regression fixes something else. It gets too complicated to decide, which regression is worth it or not. The Linux kernel guarantees its users, they can update any time without breaking user space (in this case suspend/resume).? Please read Linus? several messages about that. His message [1] exactly addresses your arguments.
Quoted 4 lines
Revert is no option. S0ix supported on none ME system, approved by Intel design team and power management domain owner.
Vendor should provide none ME BIOS I thought. Our PAE will work toward meet this.
Did you read Linus? messages? It doesn?t matter.
Requiring people to change system firmware settings is a no-go.
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Yeah, HELL NO!
Guess what? You're wrong. YOU ARE MISSING THE #1 KERNEL RULE.
We do not regress, and we do not regress exactly because your are 100% wrong.
And the reason you state for your opinion is in fact exactly *WHY* you are wrong.
Your "good reasons" are pure and utter garbage.
The whole point of "we do not regress" is so that people can upgrade the kernel and never have to worry about it.
Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Kernel had a bug which has been fixed
That is *ENTIRELY* immaterial.
Guys, whether something was buggy or not DOES NOT MATTER.
So, please (also Intel developers), please adhere to this rule, and revert the commit.
Kind regards,
Paul
Quoted 1 line
Quoted 1 line
From: Kai-Heng Feng
Quoted 1 line
Sent: 26 March 2020 11:30
...
Quoted 6 lines
Quoted 1 line
Regarding Intel Management Engine, only Intel knows what it does and what the error is, as the ME
firmware is proprietary and closed.
Quoted 4 lines
Lastly, there is no way to fully disable the Intel Management Engine. The HAP stuff claims to stop
the Intel ME execution, but nobody knows, if it?s successful.
This isn't the only 'bug' caused by the ME logic.
Some systems occasionally spin for many multiples of 50us on any write to any MAC register - eg to indicate there is a packet to tx.
I really don't understand WTF this ME is playing at on an unmanaged desktop system - if it receives or sends a packet it is most likely to be some kind of security attack.
I'm not even sure it needs access during the boot sequence. Maybe there are some features to get the console output over ethernet - but they have to be enabled in the BIOS.
We have some small server boards (for 1U systems) that have a separate ethernet interface for (I think) the ME code. Better - except you plug a cable in and wonder why is doesn't work.
David
-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)
Hi,
Quoted 7 lines · Aaron Ma
ME takes 2+ seconds to un-configure ULP mode done after resume from s2idle on some ThinkPad laptops.
Without enough wait, reset and re-init will fail with error.Fixes f15bb6dde738cc8fa0 ("e1000e: Add support for S0ix")Signed-off-by Aaron Ma <[email protected]>
I have been testing this bug because this is being reported against Fedora 32 too:
https://bugzilla.redhat.com/show_bug.cgi?id=1816621
I can confirm that this patch fixes the problem of both a X1 7th gen as a X1 8th gen no longer suspending after a suspend resume cycle.
Not only does it fix that, before this patch the kernel would regularly log the following error on these laptops independent of suspend/resume activity:
e1000e 0000:00:1f.6 enp0s31f6: Hardware Error
These messages are now also gone. So it seems that the timeout is really just too short.
I can agree that it would be good to better understand this; and/or to get the ME firmware fixed to not take so long.
But in my experience when dealing with e.g. embedded-controller in various laptops sometimes the firmware of these devives simply just takes a long time for certain things.
This fix fixes a real problem, on a popular model laptop and since it just extends a timeout it is a pretty harmless (no chance of regressions) fix. As such since there seems to be no other solution in sight, can we please move forward with this fix for now ?
Regards,
Hans
Quoted 21 lines
--- drivers/net/ethernet/intel/e1000e/ich8lan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/net/ethernet/intel/e1000e/ich8lan.c +2
-2@@ -1240,9 +1240,9 @@ static s32 e1000_disable_ulp_lpt_lp(struct e1000_hw *hw, bool force)ew32 (H2ME , mac_reg); } -/* Poll up to 300msec for ME to clear ULP_CFG_DONE. */ +/* Poll up to 2.5sec for ME to clear ULP_CFG_DONE. */ while (er32 (FWSM ) &E1000_FWSM_ULP_CFG_DONE ) { -if (i++ ==30 ) { +if (i++ ==250 ) { ret_val = -E1000_ERR_PHY ; goto out; }
Hi Jeffrey:
I have received the email that you apply this patch to next-queue branch dev-queue.
But after this branch is rebased to v5.6, I can't find it.
Will you apply again?
Thanks,
Aaron
Quoted 6 lines · Hans de Goede
This fix fixes a real problem, on a popular model laptop and since it just extends a timeout it is a pretty harmless (no chance of regressions) fix. As such since there seems to be no other solution in sight, can we please move forward with this fix for now ?
Dear Linux folks,
Am 03.04.20 um 05:15 schrieb Aaron Ma:
Quoted 6 lines
I have received the email that you apply this patch to next-queue branch dev-queue.
But after this branch is rebased to v5.6, I can't find it.
Will you apply again?
I really urge you to write more elaborate commit messages.
The exact error is not listed. The known regressed devices are not listed, so possible testers cannot easily test or affected people cannot find it, when searching the Linux git history.
How did you find out, that ME takes more than two seconds?
Also, it?s not clear, what effect increasing the timeout has. Does the whole resume process take longer or just getting the Ethernet device back up?
Lastly, in case of the timeout, an error message should be printed, so people with even more broken ME devices, get a clue.
Without this information, how can anybody know, if this is the right fix and distributions, if it should be backported?
Kind regards,
Paul
Quoted 8 lines · Aaron Ma
Hi Jeffrey:
I have received the email that you apply this patch to next-queue branch dev-queue.
But after this branch is rebased to v5.6, I can't find it.
Will you apply again?
Aaron, Kai,
S0ix flow supported only on none ME system. Our PAE works to communicate this to OS vendors. You should get BIOS option to disable ME on your system. This fix just will mask real problem on specific system - won't be solve the problem. I suggest recall this patch and Lenovo Carbon in DMI black list.
Quoted 11 lines
Thanks,
AaronQuoted 6 lines · Hans de Goede
This fix fixes a real problem, on a popular model laptop and since it just extends a timeout it is a pretty harmless (no chance of regressions) fix. As such since there seems to be no other solution in sight, can we please move forward with this fix for now ?
Thanks,
Sasha