Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2340848ybt; Tue, 16 Jun 2020 03:36:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyHDyX0kxgjzlL5b0Vkyqul5YtxaT6hs6GHbxirlw2tG3hBDdH08TAgH4U2gI11h0RbjrC X-Received: by 2002:a17:906:7f02:: with SMTP id d2mr2205816ejr.211.1592303765860; Tue, 16 Jun 2020 03:36:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592303765; cv=none; d=google.com; s=arc-20160816; b=KNq6Vpmgk6RDI4DvCcHsyvTxZmjwJTAT4Njzr0q1tgZXlWBdx5PD15+LgoN1etJtU/ wkAnDNwAPCz7qIJbFS6XT+e4ZeuHvH+kkkCYznL3Ae2Yalbxu4igNLQLIHSI/IpdloTO 88c4HSQoDXR8+Bo0fhS6UCxU993/pDbU/iYtwGA7QTTwdf4b4GSdXb2JIiKgNfFy4NB/ Lct4Nny3jbmo/nZdCq3dZxBDKRGHQkReAGbICCbrvIQa8Hq8ez8Tgi8MDhnE7535PMQo gx0N/EWpFiqPLpBp77OHEH1rvDTu0QOpvM6NzXTXbWnzFKde886AA36MO+COnJqPNt4e FMkw== 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:autocrypt:from:references:to:subject; bh=u1vY0S9IDbh3QY7m2OYtvkO5aRt4iv7Vx5BI+MEVGTQ=; b=xZe+qMCvVgKSBdCa1hf3VWFg0j/gDJQWr6fyHQyvquA/wSvgb8iJgn+3CYmHOipZjG s2tLGe2JqwJVhfpPosa7QZR7aU9fPMFFhgar3SNshUhYmpGexRZwp0YHIJLp66dPs/ih qlN55kKkt1M9AcrfjtQymPm3jqdo75CVLTAZIjo+Ppb4PXSF2+Wj8LxxqnSAb3G2cJYq S3MSoZikGQUy45M/PLeJu8OTyVnmNawLkbElMI77R+B76OgpLGbZmGmNDlZCOwqsYWhC qvihNsKhmlBMkQSM2cmFophlIu4ChURSNTBqCp+ElzeUwbgJSpzvjrqX9DQOI6gB7Lpr nthg== 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 b10si10122993edw.184.2020.06.16.03.35.43; Tue, 16 Jun 2020 03:36:05 -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 S1728176AbgFPKbl (ORCPT + 99 others); Tue, 16 Jun 2020 06:31:41 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:49348 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726606AbgFPKbj (ORCPT ); Tue, 16 Jun 2020 06:31:39 -0400 Received: from [114.249.250.117] (helo=[192.168.1.10]) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jl8sS-0008DE-9A; Tue, 16 Jun 2020 10:31:36 +0000 Subject: Re: [Intel-wired-lan] [PATCH] e1000e: continue to init phy even when failed to disable ULP To: Paul Menzel , 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 References: <20200616100512.22512-1-aaron.ma@canonical.com> <74391e62-7226-b0f8-d129-768b88f13160@molgen.mpg.de> From: Aaron Ma Autocrypt: addr=aaron.ma@canonical.com; prefer-encrypt=mutual; keydata= mQENBFffeLkBCACi4eE4dPsgWN6B9UDOVcAvb5QgU/hRG6yS0I1lGKQv4KA+bke0c5g8clbO 9gIlIl2bityfA9NzBsDik4Iei3AxMbFyxv9keMwcOFQBIOZF0P3f05qjxftF8P+yp9QTV4hp BkFzsXzWRgXN3r8hU8wqZybepF4B1C83sm2kQ5A5N0AUGbZli9i2G+/VscG9sWfLy8T7f4YW MjmlijCjoV6k29vsmTWQPZ7EApNpvR5BnZQPmQWzkkr0lNXlsKcyLgefQtlwg6drK4fe4wz0 ouBIHJEiXE1LWK1hUzkCUASra4WRwKk1Mv/NLLE/aJRqEvF2ukt3uVuM77RWfl7/H/v5ABEB AAG0IUFhcm9uIE1hIDxhYXJvbi5tYUBjYW5vbmljYWwuY29tPokBNwQTAQgAIQUCV994uQIb AwULCQgHAgYVCAkKCwIEFgIDAQIeAQIXgAAKCRDNxCzQfVU6ntJ9B/9aVy0+RkLqF9QpLmw+ LAf1m3Fd+4ZarPTerqDqkLla3ekYhbrEtlI1mYuB5f+gtrIjmcW27gacHdslKB9YwaL8B4ZB GJKhcrntLg4YPzYUnXZkHHTv1hMw7fBYw82cBT+EbG0Djh6Po6Ihqyr3auHhfFcp1PZH4Mtq 6hN5KaDZzF/go+tRF5e4bn61Nhdue7mrhFSlfkzLG2ehHWmRV+S91ksH81YDFnazK0sRINBx V1S8ts3WJ2f1AbgmnDlbK3c/AfI5YxnIHn/x2ZdXj1P/wn7DgZHmpMy5DMuk0gN34NLUPLA/ cHeKoBAF8emugljiKecKBpMTLe8FrVOxbkrauQENBFffeLkBCACweKP3Wx+gK81+rOUpuQ00 sCyKzdtMuXXJ7oL4GzYHbLfJq+F+UHpQbytVGTn3R5+Y61v41g2zTYZooaC+Hs1+ixf+buG2 +2LZjPSELWPNzH9lsKNlCcEvu1XhyyHkBDbnFFHWlUlql3nSXMo//dOTG/XGKaEaZUxjCLUC 8ehLc16DJDvdXsPwWhHrCH/4k92F6qQ14QigBMsl75jDTDJMEYgRYEBT1D/bwxdIeoN1BfIG mYgf059RrWax4SMiJtVDSUuDOpdwoEcZ0FWesRfbFrM+k/XKiIbjMZSvLunA4FIsOdWYOob4 Hh0rsm1G+fBLYtT+bE26OWpQ/lSn4TdhABEBAAGJAR8EGAEIAAkFAlffeLkCGwwACgkQzcQs 0H1VOp6p5Af/ap5EVuP1AhFdPD3pXLNrUUt72W3cuAOjXyss43qFC2YRjGfktrizsDjQU46g VKoD6EW9XUPgvYM+k8BJEoXDLhHWnCnMKlbHP3OImxzLRhF4kdlnLicz1zKRcessQatRpJgG NIiD+eFyh0CZcWBO1BB5rWikjO/idicHao2stFdaBmIeXvhT9Xp6XNFEmzOmfHps+kKpWshY 9LDAU0ERBNsW4bekOCa/QxfqcbZYRjrVQvya0EhrPhq0bBpzkIL/7QSBMcdv6IajTlHnLARF nAIofCEKeEl7+ksiRapL5Nykcbt4dldE3sQWxIybC94SZ4inENKw6I8RNpigWm0R5w== Message-ID: Date: Tue, 16 Jun 2020 18:31:27 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <74391e62-7226-b0f8-d129-768b88f13160@molgen.mpg.de> Content-Type: text/plain; charset=utf-8 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 6/16/20 6:20 PM, Paul Menzel wrote: > Dear Aaron, > > > Thank you for your patch. > > (Rant: Some more fallout from the other patch, which nobody reverted.) > Would you like a revert? Thanks, Aaron > Am 16.06.20 um 12:05 schrieb Aaron Ma: >> After commit "e1000e: disable s0ix entry and exit flows for ME systems", >> some ThinkPads always failed to disable ulp by ME. > > Please add the (short) commit hash from the master branch. > > s/ulp/ULP/ > > Please list one ThinkPad as example. > >> commit "e1000e: Warn if disabling ULP failed" break out of init phy: > > 1.  Please add the closing quote ". > 2.  Please add the commit hash. > >> 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. > > s/Chnage/Change/ > > Please leave the level warning, and improve the warning message instead, so a user knows what is going on. > > Could you please add a `Fixes:` tag and the URL to the bug report? > >> 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); >> > > Kind regards, > > Paul