Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1095421ybt; Wed, 17 Jun 2020 23:49:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCWqZGYe5s0SwUl37mZ9dQ8EZbshqxsMkBo8VQe20iKwhGnkLoOCZmULlvLUC6khbGQeti X-Received: by 2002:aa7:c3d7:: with SMTP id l23mr2652052edr.264.1592462971270; Wed, 17 Jun 2020 23:49:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592462971; cv=none; d=google.com; s=arc-20160816; b=KaKcrvWcUHktNBkLLBIzN1qXlnePL6SGqP5Fqa7B/7OFXl0+Sm5mtywlh+4Dkv9XPu 7iEzgMDCrKiDnzXoX9yTuY0NyokAhbG+OKBOa1UpbEP1VDhc1viDTKjg9a4+Zmtyrudf IOd+4zyDXfa9lkDlIl+IbzzjIXnl4rq2IGImvxgSUbPg/bN9dpZPH0GbmJ3yioT7Pv+3 CzC2WakNt2MN/Fn+r5cTk+/zkwZHzUpn61tm/3oI0OU8HiGKTgJmWHV6OIyF75RQmUtF ErSfFiOVIuWfjMtWjGAViBxArDJTg4un1PhICI5vJPktAis8LYVm+DCV+eQG7M6aoFRF TTnA== 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=BVaYLmv6xjuuD9iuBIQgRnNmBHCIiwvht0rgU1GATdM=; b=refb3aGma/GG7FvK0EiKwJJ+y4T1c0ot8S+GQNppXXFqsmO4dJXHRa6QiVCdv8Zjw9 Q7k1tBIAtfuH0eS5hxBmSR/Usid7mZjCZI6i0vcpO99rE4GsNmtqnVLvPm4xCSqWppvN N+mc6RDBRgyNXYVU8i++DSzcp9KsIz6XIoI+zwrKahOhHBkHddGT9bPV7O986Qae2Tcg h5T53jKExg8AnHPU0bzi5WBGCourfyfidufok2dEFeyRRaOHU39aZ8Ns8t8Q4aAzJIAS j7eTBk4VFGYB2v4W6oEG6ppo4hdnYw3xa00rHHlqgo2ad03hPmrGf42xIqeFzHsJWdAx saTA== 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 y6si1316977edu.513.2020.06.17.23.49.08; Wed, 17 Jun 2020 23:49:31 -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 S1727901AbgFRGp0 (ORCPT + 99 others); Thu, 18 Jun 2020 02:45:26 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:42035 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726940AbgFRGp0 (ORCPT ); Thu, 18 Jun 2020 02:45:26 -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 1jloIW-0005Hw-Hd; Thu, 18 Jun 2020 06:45:17 +0000 From: Aaron Ma To: kuba@kernel.org, jeffrey.t.kirsher@intel.com, davem@davemloft.net, 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: [v3][PATCH] e1000e: continue to init phy even when failed to disable ULP Date: Thu, 18 Jun 2020 14:45:04 +0800 Message-Id: <20200618064504.11588-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: e086ba2fccda4 ("e1000e: disable s0ix entry and exit flows for ME systems"). ThinkPad P14s always failed to disable ULP by ME. commit: 0c80cdbf3320 ("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: 0c80cdbf3320 ("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