Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp747201ybb; Wed, 25 Mar 2020 08:50:45 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuNw/3g18vyj9BV4yuqJQ2q+gX1Ej5aVp8bU9pOBfF+bxJ+oaN/BXQVKZ8Mz/Xc8obG8cqK X-Received: by 2002:aca:50d0:: with SMTP id e199mr2961288oib.133.1585151445470; Wed, 25 Mar 2020 08:50:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585151445; cv=none; d=google.com; s=arc-20160816; b=Of7gSx5tZhnWdlOQW+D147qMDSGP8mS95XX1hrADNpLIuf4V30KjAOSo1rG5AtQ3Z1 zloYIW0WC42c6BjeUcDK/cydq37lzdskt5Wo9lZRERCDf7AnBKq6iPhsD8xdTe3Tf1e3 SbPyT5RtR0i2R4fDEms/Bzs29VxZsJ+V7JJ93y414xO28ZguXIcZam/KaES5kPTT948y 4z2QrJrLAaVkjfS1R4GQ2/8Osk95JuskMCFrbvmt+tGCQ6Ba5QGYj+wcNqd5BsXzw9NN fEju/hFjRJbX71dM2WItdOUXaRBi7VCu2DoeeN4v3jyX7ghCyQQkhPxeU63bvzUDn5uG xMEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Lc8jdvtP/U10/NU7F7riLW2IOIUddq8xXk9mNtotb74=; b=RkQCr80h5y8wgscX+5Xj9oj6sjsp+9lyqnYiko/dvfvvSnUlf3m6/rkYcrFvADYNsJ 9Swm9osWR4SFuUSyD326JV1OCZMNFNoILIsrgrrCy+uvimY6xDDOGfNWteiRcwXmRntQ IcFxC3Y05+mkSGw2plfV9Fbush/tOs7ng8xog8YHQGg4kU+Evwp0GvCoiwngE+roA+hw Yk/dOKhBDzvHrflapVN49W80USZCEXkS4fo/FZz4n028Jg0ptrMrnk08ytGBEiOaksPH dJ11izNmuKNf50Mcg27cwdr1kw5PDSygifd6y6ZHcQGlcOPYddhI40N5/5OaCaGnQUsV 75NA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d62si10900104oib.137.2020.03.25.08.50.32; Wed, 25 Mar 2020 08:50:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728114AbgCYPtM (ORCPT + 99 others); Wed, 25 Mar 2020 11:49:12 -0400 Received: from mx3.molgen.mpg.de ([141.14.17.11]:36069 "EHLO mx1.molgen.mpg.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727840AbgCYPtJ (ORCPT ); Wed, 25 Mar 2020 11:49:09 -0400 Received: from [192.168.0.2] (ip5f5af719.dynamic.kabel-deutschland.de [95.90.247.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 16137202254DE; Wed, 25 Mar 2020 16:49:06 +0100 (CET) Subject: Re: [Intel-wired-lan] [PATCH] e1000e: bump up timeout to wait when ME un-configure ULP mode To: Sasha Neftin , Aaron Ma , Kai-Heng Feng Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, intel-wired-lan@lists.osuosl.org, David Miller , Rex Tsai References: <20200323191639.48826-1-aaron.ma@canonical.com> <2c765c59-556e-266b-4d0d-a4602db94476@intel.com> <899895bc-fb88-a97d-a629-b514ceda296d@canonical.com> <750ad0ad-816a-5896-de2f-7e034d2a2508@intel.com> From: Paul Menzel Message-ID: Date: Wed, 25 Mar 2020 16:49:05 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <750ad0ad-816a-5896-de2f-7e034d2a2508@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear Linux folks, Am 25.03.20 um 14:58 schrieb Neftin, Sasha: > On 3/25/2020 08:43, Aaron Ma wrote: >> On 3/25/20 2:36 PM, Neftin, Sasha wrote: >>> On 3/25/2020 06:17, Kai-Heng Feng wrote: >>>>> On Mar 24, 2020, at 03:16, Aaron Ma 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. >>>> >>>>> Fixes: f15bb6dde738cc8fa0 ("e1000e: Add support for S0ix") >>>>> BugLink: https://bugs.launchpad.net/bugs/1865570 >>>>> Signed-off-by: Aaron Ma >>>>> --- >>>>> drivers/net/ethernet/intel/e1000e/ich8lan.c | 4 ++-- >>>>> 1 file changed, 2 insertions(+), 2 deletions(-) >>>>> >>>>> diff --git a/drivers/net/ethernet/intel/e1000e/ich8lan.c >>>>> b/drivers/net/ethernet/intel/e1000e/ich8lan.c >>>>> index b4135c50e905..147b15a2f8b3 100644 >>>>> --- a/drivers/net/ethernet/intel/e1000e/ich8lan.c >>>>> +++ b/drivers/net/ethernet/intel/e1000e/ich8lan.c >>>>> @@ -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; >>>>>              } >>>> >>>> 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()? >>> 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. >> 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