Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp476675pxk; Thu, 1 Oct 2020 07:07:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2I200Q0SnMdEeBbOFHZIQ6WarWstKsWP+7M0I1PlmNac5n9U5Ge/hTeUf13sAuoIrbXAy X-Received: by 2002:aa7:dd8b:: with SMTP id g11mr8717778edv.22.1601561250674; Thu, 01 Oct 2020 07:07:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601561250; cv=none; d=google.com; s=arc-20160816; b=pvHfGdxQStUKcI6ZzVTandvnTjR8MLyKjRrJS2epOzLpfJcYg21XVMa32iOWBw2DFQ dA9z8ZwtAknXrWzd6BFb38Pt9l4u2aFWc2tJ+QKWDNWZGmTv9OLmvfDyL31SyguxTSgC xNpKeAVQH7SXF1aNuDCxxQeT38gJ0y//BuO3p2b+XJ2Z/71iis08RaVcxC7LxLXDzOQe 30kD/WOBVOXT4HVCAVAGaN7NWuNOpNk6CLJwNN9ekLhj7JENJqmc7v5ljs4kHRsAeE88 POLrtZcHk2ypcawFnSaq7P+jGWjW8rqRN4vbKk6SbIw30B8Bq/KEBk/K65nK6bVi6Ih8 n+2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=GOQxMYohdizn1iWMXH2Fd9J4+p9Dg08Vvy6wozPZIHQ=; b=VO5ZoUE8BwC6Xq98K4BHldhta0m8MmezQ6hyFiKvsJof+owNfdsJ2oYra3YeoktDO+ QIfP1TxMV40urK2sT3XvoRjKCnZfRWLCF1pWM/H5SDpwt4d7x8j0gSsTd8hXdPBQuciI JmTZd1caAfa78LS5EysCTqsaXDr3fDBWUGQdGH+ARIzboxshkFvvf6Wwb6fzGF0s3k5/ aojLjDtu9BI7bDxKbHqSHICYCW3hPKKcvUE8R53fRwis3w4AN5XqqKQ35m4umDbnF/8v xzw5Y2TQsAzSvYN3QPrxpv3o/IRKwYru5rPT4U6gKQmdNQgJZEmW5LHM8uDsMr1lTRsJ Q7KA== 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 e24si3791246ejx.162.2020.10.01.07.07.06; Thu, 01 Oct 2020 07:07:30 -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 S1732785AbgJAOCj (ORCPT + 99 others); Thu, 1 Oct 2020 10:02:39 -0400 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:36637 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732426AbgJAOA3 (ORCPT ); Thu, 1 Oct 2020 10:00:29 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from moshe@mellanox.com) with SMTP; 1 Oct 2020 17:00:24 +0300 Received: from dev-l-vrt-136.mtl.labs.mlnx (dev-l-vrt-136.mtl.labs.mlnx [10.234.136.1]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 091E0OF2001949; Thu, 1 Oct 2020 17:00:24 +0300 Received: from dev-l-vrt-136.mtl.labs.mlnx (localhost [127.0.0.1]) by dev-l-vrt-136.mtl.labs.mlnx (8.14.7/8.14.7) with ESMTP id 091E0OKq011173; Thu, 1 Oct 2020 17:00:24 +0300 Received: (from moshe@localhost) by dev-l-vrt-136.mtl.labs.mlnx (8.14.7/8.14.7/Submit) id 091E0OZt011172; Thu, 1 Oct 2020 17:00:24 +0300 From: Moshe Shemesh To: "David S. Miller" , Jakub Kicinski , Jiri Pirko Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Moshe Shemesh Subject: [PATCH net-next 07/16] net/mlx5: Set cap for pci sync for fw update event Date: Thu, 1 Oct 2020 16:59:10 +0300 Message-Id: <1601560759-11030-8-git-send-email-moshe@mellanox.com> X-Mailer: git-send-email 1.8.4.3 In-Reply-To: <1601560759-11030-1-git-send-email-moshe@mellanox.com> References: <1601560759-11030-1-git-send-email-moshe@mellanox.com> 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 Reviewed-by: Saeed Mahameed --- 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 ce43e3feccd9..871d28b09f8a 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.18.2