Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2325315ybt; Tue, 16 Jun 2020 03:08:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyL9xco0tKXG85I51DuwpwHNghHQSBzV4D2Nl/hXoRSucdG3hXFe0GFj3M5n8frALNqBdeS X-Received: by 2002:a17:906:b7cd:: with SMTP id fy13mr1938478ejb.443.1592302087295; Tue, 16 Jun 2020 03:08:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592302087; cv=none; d=google.com; s=arc-20160816; b=hRZLjaaPa+Flq/0OwYcSJ79xQPu5A+NrC3Mrf76gvCflV7uP6mRXZdcK5JSZmXJtGo hwpq6c5FynODzh/x3NQkBRcmUsSjiYUsX4Asa357PuwKpfRhqNH0SXssQzPM34UV4OcA 9otToJIirAn+oL5BItK1Kv+zAV7BXgmulfwMg69CKRXF9dAvkqQB+UbAuY3BGriw+0lw BtZ0u72QtylZ0+PtmaIToZU3hy6LdDbPWotdEILLL+VAs/M50rRF42EESLide7wSyFjU LfUGNqH5PHXR2pq7uxMs6R5pj3np/tPFUrXzDoS84PqRRNoEu4lJqW8HVzyesgUkR4Mj 4+PA== 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 :message-id:date:subject:to:from; bh=1NpW69Vw5zr3Nk/OOOlJqQV4wOTJWv2O7cGa/Ot2Qi0=; b=CqtmI/MbOEulJQ1OgdiqMDdr6Fm6j4zmK5gFN2/HPP2kHC3TFK3IZgp/ePJ2zS0L1y 2E915kLL8xm0M/IBnm6WOTht2cJJqmF/7hLUyItRJvCuin7H+CDszD2q2LEFcX3P6umo Zm4yDvQmBL4TVOqbW9ZHvb3cLJG7PCdhK4sl7xH4llAk32EkbHB6Bh1GK3b2Jo0s4MoH NCZJx5UpruzJa4n3oi/hwubgevf+XJwBlZivHuk3xzPx6w7C6GmZxnGHg+H5hGTPBd/Q FvGZbWWFP+oSTCDCCuHTzjJknxYUiLxJIQVzDOiyBAUwsFeLayXWlGo5e3b+r++yWfBL zdlA== 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 u20si9918144edq.15.2020.06.16.03.07.44; Tue, 16 Jun 2020 03:08:07 -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 S1728382AbgFPKF6 (ORCPT + 99 others); Tue, 16 Jun 2020 06:05:58 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:48492 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728324AbgFPKFz (ORCPT ); Tue, 16 Jun 2020 06:05:55 -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 1jl8TR-0004iJ-5x; Tue, 16 Jun 2020 10:05:46 +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: [PATCH] e1000e: continue to init phy even when failed to disable ULP Date: Tue, 16 Jun 2020 18:05:12 +0800 Message-Id: <20200616100512.22512-1-aaron.ma@canonical.com> X-Mailer: git-send-email 2.26.2 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 "e1000e: disable s0ix entry and exit flows for ME systems", some ThinkPads always failed to disable ulp by ME. commit "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. Chnage e_warn to e_dbg, in case it confuses. Signed-off-by: Aaron Ma --- drivers/net/ethernet/intel/e1000e/ich8lan.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/intel/e1000e/ich8lan.c b/drivers/net/ethernet/intel/e1000e/ich8lan.c index f999cca37a8a..63405819eb83 100644 --- a/drivers/net/ethernet/intel/e1000e/ich8lan.c +++ b/drivers/net/ethernet/intel/e1000e/ich8lan.c @@ -302,8 +302,7 @@ static s32 e1000_init_phy_workarounds_pchlan(struct e1000_hw *hw) hw->dev_spec.ich8lan.ulp_state = e1000_ulp_state_unknown; ret_val = e1000_disable_ulp_lpt_lp(hw, true); if (ret_val) { - e_warn("Failed to disable ULP\n"); - goto out; + e_dbg("Failed to disable ULP\n"); } ret_val = hw->phy.ops.acquire(hw); -- 2.26.2