Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4743587pjb; Mon, 27 Jul 2020 04:08:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2OR9xpD/Ybi4CA7uY6KM1mlX0WVB+nBni7qLJEd9+Ro5tCEuDXU3dlnLFTGFTLL1GMWAD X-Received: by 2002:aa7:d458:: with SMTP id q24mr20593687edr.25.1595848113519; Mon, 27 Jul 2020 04:08:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595848113; cv=none; d=google.com; s=arc-20160816; b=Fo3g3XMtG77M5qbTSCT0NnR890/EQwmuZNunsgUZhf4osjYCkwXlHSMEI1sE779iOK 8Q2zAlu8mZ5ZYwP3Sh4/U9CYxnvyeRs0TDG85D47A6WsQkNbyfI8AVsso5IjUiKnnEDV U9f48FbjtYbkIpXvRZz8i+kbl3vGvlibuKv6OJ7uDd5oiGg+XDovUHdfXxjVCiUi3T7/ 8jSH7LyWc2YtmtE1ekEd0T7OmtZQGLiQrrXn8rMknNcnopjvCsnpcQ8gf6hEQ+N/6sQn R1BRj/brmy61KkBrZAhH3zYXPrD8vypsODp+57kmbkl9sJ0Jzwu9ktrz6cdnvAmulu5O NVtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=v3ngmn6DBoAoF7+NZkNcDP4s4RrikW8aOIqLQlmXabA=; b=Y5CsL0XOhJeAKIwNU99ce1c9+iPwWRp+we38pLkUr0KpXqBW+p/2oJ6nIZRTozdzF3 uHrZkv/7pFyhT1vq5MkSTtyluCEGWdMzVDYEwIA+x2+TRHshN6RHkMFkyZxIdDVjd6uo o4+o0NtTLIjGJCbVXz2y7Gfrp3A2vk+2xqpVUkNARfc4TfkbxPBIaYntk/rtID32URiQ EmODtlKcR9wdNT5g+preSF8cUxPBOklg8Cez6bmy27f3OZszwc1pI4SUIQMPABSCDzIB q02JN2awTWoKaOK2Cg8NwC2xJOV5micnD8MGTM1EFvlO1/5ostQvG3W0PKf+CtW5g+nW CIpA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w15si5574783ejk.680.2020.07.27.04.08.11; Mon, 27 Jul 2020 04:08:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728586AbgG0LGY (ORCPT + 99 others); Mon, 27 Jul 2020 07:06:24 -0400 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:40686 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728528AbgG0LGQ (ORCPT ); Mon, 27 Jul 2020 07:06:16 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from moshe@mellanox.com) with SMTP; 27 Jul 2020 14:06:12 +0300 Received: from dev-l-vrt-135.mtl.labs.mlnx (dev-l-vrt-135.mtl.labs.mlnx [10.234.135.1]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 06RB6CNb022190; Mon, 27 Jul 2020 14:06:12 +0300 Received: from dev-l-vrt-135.mtl.labs.mlnx (localhost [127.0.0.1]) by dev-l-vrt-135.mtl.labs.mlnx (8.15.2/8.15.2/Debian-10) with ESMTP id 06RB6CtK002390; Mon, 27 Jul 2020 14:06:12 +0300 Received: (from moshe@localhost) by dev-l-vrt-135.mtl.labs.mlnx (8.15.2/8.15.2/Submit) id 06RB6CKl002389; Mon, 27 Jul 2020 14:06:12 +0300 From: Moshe Shemesh To: "David S. Miller" , Jiri Pirko , Vasundhara Volam Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Moshe Shemesh Subject: [PATCH net-next RFC 04/13] net/mlx5: Set cap for pci sync for fw update event Date: Mon, 27 Jul 2020 14:02:24 +0300 Message-Id: <1595847753-2234-5-git-send-email-moshe@mellanox.com> X-Mailer: git-send-email 1.8.4.3 In-Reply-To: <1595847753-2234-1-git-send-email-moshe@mellanox.com> References: <1595847753-2234-1-git-send-email-moshe@mellanox.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Set capability to notify the firmware that this host driver is capable of handling pci sync for firmware update events. Signed-off-by: Moshe Shemesh --- drivers/net/ethernet/mellanox/mlx5/core/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/main.c b/drivers/net/ethernet/mellanox/mlx5/core/main.c index e32d46c33701..5fb23cfecd71 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/main.c @@ -548,6 +548,9 @@ static int handle_hca_cap(struct mlx5_core_dev *dev, void *set_ctx) if (MLX5_CAP_GEN_MAX(dev, dct)) MLX5_SET(cmd_hca_cap, set_hca_cap, dct, 1); + if (MLX5_CAP_GEN_MAX(dev, pci_sync_for_fw_update_event)) + MLX5_SET(cmd_hca_cap, set_hca_cap, pci_sync_for_fw_update_event, 1); + if (MLX5_CAP_GEN_MAX(dev, num_vhca_ports)) MLX5_SET(cmd_hca_cap, set_hca_cap, -- 2.17.1