Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp169593pxu; Tue, 6 Oct 2020 23:06:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6UHWSrS0ClKA85jq3hjL0E/9N2m4wVJan+pvNBwM4UQilNMljcAA9uSDwdKNG1pgaWfZL X-Received: by 2002:a50:ed94:: with SMTP id h20mr1885504edr.184.1602050784226; Tue, 06 Oct 2020 23:06:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602050784; cv=none; d=google.com; s=arc-20160816; b=qka+AjcL2JhHzuojiIoMNM0eHZajeBJT4zm/Wm28tsPmhBYtJhY3ku0UNCqO9kj3Y7 52YGAXYW1ZNF7I5vSHj13LVMhCdvlrN31cXTyDQAqiRZD09zwy5ZeMlW05JepNeKHtc/ I1WlzLHJ4QMpr/yeOdf223cX76znBLJDkWPqJw1vWC+BEdM7q3AV3ap2Ly/ASi0X0X7P 84I2feNWNMLDscU5wP6QV+WdbrUrMPzYQhScShcEyggDbAd9zWRJUt3OncHVsLi2/mbo z/0rl2nvBGp1rQUrZg1+i/VCzjn3egUJOWyAu2tGySflA6dPuaXrU2CIpID1GGksfq25 Khtg== 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=dMXr3NzN6qracJt9voD7P1QvQtrEF9NfuPXYhJJx39s=; b=nmD+C5C4Ps+zdgCf4Wpog8FrgpPb4t5aGnT4Ljc6agu2sqAmNDC2VxCas1g/OGX4HA kt5kgFxoJnR+ndt0Le49LiV3o+BZZr+UurjUjqcfrmZJZfkppSyX8L0LcK+Xuhxw/W9Y 6apZg/qDrdnW8FYnQImrlTnZB7Znk8hbbC70u9aYgEFfEoQx+B6TwspXyfpxl1qN1Dl4 Z93C2Qcn5PidWjjEYs3iui3ng61tul4QuruzbtuVDiKvZemZfhZssSjlNa8hAJPXn/gH Z1NZKs/WhuJDLO0FfHn+22mU/a5cOfmi+qEWzZKBRfrudLyYy8IT8tvGeHuOXh7GsOj6 03lw== 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 ss23si762305ejb.654.2020.10.06.23.06.01; Tue, 06 Oct 2020 23:06:24 -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 S1727684AbgJGGCQ (ORCPT + 99 others); Wed, 7 Oct 2020 02:02:16 -0400 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:34385 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727293AbgJGGB1 (ORCPT ); Wed, 7 Oct 2020 02:01:27 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from moshe@mellanox.com) with SMTP; 7 Oct 2020 09:01:16 +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 09761GmF018845; Wed, 7 Oct 2020 09:01:16 +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 09761GMR021777; Wed, 7 Oct 2020 09:01:16 +0300 Received: (from moshe@localhost) by dev-l-vrt-136.mtl.labs.mlnx (8.14.7/8.14.7/Submit) id 09761GNY021776; Wed, 7 Oct 2020 09:01:16 +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 v2 07/16] net/mlx5: Set cap for pci sync for fw update event Date: Wed, 7 Oct 2020 09:00:48 +0300 Message-Id: <1602050457-21700-8-git-send-email-moshe@mellanox.com> X-Mailer: git-send-email 1.8.4.3 In-Reply-To: <1602050457-21700-1-git-send-email-moshe@mellanox.com> References: <1602050457-21700-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 3bd32c05ae71..5dd23790e7ee 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