Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp769641rwd; Thu, 18 May 2023 03:49:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7U2V4Q0O6tY49HGV3vpwYJw7HnTebMa/urtpjdTY4+GnEm0+70p+GI+kQwjcUtpFs5+tdR X-Received: by 2002:a05:6a00:cd1:b0:647:e6d9:88c2 with SMTP id b17-20020a056a000cd100b00647e6d988c2mr4841254pfv.0.1684406993517; Thu, 18 May 2023 03:49:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684406993; cv=none; d=google.com; s=arc-20160816; b=fnfC59U0s6VGYRx6mDPuwWdrEXce5pz3tKdm5rJSmgW/2u3D3SeTchppmZhun6VWgK bVLDMgJ5Ysh070gRP14BFV6rNoqKQ34k6bKG63uPfmSy03eaLYTdulXW4A+CIjIk/xW3 5bx4z1IckCvwgvPCEwg3CAUsWWQKFNctKeL7jzTVy7Isd97A5vJZ6Wde0PQdGjZF88Y0 rB8mE16Yky+MnSBeTm7PGGlXR42CKNd06JT4UHkmucjA+dp9pMyyHFfZwH9fleWHzA9A hOAv9aP27/9u7sbAC8RJrpTfNpKBJdh9C02Z2WwdU9JY/hs5+tM+YMyumjE3BhpfiDOE JELA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=t9GNNZL88GhoP2ldlrtLGAlDR9skCT7Cl3Bzo8udloQ=; b=n8P0XiMPjp3MbiyQNKQnjZfhMDLSXWN0V0KkoPxCOxjEdv5xalxuurBodAFNl5xx6Y b3IqR1/NAz9Tbhn9HB3m7iyXTXEBsp29CoiPy+VRVlB6dQT97Ji9S/hfT9MPIiPPt2Xj m0GxCmLuVz/CWpv34URALhh2LBmB8WxugvtOTOb/XCl6iccKtUT0oQ3Ith9PjlvanVba 3xgTiIXvoUwqyQPk137G2c2edfZKSA4GBlatzbDP9vACdwC8jLKtiIPmUTY+S7+lZqSA 73tyZ6r2eqGpxQc2fa9RXEGS/ZglGYSbZ2p6swqyzw5lCAX7OyGGVGm8lqxnfynOJ/37 w5sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=LPhdDAtZ; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bv184-20020a632ec1000000b005346d16e6d3si1017072pgb.618.2023.05.18.03.49.41; Thu, 18 May 2023 03:49:53 -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=@broadcom.com header.s=google header.b=LPhdDAtZ; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230446AbjERKgc (ORCPT + 99 others); Thu, 18 May 2023 06:36:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229726AbjERKga (ORCPT ); Thu, 18 May 2023 06:36:30 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59D5D1BFB for ; Thu, 18 May 2023 03:36:29 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1ae4d1d35e6so14706725ad.0 for ; Thu, 18 May 2023 03:36:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1684406189; x=1686998189; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=t9GNNZL88GhoP2ldlrtLGAlDR9skCT7Cl3Bzo8udloQ=; b=LPhdDAtZxcw4EH6qfOxEXr/AmBtg0+7x8y5bGclyLCywRxMFABmCuO3VyqdBo9jy++ DmdEjYRAYlZ7XHokI42jFl/emzId+3nK0sQp85RH50Ipt08txRzcoae/DRu69A1d0re+ lpiBfX/a8oTl1s6SUg0tbk1AB4rDMhI/7wv5Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684406189; x=1686998189; h=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=t9GNNZL88GhoP2ldlrtLGAlDR9skCT7Cl3Bzo8udloQ=; b=jqRozjKqqxX2ugNHJRCQqYYX3axOoH6imO88jRfAPJLW0gB2DmSyld/eNr9IiuDDr9 JMZZKmdLMSetQmBk68wzFTSa2dKtTtyTTettWoCJTXs+uVlqSdfz4r4HSbj8EW/PhFne 6eUw9muU8L/Yb7ljJT0DB/pwe3PlZXstHnvNiH1ASb2MYJZI9IreWt+ivwFJpfGET1FC KSWQ/3Bu5LIBEZss87086LYQvO8aMbFqAZJvKZn8eVYHj/MZdKIrLADvntBf1bkk96ei w1o4x01IxDYJxyWdLO8Yx9qosZ1rhO/yoPQJxMCjXxWRTkI9BkkFxLIyPwM0qCRT0SLw 2laA== X-Gm-Message-State: AC+VfDwJbNrMEGgqt7IqZDrCYVhn0S51Bq9YlhdEE3FcImx6v0l/8Yic xVbVn8VgDXR0MOp4lR4NOCEhwGnEHrb29ucRNQStow== X-Received: by 2002:a17:902:db07:b0:1ae:89a:9e with SMTP id m7-20020a170902db0700b001ae089a009emr2103737plx.61.1684406188648; Thu, 18 May 2023 03:36:28 -0700 (PDT) MIME-Version: 1.0 References: <20230518072657.1.If9539da710217ed92e764cc0ba0f3d2d246a1aee@changeid> In-Reply-To: <20230518072657.1.If9539da710217ed92e764cc0ba0f3d2d246a1aee@changeid> From: Pavan Chebbi Date: Thu, 18 May 2023 16:06:16 +0530 Message-ID: Subject: Re: [PATCH] igb: Fix igb_down hung on surprise removal To: Ying Hsu Cc: netdev@vger.kernel.org, grundler@chromium.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Jesse Brandeburg , Paolo Abeni , Tony Nguyen , intel-wired-lan@lists.osuosl.org, linux-kernel@vger.kernel.org Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="0000000000008f788a05fbf560b0" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 --0000000000008f788a05fbf560b0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, May 18, 2023 at 12:58=E2=80=AFPM Ying Hsu wr= ote: > > diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethe= rnet/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(stru= ct 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 error rep= orted.\n"); > + return PCI_ERS_RESULT_CAN_RECOVER; > + } > + This code may be good to have. But not sure if this should be the fix for igb_down() synchronization. Intel guys may comment. > netif_device_detach(netdev); > > if (state =3D=3D pci_channel_io_perm_failure) > -- > 2.40.1.606.ga4b1b128d6-goog > > --0000000000008f788a05fbf560b0 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQbQYJKoZIhvcNAQcCoIIQXjCCEFoCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg3EMIIFDTCCA/WgAwIBAgIQeEqpED+lv77edQixNJMdADANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA5MTYwMDAwMDBaFw0yODA5MTYwMDAwMDBaMFsxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMTEwLwYDVQQDEyhHbG9iYWxTaWduIEdDQyBS MyBQZXJzb25hbFNpZ24gMiBDQSAyMDIwMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA vbCmXCcsbZ/a0fRIQMBxp4gJnnyeneFYpEtNydrZZ+GeKSMdHiDgXD1UnRSIudKo+moQ6YlCOu4t rVWO/EiXfYnK7zeop26ry1RpKtogB7/O115zultAz64ydQYLe+a1e/czkALg3sgTcOOcFZTXk38e aqsXsipoX1vsNurqPtnC27TWsA7pk4uKXscFjkeUE8JZu9BDKaswZygxBOPBQBwrA5+20Wxlk6k1 e6EKaaNaNZUy30q3ArEf30ZDpXyfCtiXnupjSK8WU2cK4qsEtj09JS4+mhi0CTCrCnXAzum3tgcH cHRg0prcSz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