Received: by 10.192.165.148 with SMTP id m20csp1718833imm; Thu, 26 Apr 2018 00:56:14 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/p7rwEZSuCQP35KQFrTJmPXVblbhHXgu7pBIj2gpMKS2RD2WW1ud8e8GUsK4WK/MkXpwQd X-Received: by 2002:a17:902:43e4:: with SMTP id j91-v6mr33282337pld.118.1524729374490; Thu, 26 Apr 2018 00:56:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524729374; cv=none; d=google.com; s=arc-20160816; b=NgOqjmARvofLj3OalbbkS1eWQQk9iOWnoa3BUeJqwoZeVBph4R5lxcfU7jjDf8OnAF C+dfA0D5AJwNIbd+2fPXTjBwgsURypW59/IjyfML7b6dz0krRm1RNOJI1AAExTZ/udKr PAhhZ7NuC1HYLcefymDXl8iXLcuRMujdCqAf5RLfPKfluTNpF9C97FWcnpyzRCGAYaXi E2VLcnrOgPSVLL8skNJ9g7qItRN8guV6X5y1x2wMrbz7jp6EwHjwYidAVVl0RumkFZj8 mBBjGbab4w8B9oj4xmUK2eKn81oHebkx6AFSdq/aqKBK5l535SA8W5AI3TFTpDfXuhUM aLCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=hnq5/h0mhUhf2OQGv+J9uhI265gppn5v3B7trJTJf8I=; b=GJql3TcwuCF+dz+PYLObaO3a+jZr4vo82u7RTmic3pZAA67M+MkFhLFj0TGABy+qW+ M2Vw9z6Mi4PUl/s5nm6fCEns9hVw/2Ah8HG74jTVFcr9D/qkqYOv5AS8dd1FnnJSQqPH hBYVtZ/nVukMX91/Yf6h6KQunOQJ3w78L0Pgnya89gh2LgOzNSTyc4LogHFtdM/0Gx6p LsJI2+YKEoUjNZ0l5JD/8Ws0JErivn6u78Lv135LVMOn2CHBkzvNB4Ub0GX04PxQAOl8 WMMuqCa4iYkyrq7JVSW7BCMQVS3X9snBr8jswvGWJY/fhU/dqY31XJYed4sIxUOu/WBp IB1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A22KXJ5G; 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 v8si16906352pfm.241.2018.04.26.00.56.00; Thu, 26 Apr 2018 00:56:14 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A22KXJ5G; 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 S1754324AbeDZHyh (ORCPT + 99 others); Thu, 26 Apr 2018 03:54:37 -0400 Received: from mail-wr0-f170.google.com ([209.85.128.170]:45009 "EHLO mail-wr0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754282AbeDZHya (ORCPT ); Thu, 26 Apr 2018 03:54:30 -0400 Received: by mail-wr0-f170.google.com with SMTP id o15-v6so55721400wro.11 for ; Thu, 26 Apr 2018 00:54:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=hnq5/h0mhUhf2OQGv+J9uhI265gppn5v3B7trJTJf8I=; b=A22KXJ5GCeDqrKsbkRwkh78s3nJ5MCsGxTyq8eKKjRUY6i3wsBvc2zx9wF2+cMWOJ+ QhpjHpRg3osw/cey0/KMXixMOBpuBtt9WfKiNAA8xm6G/3Cf7VM9mkFI5DjrUqTOFvTX 6M7+ouE6/QtoQeaPF0kKratORMbZ8EdAWqVWNNGkrLQr8tL3gZl6YRch5OYiu1QlTMdC DFvYBU6huPUtnoesBLOAuRZQkCRVNanR0mW8tPl+ri7/ldsBt6kRcCwMwGRuVplQx0Tz Aajzp8Ffrsr0tkQMgZ/a6SOCL7MnN0FtHxpz7Y0BpWx1FNEne/5r7ActRikbHwCs5eSf 3udQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=hnq5/h0mhUhf2OQGv+J9uhI265gppn5v3B7trJTJf8I=; b=GuVFVGib0wp40FMV5NiXQ8HETi3BnyjvywrE0/4t92pt1qaudyvImq1bzWh4tIkT+J i5QPREcywo5P/j2sbf70OpHP0GAREJ+igBtApyv6dOs4FEhxd9IPeXz+aq8EQh8s7XTY mBqmnFUm+cXg1mwPQMAyvzT0IyFzJAiZo15pIekqvvZxA4z5DBO3FBdDcuGWIKMOmkFc aUFQZ7Lj7LuNSKBf7BFaQo1H8IFwwS2GDD4brodXZO6681xv/kJ8EuUfG0wogFTcF/da 2CEHCje8eTYS2Y6ON5sVFX1A35nM8fXB8ocMJtk7mWlA5SDU9xLPFeKAiOfVLQ3FC9Ff HrWg== X-Gm-Message-State: ALQs6tCBCaK/CJR7V/zRrcESKZk/K+rq51JwrzpDRigyB7YOtFh7vz0e 9tXe/vKflRDDCVUM2nXZhPDzXw== X-Received: by 2002:adf:bbce:: with SMTP id z14-v6mr26843393wrg.183.1524729269150; Thu, 26 Apr 2018 00:54:29 -0700 (PDT) Received: from localhost (p5B3F6DEF.dip0.t-ipconnect.de. [91.63.109.239]) by smtp.gmail.com with ESMTPSA id x73sm4065702wmf.21.2018.04.26.00.54.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 26 Apr 2018 00:54:28 -0700 (PDT) From: Holger Schurig To: Alexander Duyck Cc: Jeff Kirsher , intel-wired-lan , LKML Subject: Re: [BUG] igb: reconnecting of cable not always detected In-Reply-To: References: <87h8o0ocul.fsf@gmail.com> <877eovobxl.fsf@gmail.com> Date: Thu, 26 Apr 2018 09:54:27 +0200 Message-ID: <8736zio11o.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Was the orange LED on the igb NIC or on the TL SG-108? Based on the > comment below I am assuming it is the switch. The LEDs were on the switch. When everything works, the switch says green == 1000 MB/s. When cable is disconnected, switch doesn't light any LED. When cable is inserted and things fail, the switch says orange LED == 100 MB/s. Sometimes the insertion process works, then the switch will go, of course, to the green LED == 1000 MB/s. I must admit that I didn't look at the LEDs of the device. Now I looked there, and the device the left+green LED is on. In the failed case (so, in the dmesg output the last thing I see is "Link is Down", but the device still has left+green LED on. The right+orange LED on the device seems to indicate traffic, and it is constantly off in the failed case. > I assume you mean "ethtool -r" since that is what is supposed to be > restarting negotiation. The "ethtool -i" is what you provided above. Maybe I've edited my text too much and moved output along. Anyway, in the failed case neither "ethtool- r eth0" nor "ethtool -i eth0" nor "mii-tool eth0" work at all, they all emit error warning. > Thanks. I'm suspecting we may need to instrument igb_rd32 at this > point. In order to trigger what you are seeing I am assuming the > device has been detached due to a read failure of some sort. I'll do that and reply later. I first need to understand this source part :-) > Another thing you could look at doing is narrowing down the possible > factors involved. You could go through and limit phy settings and look > at possibly dropping features such as EEE if it is enabled on the > device. I actually tried a driver patch to remove 1000 GB/s from the driver, in the assumption that maybe this specific hardware has a bad layout and thus trouble (I don't really think that, because I never observed any data transfer problem). So, is the following patch (that didn't help) what in the line of what you suggested? Index: linux-4.16/drivers/net/ethernet/intel/igb/igb_main.c =================================================================== --- linux-4.16.orig/drivers/net/ethernet/intel/igb/igb_main.c 2018-04-01 23:20:27.000000000 +0200 +++ linux-4.16/drivers/net/ethernet/intel/igb/igb_main.c 2018-04-24 11:35:17.420760650 +0200 @@ -2080,7 +2080,7 @@ if ((adapter->flags & IGB_FLAG_EEE) && (!hw->dev_spec._82575.eee_disable)) - adapter->eee_advert = MDIO_EEE_100TX | MDIO_EEE_1000T; + adapter->eee_advert = MDIO_EEE_100TX /* | MDIO_EEE_1000T */; return 0; } @@ -2908,7 +2908,7 @@ /* Initialize link properties that are user-changeable */ adapter->fc_autoneg = true; hw->mac.autoneg = true; - hw->phy.autoneg_advertised = 0x2f; + hw->phy.autoneg_advertised = 0x0f; hw->fc.requested_mode = e1000_fc_default; hw->fc.current_mode = e1000_fc_default; @@ -3099,7 +3099,7 @@ if ((!err) && (!hw->dev_spec._82575.eee_disable)) { adapter->eee_advert = - MDIO_EEE_100TX | MDIO_EEE_1000T; + MDIO_EEE_100TX /* | MDIO_EEE_1000T */; adapter->flags |= IGB_FLAG_EEE; } break; @@ -3110,7 +3110,7 @@ if ((!err) && (!hw->dev_spec._82575.eee_disable)) { adapter->eee_advert = - MDIO_EEE_100TX | MDIO_EEE_1000T; + MDIO_EEE_100TX /* | MDIO_EEE_1000T */; adapter->flags |= IGB_FLAG_EEE; } } Index: linux-4.16/drivers/net/ethernet/intel/igb/igb_ethtool.c =================================================================== --- linux-4.16.orig/drivers/net/ethernet/intel/igb/igb_ethtool.c 2018-04-01 23:20:27.000000000 +0200 +++ linux-4.16/drivers/net/ethernet/intel/igb/igb_ethtool.c 2018-04-24 11:42:36.737959749 +0200 @@ -170,7 +170,7 @@ SUPPORTED_10baseT_Full | SUPPORTED_100baseT_Half | SUPPORTED_100baseT_Full | - SUPPORTED_1000baseT_Full| + /* SUPPORTED_1000baseT_Full| */ SUPPORTED_Autoneg | SUPPORTED_TP | SUPPORTED_Pause); @@ -3003,7 +3003,7 @@ (hw->phy.media_type != e1000_media_type_copper)) return -EOPNOTSUPP; - edata->supported = (SUPPORTED_1000baseT_Full | + edata->supported = (/* SUPPORTED_1000baseT_Full | */ SUPPORTED_100baseT_Full); if (!hw->dev_spec._82575.eee_disable) edata->advertised =