Received: by 10.223.185.116 with SMTP id b49csp3898131wrg; Tue, 6 Mar 2018 06:50:34 -0800 (PST) X-Google-Smtp-Source: AG47ELt0Pvv5J4NwtA/zesoW3l3BkhgGpVr0/EuJ39nHitiFICAT9Oi6G0jzObkZfcCX06x44vRf X-Received: by 10.98.11.19 with SMTP id t19mr19273246pfi.70.1520347834017; Tue, 06 Mar 2018 06:50:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520347834; cv=none; d=google.com; s=arc-20160816; b=x79wEYkYf10UbeSyo13ScBiQX3bDgkj68D5MolSlzXdNecLSbyDuoM6rN7cvTgYnxu G3qgwFoIXA8zyqQsauzagMC6gVjVSpWBQG3JAwJyVgVjmbOXnE0s7ge1ryXFJIxp5tQf Im9OVtmVuBDHPNsI2qjgIEsttP2OdsQDAD5uRvWWK1USN5Z4vLFYUDUyFVslI3aFiGMV cIoJtKXC6IQfVKUx/TJXjSUVW0BoyCLCVidfuzutUiMslTm3sSUe0CRvb1G/ysL63UVg Y7j3tuMp6BmU9kuCcrsnKC53CshKPUx4NSiV8HkpBekQkEqWJAT2YipyADo3qhFqoK3V JAqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=V2ExzIqhguUZbVMDO5aJruMnpK56DbMwadjSeAzF6TQ=; b=d50PXch4b5rwXOAyC7E4HWVMZIvMlUFDlIcQW+ldmIgn9zwPDAAJXEY7qSUdtQ1wMw kLlFjw7wxat61JhBetuK9iBjCsZYTKkVfv8LiTlYsw88lGIDr9Fhjji4U6ByqQKuHnR6 sIesHy9wI4uOdTw2gzO825SPIjTK9LYn9uLtfpeLIsKEmFzq9BAfYj35+xpG7C1hSagu 8mUEefR5iHnwRMvCQLiYTdWRtUTu9ANI0ND2stPFZEe61/eIdTVeaD/drabSYCEH4tFA tE6wN0NbrlxpVNR3FQdBULMhFsSBZJjcfAFDHBr5UsUCbuLr0rnz1SewAU57ADFcXAm1 lwZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KzDwXUBB; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d12-v6si10307259plr.264.2018.03.06.06.50.19; Tue, 06 Mar 2018 06:50:34 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KzDwXUBB; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753926AbeCFOt2 (ORCPT + 99 others); Tue, 6 Mar 2018 09:49:28 -0500 Received: from mail-qt0-f194.google.com ([209.85.216.194]:37222 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753885AbeCFOtW (ORCPT ); Tue, 6 Mar 2018 09:49:22 -0500 Received: by mail-qt0-f194.google.com with SMTP id r16so24803229qtm.4; Tue, 06 Mar 2018 06:49:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=V2ExzIqhguUZbVMDO5aJruMnpK56DbMwadjSeAzF6TQ=; b=KzDwXUBBOWd/USZVy7K2gtuiZrXTLw37+9ZIK7MsgDKvxg6NgpNMvkL8bLQKUHYSFK zCrt/OTnuXfSrlZtVAsYq814Atugipem3GU/AnU4jenQ3Rxiyipe+jSpc6bODhEpuWJ3 PG5ducrfLml578ZYwAsw+T5QxP2mHSTtPDQTTAemEZwWtdoBUftKKqq/uE72dZSWuE6U aTyux97ikmu/aEp3zEQnvSrtcIrApBk81hgyrNigU0kmUmPX+jaCL6nEDRxZmuCaJ1J7 kXmxNGq7Bdihhm49XkPpFtPQnghzl7S+QN00sgfjmmEx+FMi5DSFGsYwnz8myZLBSuN4 bhwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=V2ExzIqhguUZbVMDO5aJruMnpK56DbMwadjSeAzF6TQ=; b=t1bzUxDgGdkjsZskqzgQDiWjchGkFH3eO7Hy4nOtLBybW2o/A3nkvpDas/sdKBK3Vi N1u+VZ3oHAcLTGZHJKNk3hW4n9rBSOj18SB8MwVQkul5mYZYM5WHlMZbmrnriAQ7A66Z KIsKaPOiuKoLr3izd0jWeqVYXlCEOalPeLdBEGrgU3zY9d2JhpE1d/isa2IC+soHdlEr DIZ5ltTPt/YkDJtV9CqoFbvf724gcFksBoyq+DPDLRMb/zULDOIVaFF/WxhjQcIdyTuX w/eYTBMEwRIXqIJj2qLW7ilgiXQBS42XTxAKJSbTDg6jo447vilPO6GYl22hVH/Dj9dt BWhQ== X-Gm-Message-State: AElRT7GOJN33OA5Cf8pskSZOOPIYlnbBt1nPWvmcnwBRE3q4eldKAYo/ 3sEgy/AJvdZSKbn/eca1O+vyBIXKDbT/dU4axLk= X-Received: by 10.200.38.61 with SMTP id u58mr28925506qtu.269.1520347761756; Tue, 06 Mar 2018 06:49:21 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.89.138 with HTTP; Tue, 6 Mar 2018 06:49:21 -0800 (PST) In-Reply-To: <20180306015553.10441-1-bpoirier@suse.com> References: <20180306015553.10441-1-bpoirier@suse.com> From: Alexander Duyck Date: Tue, 6 Mar 2018 06:49:21 -0800 Message-ID: Subject: Re: [PATCH 1/2] Revert "e1000e: Separate signaling for link check/link up" To: Benjamin Poirier Cc: Jeff Kirsher , Lennart Sorensen , intel-wired-lan , Netdev , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 5, 2018 at 5:55 PM, Benjamin Poirier wrote: > This reverts commit 19110cfbb34d4af0cdfe14cd243f3b09dc95b013. > This reverts commit 4110e02eb45ea447ec6f5459c9934de0a273fb91. > This reverts commit d3604515c9eda464a92e8e67aae82dfe07fe3c98. > > Commit 19110cfbb34d ("e1000e: Separate signaling for link check/link up") > changed what happens to the link status when there is an error which > happens after "get_link_status = false" in the copper check_for_link > callbacks. Previously, such an error would be ignored and the link > considered up. After that commit, any error implies that the link is down. > > Revert commit 19110cfbb34d ("e1000e: Separate signaling for link check/link > up") and its followups. After reverting, the race condition described in > the log of commit 19110cfbb34d is reintroduced. It may still be triggered > by LSC events but this should keep the link down in case the link is > electrically unstable, as discussed. The race may no longer be > triggered by RXO events because commit 4aea7a5c5e94 ("e1000e: Avoid > receiver overrun interrupt bursts") restored reading icr in the Other > handler. > > Link: https://lkml.org/lkml/2018/3/1/789 > Signed-off-by: Benjamin Poirier Personally I am not a fan of the !mac->autoneg causing us to return an error, but that is how the code was before and the error return code will be ignored anyway. Thanks for doing all this. Acked-by: Alexander Duyck