Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp318604ybb; Tue, 24 Mar 2020 23:43:39 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuas4YpPbRt5tlwU4LTSty9FRwf4VtiDXcFY1t/dvt+HOOs4VrASlm086o+2ysJE91pgZyM X-Received: by 2002:aca:1c0c:: with SMTP id c12mr1502367oic.104.1585118619041; Tue, 24 Mar 2020 23:43:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585118619; cv=none; d=google.com; s=arc-20160816; b=UzrtEHGtej4ifzJXf9/c0b9BgEE4gYfduTHhfbIGAyzLk4TUQl4pqQMOTIBPL+HHOE o1vSJHkPnAkVq8h8OVkMR6dffEQv9QpvjzZhawBN1pMk31ZdJ60TQSpmPLl9K+oec0DU Q6fhhCq1adzF4SqZqqwH/ZOlCrkzJ9rdPFH7U4ntB3+Ak4YIlJFdHSyPqYIt5lX11d5e 3fvwqNr313cFX2/TWZ0OWpH7nauv2BUXm7/YsvT83RXeyMVhPi1usf0lSHua2CFCNsgt Mp2csDHNCmO8L8P//HtZzdXmQK2fK+Z0LGIo7lNtstu0HUc97JKHVC5f90+o6jdGnn3X fKfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=NHef20S8Ko6CxdRxEOe2Fbz41xA7V8nD1PYdtrFCIFw=; b=ZbeiWxLX+alL2gNaTi7PvrySeO7YImQ7KVHzb2c2nVCqeZ/MMzoWcy22NOpLlrj6Wr S3IAZLNbcLzUesRTRES7mtJCNlYqRZ9VgrdAAkAZFykKFg4/W/nSMN4azzvy8okdRQ3C iJMMc0wmsyiBlL8OnQKcsxAxTN+BbAv8zRlCX/A7oJrcKe0SHSMo+fh4G8oty5JLLTjl eEZN0EMA7YqD1X/DIFCD25yyXRPNgtJZkaiZHhts3juHEhTXXKnMA57A2j2EBsxaX8XX vitFp06bOiLCA78MNBr/pi4rPkHpl1AGDro09QS73c86qZs2YAWzPUNjIEBUiPJGTrEi aM+A== 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 j25si1272992oii.86.2020.03.24.23.43.26; Tue, 24 Mar 2020 23:43:39 -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 S1726103AbgCYGnF convert rfc822-to-8bit (ORCPT + 99 others); Wed, 25 Mar 2020 02:43:05 -0400 Received: from mga17.intel.com ([192.55.52.151]:35384 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725832AbgCYGnE (ORCPT ); Wed, 25 Mar 2020 02:43:04 -0400 IronPort-SDR: nyZ1gMq2ednYHAdrZ60+WbF+3O9D4FrdbiBQelvmE+MteJ0q014FI7rEHlrJ3J+ud2kgBjcTY7 OUKbS9CSVNMg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2020 23:43:04 -0700 IronPort-SDR: 2mV35U+xgzl4jmo3HTIaf2P5n1oMkzKICgo+wd94ikwljKSXdhTZwZjopUXVQ5X9ZANYqDmzL9 ZI31VERRCdjQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,303,1580803200"; d="scan'208";a="446525271" Received: from kmsmsx156.gar.corp.intel.com ([172.21.138.133]) by fmsmga005.fm.intel.com with ESMTP; 24 Mar 2020 23:43:01 -0700 Received: from pgsmsx109.gar.corp.intel.com (10.221.44.109) by KMSMSX156.gar.corp.intel.com (172.21.138.133) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 25 Mar 2020 14:43:00 +0800 Received: from pgsmsx101.gar.corp.intel.com ([169.254.1.189]) by PGSMSX109.gar.corp.intel.com ([169.254.14.132]) with mapi id 14.03.0439.000; Wed, 25 Mar 2020 14:43:00 +0800 From: "Tsai, Rex" To: Kai-Heng Feng , "Neftin, Sasha" CC: Aaron Ma , "Kirsher, Jeffrey T" , David Miller , "moderated list:INTEL ETHERNET DRIVERS" , "open list:NETWORKING DRIVERS" , open list , "Lifshits, Vitaly" Subject: RE: [PATCH] e1000e: bump up timeout to wait when ME un-configure ULP mode Thread-Topic: [PATCH] e1000e: bump up timeout to wait when ME un-configure ULP mode Thread-Index: AQHWAm/CtyGz6kX6QUmdKAyk1jOQIqhYVWOAgACGtaA= Date: Wed, 25 Mar 2020 06:42:59 +0000 Message-ID: References: <20200323191639.48826-1-aaron.ma@canonical.com> <2c765c59-556e-266b-4d0d-a4602db94476@intel.com> <206441A5-70CF-4F34-93B2-90F4A846BF4E@canonical.com> In-Reply-To: <206441A5-70CF-4F34-93B2-90F4A846BF4E@canonical.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [172.30.20.205] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Sent: Tuesday, March 24, 2020 11:40 PM To: Neftin, Sasha Cc: Aaron Ma ; Kirsher, Jeffrey T ; David Miller ; moderated list:INTEL ETHERNET DRIVERS ; open list:NETWORKING DRIVERS ; open list ; Lifshits, Vitaly ; Tsai, Rex Subject: Re: [PATCH] e1000e: bump up timeout to wait when ME un-configure ULP mode Hi Sasha, > On Mar 25, 2020, at 14:36, 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. 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 > 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 >>> -- >>> 2.17.1