Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp421752pxk; Sun, 30 Aug 2020 08:34:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4iMpUC5oYYhsdphBqTwHu1mI4uwE2quEEgiaMZSlg2SFASZ+4BsyOLIwh11lELfq1ZEcs X-Received: by 2002:a50:f28b:: with SMTP id f11mr4783215edm.44.1598801670607; Sun, 30 Aug 2020 08:34:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598801670; cv=none; d=google.com; s=arc-20160816; b=Na3Jn27X+EKTi/yoFhYq/utMxNs+D+3WCRP216S7DoXTFJbr0/8oHxIuEzXnDM4D1q VSmQNHyoNDUG7o8nOPZwG4dluSiG3Gvnyfedfu78kgQ8U13nZPYGU8p0ptnsvpoqDtIg 2BpC10NOJ1IAtST2XAnAHFeBcTQ0EbaIUb9EJ4nVhyVuO/SovkNgap2REUpRWtpiCV5I sFrH+kl8QYg7VyNsinu5YS3rNC2mC1AokOVn//N8JSlKFfZ0k4fMJfx/u+VhH6XaLzJH XxvfYK3618BQTI1wfAsc5GTYfMvjrpc2T+anDpNfD8g3PkXe5xcz9Onei1Is4fDSVgbd 9t5w== 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=Jp5icR2EJqAJnibUtGtj2L0rnDZMV7gSIZbzkCYV62I=; b=PNXn7IBto/KPf3nz11cpTImV8dolNZJGFS9150kfmtk1QlMkp2jNqXnnHSnnDF/LGh iIzhtTyTPerTTr+UXWawCBkmcEcqiCX8b6wSVOIh53Cc4hjN7oB0/bynw43RMr6iV3FB fRYUHbg1+PLH5r7+6U7NjsIBs888cXGv4nlS9UURIY9yjqfyyNNw14l1h7II+R+6rbC9 INQsoq8LnpPII2JNfMYwD4CRcvhS7d9OEJyGXVzGLEPpl5FQyy8dgvQ8W1Y3cE1VZNLp 1Uev0AWB235dvvvAoi/uXsoIFlGjdGpBilowXQAElei5FHiy+a8Gi0gJ1eX1BiXMlelm jQsg== 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 q12si3955068ejs.273.2020.08.30.08.34.08; Sun, 30 Aug 2020 08:34: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 S1727780AbgH3Pc4 (ORCPT + 99 others); Sun, 30 Aug 2020 11:32:56 -0400 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:42729 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726565AbgH3P2B (ORCPT ); Sun, 30 Aug 2020 11:28:01 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from moshe@mellanox.com) with SMTP; 30 Aug 2020 18:27:55 +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 07UFRtiD029632; Sun, 30 Aug 2020 18:27:55 +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 07UFRtN4027839; Sun, 30 Aug 2020 18:27:55 +0300 Received: (from moshe@localhost) by dev-l-vrt-135.mtl.labs.mlnx (8.15.2/8.15.2/Submit) id 07UFRtXw027838; Sun, 30 Aug 2020 18:27:55 +0300 From: Moshe Shemesh To: "David S. Miller" , Jakub Kicinski Cc: Jiri Pirko , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Moshe Shemesh Subject: [PATCH net-next RFC v3 05/14] net/mlx5: Set cap for pci sync for fw update event Date: Sun, 30 Aug 2020 18:27:25 +0300 Message-Id: <1598801254-27764-6-git-send-email-moshe@mellanox.com> X-Mailer: git-send-email 1.8.4.3 In-Reply-To: <1598801254-27764-1-git-send-email-moshe@mellanox.com> References: <1598801254-27764-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 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.17.1