Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp64823rwd; Wed, 24 May 2023 14:13:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4/gL8GZsCMqH2nQCRkFQiMcKRV0k4vNYeO6xCqYUIcu9n+rf7ZgA2Y3MgMG4yJJdj7W3Q+ X-Received: by 2002:a05:6a20:3ca7:b0:103:e735:d157 with SMTP id b39-20020a056a203ca700b00103e735d157mr21189548pzj.59.1684962829298; Wed, 24 May 2023 14:13:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684962829; cv=none; d=google.com; s=arc-20160816; b=j8HIr2vsg1S1kfQGxxz+Etj3ghxC9B6UXP7mKlWE+jli9i38NcSGBrSMjBqGsJfRCW gQYcQvVUcWcdSJ0lCTDHRwVPMK1wEnzFXy1AYZ57ncVdDHsbKGeTes6lGEhAEb53xfDs mTtsll5Mf4wp3/oyUaHKO+njKkf5/Cm9JwGC9DMnxAPM2jQo2dTJjQMHpLiq4SHuemOK CfALdLcyujO8GO0aCpX1dwjldoeQ7Pp9hTHQQP/wS9Y+IsiwtN7JQfi/ULrxHKaTs79u vAnuqnzWs4duzuwek71Bt/vjND5BxDFymZBCWqR/7MYbox7HO2SVvgWExD1s/s8Yr7NO n4uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ecRHb3a4uZb7D9V7KAm1/nNRXIsZmVIjd+RGF7WArC0=; b=qzc7X1aZw1v9WKioEnHULnDpUBsNwfSAaUaIBz01hRDBtX+8Hcuvw0z1UpdKRfvmAh D0DTiA1WNOEnw8uj4DLmINzyx3m/2BdDkCO5sak3zxVyJKbxmiTDMBqsCqwJa5L963cr SVmIeimcDVz2GnfYj3GCPWMOwM/0kOoi7YOBaey2wXpSQLI7KvMKygGklVixeeEDEeIj xmFpcAy8RRp12mkWgAHJGJm3dDaAb9qpdMhhODVkrc2w4up3T8Po/RFaPqnFbxWVtJyw 53Mf8/xBYr2hcGC7zkclu0Tcz5p/qs52h2/lKPQnnVGljj7oEKNQFjKAK3fjhY5RMnpO OJ3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Y5GLMKGF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b5-20020a63eb45000000b005347ef6ec11si3450116pgk.760.2023.05.24.14.13.34; Wed, 24 May 2023 14:13:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Y5GLMKGF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231890AbjEXVCB (ORCPT + 99 others); Wed, 24 May 2023 17:02:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229646AbjEXVB7 (ORCPT ); Wed, 24 May 2023 17:01:59 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2B1EB3 for ; Wed, 24 May 2023 14:01:57 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-510e5a8704bso783a12.1 for ; Wed, 24 May 2023 14:01:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1684962116; x=1687554116; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ecRHb3a4uZb7D9V7KAm1/nNRXIsZmVIjd+RGF7WArC0=; b=Y5GLMKGFPpIlQIqkAD39okDyWwz+EMI6KjtjQk4TVsTOtaWHy4Lt7mmHTJmGhBmz/S 7Xp5+LCH0/jjszqdPtFwYFtRNcaNAmMyWgsMV8z+snOmyhRqZ/RFPxUc/O05u+Wt8z27 wkUu4Mkt1sKkoHYscyuLFbyJzwHe3LU0BW2Ks= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684962116; x=1687554116; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ecRHb3a4uZb7D9V7KAm1/nNRXIsZmVIjd+RGF7WArC0=; b=P3V6CjQLl3Wrp2xrR7yqXrW3+cewOTvGEJ0+H/rXIb5fkm3ez3TS2q4mXy60QZ9zlj rAcdCD/4kTvDPq60MZkg8HrpsCMzIruNuSMufZuQYP43i6QNidFYvXs5of+sl2WUJx0m s/AkUeoIrLi4gj11sMyCc+f0ssKEpQ59Xju3//gqHbfJrd/29WX9yco5s0pFZcWox4tl XP8pAm0b/4RkmqnTKrP7C3l05gtEfXK2hqhtbmU1FUGug75V40wx+OJV85XbM+EMq+wG gURXYuuvo4A1f2EOb2G4h1viATpeMFFDL6O41rikNFcp90qyB/ks+TSxK1/XfL5K9kTY P7Aw== X-Gm-Message-State: AC+VfDyfvEYsbtd94K76JPg+TBsNLyKmOLtbya6W/Rnoh+8ifbHsYXE8 S1MBRyWJTfJ1Gb02ygvkZ4nNBDnGPS98U36CKztDhg== X-Received: by 2002:a50:cd47:0:b0:4bc:dee8:94ca with SMTP id d7-20020a50cd47000000b004bcdee894camr23378edj.7.1684962116191; Wed, 24 May 2023 14:01:56 -0700 (PDT) MIME-Version: 1.0 References: <20230518072657.1.If9539da710217ed92e764cc0ba0f3d2d246a1aee@changeid> <52cfebaf-79f6-c318-c14b-3716555d0e8f@intel.com> In-Reply-To: From: Grant Grundler Date: Wed, 24 May 2023 14:01:44 -0700 Message-ID: Subject: Re: [PATCH] igb: Fix igb_down hung on surprise removal To: "Loktionov, Aleksandr" Cc: "Nguyen, Anthony L" , Grant Grundler , Pavan Chebbi , "Neftin, Sasha" , "Ruinskiy, Dima" , Ying Hsu , "netdev@vger.kernel.org" , "David S. Miller" , Eric Dumazet , Jakub Kicinski , "Brandeburg, Jesse" , Paolo Abeni , "intel-wired-lan@lists.osuosl.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-9.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_SPF_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 24, 2023 at 5:34=E2=80=AFAM Loktionov, Aleksandr wrote: > > Good day Tony > > We reviewed the patch and have nothing against. Thank you for reviewing! Can I take this as the equivalent of "Signed-off-by: Loktionov, Aleksandr "? Or since Tony is listed in MAINTAINERS for drivers/net/ethernet/intel, is he supposed to provide that? cheers, grant > > With the best regards > Alex > ND ITP Linux 40G base driver TL > > > > > -----Original Message----- > > From: Nguyen, Anthony L > > Sent: Tuesday, May 23, 2023 8:04 PM > > To: Grant Grundler ; Pavan Chebbi > > ; Loktionov, Aleksandr > > ; Neftin, Sasha = ; > > Ruinskiy, Dima > > Cc: Ying Hsu ; netdev@vger.kernel.org; David S. > > Miller ; Eric Dumazet ; > > Jakub Kicinski ; Brandeburg, Jesse > > ; Paolo Abeni ; intel- > > wired-lan@lists.osuosl.org; linux-kernel@vger.kernel.org > > Subject: Re: [PATCH] igb: Fix igb_down hung on surprise removal > > > > On 5/22/2023 1:16 PM, Grant Grundler wrote: > > > On Thu, May 18, 2023 at 3:36=E2=80=AFAM Pavan Chebbi > > wrote: > > >> > > >> On Thu, May 18, 2023 at 12:58=E2=80=AFPM Ying Hsu > > wrote: > > >>> > > >>> diff --git a/drivers/net/ethernet/intel/igb/igb_main.c > > >>> b/drivers/net/ethernet/intel/igb/igb_main.c > > >>> index 58872a4c2540..a8b217368ca1 100644 > > >>> --- a/drivers/net/ethernet/intel/igb/igb_main.c > > >>> +++ b/drivers/net/ethernet/intel/igb/igb_main.c > > >>> @@ -9581,6 +9581,11 @@ static pci_ers_result_t > > igb_io_error_detected(struct pci_dev *pdev, > > >>> struct net_device *netdev =3D pci_get_drvdata(pdev); > > >>> struct igb_adapter *adapter =3D netdev_priv(netdev); > > >>> > > >>> + if (state =3D=3D pci_channel_io_normal) { > > >>> + dev_warn(&pdev->dev, "Non-correctable non-fatal err= or > > reported.\n"); > > >>> + return PCI_ERS_RESULT_CAN_RECOVER; > > >>> + } > > >>> + > > >> > > >> This code may be good to have. But not sure if this should be the fi= x > > >> for igb_down() synchronization. > > > > > > I have the same opinion. This appears to solve the problem - but I > > > don't know if there is a better way to solve this problem. > > > > > >> Intel guys may comment. > > > > > > Ping? Can we please get feedback from IGB/IGC maintainers this week? > > > > > > (I hope igc maintainers can confirm this isn't an issue for igc.) > > > > Adding some of the igb and igc developers. > > > > > cheers, > > > grant > > > > > >> > > >>> netif_device_detach(netdev); > > >>> > > >>> if (state =3D=3D pci_channel_io_perm_failure) > > >>> -- > > >>> 2.40.1.606.ga4b1b128d6-goog > > >>> > > >>>