Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4005487ybi; Mon, 15 Jul 2019 02:23:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqzv4BMO7P20AeJ8JggmG/S4tYl8fjfBqSFHzAVx1ywh2hZnTmYuV7esBnNDliM4UwJwNme7 X-Received: by 2002:a63:7e17:: with SMTP id z23mr26154588pgc.14.1563182583801; Mon, 15 Jul 2019 02:23:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563182583; cv=none; d=google.com; s=arc-20160816; b=vjZBefe3lC9kb0PxV0eTZpFsyXwuX61wWKMgAVee8lCJJ2gjB9EIFv/39GMlL7/HpB W+bye9QFyKhmr5usObd3RURwYzFZ96S6iOX4+4t7KG7kytZi8eURLki9j5TSm+NI6imo Nu3ZGUNl/Jt/uQRO6GQ9nBoM3ejE326w+mWRHqkxHiCKkY+ebGsE0tHNCy9AmdrbMJLe 1s2ONsbKgLMUCCix3ygjgORwjFkO74m7nHjiE1WsSQtOm2Ps1IFgBoN8i/crGJSuHmIY M8qfgfrLPYBXpZ7VF604dHw32kRoBSI32ADJMUKqyPqam0EzuM/5EdmYBTnjYfgA6pzd n5gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=K7sR63lDZ6+bfE96HoDVWneUYi62vGyC0+ZoJVjOpqo=; b=R/M5tG9FIZiIeSJYtF9IMA4xrabqMVXv/H5yf0zxsex+VaPGQ2JHYK+D7pDDBdMCTm d61EQMsy0E6+iK0ySct0WywZRA7LVfUCEzDZpIvf7SUB0EZ9WTmJF3AuwRSpjtsB3jPm TRRegTzPi8lXlDgkga+H3CvnY2QKHAcuHH6Aj2SSry2Of6AyWHZqWMzRJS25kU7d0kdj N4Nqgg6UvL0dPq0CIi4xt1Bko2szxY85RiddpsvUFoIkfIZaj+4ZGXCZMFtpipioHghP XTznM+81sX8Ehhv6BaYnKdvkzLb+enNElVyhAMP/csFTOivVSNv466QjaC4AMliFsGxC 3+WA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 65si15737099ple.240.2019.07.15.02.22.47; Mon, 15 Jul 2019 02:23:03 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729563AbfGOJVM (ORCPT + 99 others); Mon, 15 Jul 2019 05:21:12 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:43397 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729558AbfGOJVM (ORCPT ); Mon, 15 Jul 2019 05:21:12 -0400 Received: from mail-pg1-f197.google.com ([209.85.215.197]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1hmxAT-0008Rm-Hd for linux-kernel@vger.kernel.org; Mon, 15 Jul 2019 09:21:09 +0000 Received: by mail-pg1-f197.google.com with SMTP id 8so4831530pgl.3 for ; Mon, 15 Jul 2019 02:21:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=K7sR63lDZ6+bfE96HoDVWneUYi62vGyC0+ZoJVjOpqo=; b=Y4ox/p62jSquLjCOUSEvYyc7ydWem9JjaI0OgMVzg0Z4DAPqKbcXol0X6M4OTAMzh/ 9vK/b5CsO6+J85bIhh8Z58X/UeEYQ3Ehx3raTpTqY+yW/S9MjWZIVO/MK8rwpMdxBJ6x IBqhwgJ1aanFOn05GDNZ/T1qY35LsYLLybi3cB40S2rcJkDPL3hBpDacN9zBiGiH4ZVI TTxbHC5dxLugIXo4NzD53DfnHdqzgjbf5rCjLyFAAMX+aXLuWp4sBPb5nlfxQEVh+/xN FgW92vJJseDA1bWkLWFTwnJ/VSfERQTUR5a17FIYFbyoXkAxLgVZsReygzjvbkddQ+yM OXTA== X-Gm-Message-State: APjAAAUgX8kCpOZ/nDB/GvZZdQcv5+hQYmlaxjKZBvpeOeFXWHCSLMRy SxFneL3SLPCaNH9zJy2UE9uVQpxUgC+fsK67SI45ev7okV/vZ13Dmoa7GkkFbLZ84lAEPhN9v6z JlUIzulF6VFqNAEp5Wf0IU3RHo1ceJl+iHcDpqK+pnA== X-Received: by 2002:a17:90a:601:: with SMTP id j1mr27617736pjj.96.1563182468248; Mon, 15 Jul 2019 02:21:08 -0700 (PDT) X-Received: by 2002:a17:90a:601:: with SMTP id j1mr27617713pjj.96.1563182467961; Mon, 15 Jul 2019 02:21:07 -0700 (PDT) Received: from [10.101.46.105] (61-220-137-37.HINET-IP.hinet.net. [61.220.137.37]) by smtp.gmail.com with ESMTPSA id u3sm14656829pjn.5.2019.07.15.02.21.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jul 2019 02:21:07 -0700 (PDT) Content-Type: text/plain; charset=utf-8; delsp=yes; format=flowed Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: [Intel-wired-lan] [PATCH] e1000e: Make speed detection on hotplugging cable more reliable From: Kai Heng Feng In-Reply-To: <37a1e2af-64c6-4515-5dcc-6051e1192636@molgen.mpg.de> Date: Mon, 15 Jul 2019 17:21:04 +0800 Cc: Jeff Kirsher , netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit Message-Id: <1BD6D413-E22A-40A3-B8E8-B9B56B9B5232@canonical.com> References: <20190715084355.9962-1-kai.heng.feng@canonical.com> <017771d5-f168-493a-46a1-88e513941ba1@molgen.mpg.de> <37a1e2af-64c6-4515-5dcc-6051e1192636@molgen.mpg.de> To: Paul Menzel X-Mailer: Apple Mail (2.3445.104.11) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org at 5:06 PM, Paul Menzel wrote: > Dear Kai Heng, > > > (with or without hyphen?) > > On 7/15/19 11:00 AM, Kai Heng Feng wrote: >> at 4:52 PM, Paul Menzel wrote: > >>> On 7/15/19 10:43 AM, Kai-Heng Feng wrote: >>>> After hotplugging an 1Gbps ethernet cable with 1Gbps link partner, the >>>> MII_BMSR may reports 10Mbps, renders the network rather slow. >>> >>> s/may reports/may report/ >>> s/renders/rendering/ >> >> Apparently English isn’t my mother tongue ;) > > No problem. Mine neither. > >>>> The issue has much lower fail rate after commit 59653e6497d1 ("e1000e: >>>> Make watchdog use delayed work"), which esssentially introduces some >>> >>> essentially >> >> Ok. >> >>>> delay before running the watchdog task. >>>> >>>> But there's still a chance that the hotplugging event and the queued >>>> watchdog task gets run at the same time, then the original issue can be >>>> observed once again. >>>> >>>> So let's use mod_delayed_work() to add a deterministic 1 second delay >>>> before running watchdog task, after an interrupt. >>> >>> I am not clear about the effects for the user. Could you elaborate >>> please? Does the link now come up up to one second later? >> >> Yes, the link will be up on a fixed one second later. >> >> The delay varies between 0 to 2 seconds without this patch. > > Is there no other fix? Regarding booting a system fast (less than six > seconds), a fixed one second delay is quite a regression on systems where > it worked before. This only affects when ethernet cable is hot plugged. Kai-Heng > >>>> Signed-off-by: Kai-Heng Feng >>> >>> Any bug URL? >> >> If maintainers think it’s necessary then I’ll file one. > > Not necessary, if there is none. I thought you had one in Launchpad or so. > > > Kind regards, > > Paul