Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C6453C6FA99 for ; Wed, 8 Mar 2023 00:22:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229626AbjCHAWK (ORCPT ); Tue, 7 Mar 2023 19:22:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229480AbjCHAV6 (ORCPT ); Tue, 7 Mar 2023 19:21:58 -0500 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C88F9E064 for ; Tue, 7 Mar 2023 16:21:57 -0800 (PST) Received: by mail-ed1-x52f.google.com with SMTP id j11so39856213edq.4 for ; Tue, 07 Mar 2023 16:21:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1678234916; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=oXjRHcNsnkY3xkLn/e1tA9hkhSGkOTP0VKqnHH8GhN4=; b=F0wt26z+XBNZoRKEMC2lfgIn3ktjPwrdPQ35JzHFH7yEuXkHvq8bBId1T+PjES1KbX k3wSTx80bU8AneNHMZXH9vZdsgF4Vrd3/c2FtePQSOkjZSfX8lUCSdxy0KxWkCEdklca uJ34die2bowdo0LKAWIPhQx4zwDErQIGvVSeM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678234916; 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=oXjRHcNsnkY3xkLn/e1tA9hkhSGkOTP0VKqnHH8GhN4=; b=coygqfxrKw9qRO6aoXlQdJWgpyGTggjXc30GeG4ZKDbIT7SF/nxMLnK/8Z5ouREa/V VZQIL7/pqzaLIyzZpJkJe4/eD0W/vvBsW40UGe3+3gs8XAILV0hBOm9lZ3wikLbPLz8/ E/u50h+KEA7z0Pn8SnmAOmQrsnlhRCTfYqNQwXH5dM2KJUNqno7epXAlLgluWtXQqu2U qrtrhjTW2VhlKeyVAnp5SgbnNqoj1Y4/S0s8+vyAuFJY8HLffUfYXfXFWfkcoGpuPzp+ WwTRZrcT71HB/aeo/1Sue+PDihNmrZKt4X76ecKxY0k80rWHzedtXN2ri4HBZHDEJhKV NLLg== X-Gm-Message-State: AO0yUKV3csSHwmPhljZ3GHRRLyXlJbiCJrvTLP39rzpx5BwVpF5RB2+o E9VFUXjiC1a4D+kVFx9i/6cishxeIDr1xI5ByT1tgz8X3udvEL3v X-Google-Smtp-Source: AK7set9gZM83S9EpQ6INd2l3Y9ySn5mSbOZ063EcuPq6WW4k+GkFU8nqru3WHAzxVm5/1GmrvzoSbG0OQk77tSQqcGY= X-Received: by 2002:a17:906:6d55:b0:8d0:2c55:1aa with SMTP id a21-20020a1709066d5500b008d02c5501aamr7422415ejt.0.1678234915790; Tue, 07 Mar 2023 16:21:55 -0800 (PST) MIME-Version: 1.0 References: <20230307181940.868828-1-helgaas@kernel.org> <20230307181940.868828-4-helgaas@kernel.org> In-Reply-To: <20230307181940.868828-4-helgaas@kernel.org> From: Michael Chan Date: Tue, 7 Mar 2023 16:21:43 -0800 Message-ID: Subject: Re: [PATCH 03/28] bnx2: Drop redundant pci_enable_pcie_error_reporting() To: Bjorn Helgaas Cc: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Helgaas , Rasesh Mody , GR-Linux-NIC-Dev@marvell.com Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="00000000000007788205f65884e6" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --00000000000007788205f65884e6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Mar 7, 2023 at 10:20=E2=80=AFAM Bjorn Helgaas = wrote: > > From: Bjorn Helgaas > > pci_enable_pcie_error_reporting() enables the device to send ERR_* > Messages. Since f26e58bf6f54 ("PCI/AER: Enable error reporting when AER = is > native"), the PCI core does this for all devices during enumeration, so t= he > driver doesn't need to do it itself. > > Remove the redundant pci_enable_pcie_error_reporting() call from the > driver. Also remove the corresponding pci_disable_pcie_error_reporting() > from the driver .remove() path. > > Note that this only controls ERR_* Messages from the device. An ERR_* > Message may cause the Root Port to generate an interrupt, depending on th= e > AER Root Error Command register managed by the AER service driver. > > cd709aa90648 ("bnx2: Add PCI Advanced Error Reporting support.") added > pci_enable_pcie_error_reporting() for all devices, and c239f279e571 ("bnx= 2: > Enable AER on PCIE devices only") restricted it to BNX2_CHIP_5709 devices > to avoid an error message when it failed on non-PCIe devices. The PCI co= re > only enables PCIe error reporting on PCIe devices, which I assume means > BNX2_CHIP_5709. > > Signed-off-by: Bjorn Helgaas > Cc: Rasesh Mody > Cc: GR-Linux-NIC-Dev@marvell.com > Cc: Michael Chan Reviewed-by: Michael Chan Thanks. --00000000000007788205f65884e6 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 AxMKR2xvYmFsU2lnbjAeFw0yMDA5MTYwMDAwMDBaFw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