Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp406265ybt; Wed, 17 Jun 2020 04:15:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0W8nC8Y7V+1uwGEZltpg3M7m5GfaUlDgJ29CIRp6JSGuReKP4lL5NTxr4bB1KJit34wo5 X-Received: by 2002:a17:906:ecfa:: with SMTP id qt26mr7152138ejb.493.1592392544728; Wed, 17 Jun 2020 04:15:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592392544; cv=none; d=google.com; s=arc-20160816; b=yoF7En1O8pFt9WwzCish8WgEp5iq/HHyCi4FJDDFXOUDv2HTXswjE0aatc0DJnyIcZ cwt1SCAvQSB8XI0RVKWngoEex2XWaSSJLEq1F72T3joPXJwS23LUfGJfVVyaICX+op1n 6InKVca/Zk0Y5K2CoiPu3y+wM+/nRQkPHdjccrQ6CetyCfIRv/vwibOdOFImKiYAFOGn MRpzcV+f5v0QvgUyf1lMJdUfRXHoL35aoDEoAIHKkjmLkIohJpxyr0l+MJP8Nw5RUrJc 5L4jrj6YMQ/yiam1KgStA8n2d5cgwwdM+ltiy6uVI06gbzurMx4wjnfpHPny0L3QM6wC o6bw== 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:mime-version :references:in-reply-to:message-id:date:subject:to:from; bh=V8MfQoZm3y4dEusegV2pfxCp6DOHgQBDt8oOl9qlYMY=; b=TDJn1SAapHeN5WPZ/v7GgU/XltbvJA13dHpA3XcSxf/V17gQWDZXwgFYInC5oMneZ5 WCnKcvPAVdWT2jn0p4NSqtqzko7/rpPXumOPOdfVpDDXHD/Um0LZb1fxVrPFdg2Jd2ia 0OZXvCWK8RQDpY4GYNKL8RndtdkIR/6wHldCvmSg3nWYobSrXwVboNdTtLjbqc3duL91 +TTUyH+pA2QNKrQEfEf1tEIYze2xgviYO4LvVrdgftcSoKaCHykFDXzHyA5bJSK0IJCY gzJCof5ka8d5622yEhaS8BLYcjpM9PDUgyYjsdr+8rd92W8FK4B5Mn36/9397Ml3fJI/ VUVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pg21si12718718ejb.349.2020.06.17.04.15.21; Wed, 17 Jun 2020 04:15:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726702AbgFQLNI (ORCPT + 99 others); Wed, 17 Jun 2020 07:13:08 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:36634 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725964AbgFQLNH (ORCPT ); Wed, 17 Jun 2020 07:13:07 -0400 Received: from [114.249.250.117] (helo=localhost.localdomain) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jlW01-0006g5-Cg; Wed, 17 Jun 2020 11:12:58 +0000 From: Aaron Ma To: jeffrey.t.kirsher@intel.com, davem@davemloft.net, kuba@kernel.org, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, vitaly.lifshits@intel.com, kai.heng.feng@canonical.com, sasha.neftin@intel.com Subject: [v2][PATCH] e1000e: continue to init phy even when failed to disable ULP Date: Wed, 17 Jun 2020 19:12:48 +0800 Message-Id: <20200617111249.20855-1-aaron.ma@canonical.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200616100512.22512-1-aaron.ma@canonical.com> References: <20200616100512.22512-1-aaron.ma@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After commit: e086ba2fccd ("e1000e: disable s0ix entry and exit flows for ME systems"). ThinkPad P14s always failed to disable ULP by ME. commit: 0c80cdbf33 ("e1000e: Warn if disabling ULP failed") break out of init phy: error log: [ 42.364753] e1000e 0000:00:1f.6 enp0s31f6: Failed to disable ULP [ 42.524626] e1000e 0000:00:1f.6 enp0s31f6: PHY Wakeup cause - Unicast Packet [ 42.822476] e1000e 0000:00:1f.6 enp0s31f6: Hardware Error When disable s0ix, E1000_FWSM_ULP_CFG_DONE will never be 1. If continue to init phy like before, it can work as before. iperf test result good too. Fixes: 0c80cdbf33 ("e1000e: Warn if disabling ULP failed") Signed-off-by: Aaron Ma --- drivers/net/ethernet/intel/e1000e/ich8lan.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/intel/e1000e/ich8lan.c b/drivers/net/ethernet/intel/e1000e/ich8lan.c index f999cca37a8a..be7475c5529d 100644 --- a/drivers/net/ethernet/intel/e1000e/ich8lan.c +++ b/drivers/net/ethernet/intel/e1000e/ich8lan.c @@ -303,7 +303,6 @@ static s32 e1000_init_phy_workarounds_pchlan(struct e1000_hw *hw) ret_val = e1000_disable_ulp_lpt_lp(hw, true); if (ret_val) { e_warn("Failed to disable ULP\n"); - goto out; } ret_val = hw->phy.ops.acquire(hw); -- 2.26.2