Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp644798ybb; Wed, 25 Mar 2020 07:00:31 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvk2m278ymtkP5FKoVlgjyrvzU6Jg9DPZyB9J8kwrZW52QeBbX/hZ7ZZZPjgOJzrje0ZRHr X-Received: by 2002:a4a:940e:: with SMTP id h14mr1309994ooi.26.1585144830892; Wed, 25 Mar 2020 07:00:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585144830; cv=none; d=google.com; s=arc-20160816; b=jsYCvng19qdc0On7l5TdZAobA7D1bFUHQiJu5a54LCRkovtWnTgUDJOPLMmCfvDQJp XITGHr1x2e9on1WYUHS11ZEqTQZUSyPofr8fk1radrQ/eFhCvqMo3hKQpaSR6pWEi/vS 3Ftff4yVv7eBIDMoqTF1pNK6baK+KR2FvO1j00JCqfd6klTt/CHKfsqPp17sLTX7D5VV 9Xo5YCpWNTz37wwOXx9FAdG3WuQL1eZyHE+Ql3hYah86I1N378yQK5wntAA9MQF/sWA9 kh6RuvGq2iCobcN3Na2lQUR1UrSulzQf1KNsN0+iqQFMhfzbXDypoqAd1WV8k4nkWCzL MupA== 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:ironport-sdr:ironport-sdr; bh=fMeKybUqvOBEuhHok22TEOrDQWGN63op2UNeH+w1pT0=; b=H0urWhaYeKVQ4cAfrrZubIcrSte9lizoIh9had5JIB4+rT+oiQ2SD8/X1VgkScHXBm aN6CoAfmd0u8UXSmjz79/QhVR8CeFo9bFwIujc27CMbk8dEoViD+O3kjJCkTm17xVmgO k7fZcXjJw/b4ydRStwyfS64ObifIBOTP7bsZF6RwTZz3n9ItivBDnWbTpsGSicCQHrNO 15jiGHCASVc4h6PzalqnbtKEIR98d140WMkqteWeEh/lnpwW/0az3w3zscb2DWgzFHKU XotY2HLpm7dNho3iukDGUzYDsiK0ZESwVb2V7Alhp42dwFPuqSTA1EGs+VpOqSNzXLrs 4VLg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i9si2947145otk.101.2020.03.25.07.00.17; Wed, 25 Mar 2020 07:00:30 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727671AbgCYN6X (ORCPT + 99 others); Wed, 25 Mar 2020 09:58:23 -0400 Received: from mga09.intel.com ([134.134.136.24]:10418 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727277AbgCYN6X (ORCPT ); Wed, 25 Mar 2020 09:58:23 -0400 IronPort-SDR: V9Bot/xFNlAp1BwJGAPiIBt57jcSVl197M5O5zPW2mNzKgfmRB1RDs5Z6hqkcyDeSE7VCAG4PJ qr8R86Zk8sgw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2020 06:58:22 -0700 IronPort-SDR: o9zSkCT5hDK5XmHbZCnGADHqvotdopCLhW8E7HR5FuWibpPdWFbThBbapqlEXWRUKcXKKgDD7J sbLcFc/fPbFA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,304,1580803200"; d="scan'208";a="235943153" Received: from sneftin-mobl1.ger.corp.intel.com (HELO [10.214.229.188]) ([10.214.229.188]) by orsmga007.jf.intel.com with ESMTP; 25 Mar 2020 06:58:18 -0700 Subject: Re: [PATCH] e1000e: bump up timeout to wait when ME un-configure ULP mode To: Aaron Ma , Kai-Heng Feng Cc: "Kirsher, Jeffrey T" , David Miller , "moderated list:INTEL ETHERNET DRIVERS" , "open list:NETWORKING DRIVERS" , open list , "Lifshits, Vitaly" , rex.tsai@intel.com References: <20200323191639.48826-1-aaron.ma@canonical.com> <2c765c59-556e-266b-4d0d-a4602db94476@intel.com> <899895bc-fb88-a97d-a629-b514ceda296d@canonical.com> From: "Neftin, Sasha" Message-ID: <750ad0ad-816a-5896-de2f-7e034d2a2508@intel.com> Date: Wed, 25 Mar 2020 15:58:16 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <899895bc-fb88-a97d-a629-b514ceda296d@canonical.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 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: >>> Hi Aaron, >>> >>>> 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()? >>> >>> 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. > 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. > > Regard, > Aaron > >> >> Meanwhile I prefer keep DMI quirk. >> Thanks, >> Sasha >>> >>>> -- >>>> 2.17.1 >>>> >>> >>