Received: by 10.223.176.5 with SMTP id f5csp975208wra; Fri, 2 Feb 2018 09:07:04 -0800 (PST) X-Google-Smtp-Source: AH8x226pr0Pp4/Lam7WGAy8cUFg8hcpWZe/OyIcJKolET/eD9RCNK9zgKX4fVnkrqhPPLuJXMudU X-Received: by 2002:a17:902:24c7:: with SMTP id l7-v6mr35575071plg.268.1517591223890; Fri, 02 Feb 2018 09:07:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517591223; cv=none; d=google.com; s=arc-20160816; b=FvpSDnuk5xWWOQQf2pnfu7AYzB5jsUSX/xjE2Qxdo5zM5yPraQ4aQeqZCvDQZ355gx CoYt0LVc7JlbPSLcwY1wggEzZauI7jCKmLsVqVVvXx1eIsKrM4MDnOKTCIv9TyfaPIuX LL1Y6khH7z1hEhRmI6XQQRcX7PrAoAt5lhT2MBEGSeho8tnjnrFyvDUjRDOYgDs1Ff0Y ODHfXlbmdlJSl8Uj00g97Up1/a9oDINvd5sI0QRHLo31bcXiFwduJFyoiWyILfC73KVs Rqg50RJtUC/lm1ZZCDNf7p+HiS9BqNVZXaHFZNUrLjDJ/ygOzQmjllT7QYB/Y7b6Fj1+ 4+wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=bOU+5ugoaAaD/A7llAkxkttDoRCLkB1ABhF11uvLhH4=; b=pYNOGW6bNljAe66JxZJNdsc9aCzFaxuYNPVvPR0CX3CLHUFqcWS1/Bhp9lXhfTm/oe AaS6aMiIGqBqmo5UiEv+YsjIdWP0MOefVi0jbbvfS2rLhQoQc2jTdVVs5ln3nK68wV43 U2ESCuyfvC9MudEqNNp0yqU5oUxx2hd+bI0i/Mn8TXkwV939USqtP0dWaHvdoqQJTS9q iTPQo22a7o3d6jUSizZyTXmnJhI662LIjvXKvbQeWrwi8TDklmwIPN0Vew6Lkr3o+Xrd o5GtYPbK3cdOrL1QvXeKQHAlz70XfZmdZDJtL2U/9twUMS3orbjk28hdR0CcWuvOdY0D uzHg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w2si1695775pgp.680.2018.02.02.09.06.49; Fri, 02 Feb 2018 09:07:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753005AbeBBRF3 (ORCPT + 99 others); Fri, 2 Feb 2018 12:05:29 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:35570 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752791AbeBBRC4 (ORCPT ); Fri, 2 Feb 2018 12:02:56 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 5DDD7EC4; Fri, 2 Feb 2018 17:02:55 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Max Gurtovoy , Leon Romanovsky , Christoph Hellwig , Doug Ledford , Marta Rybczynska Subject: [PATCH 4.9 02/86] net/mlx5: Define interface bits for fencing UMR wqe Date: Fri, 2 Feb 2018 17:57:22 +0100 Message-Id: <20180202140822.876617777@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180202140822.679101338@linuxfoundation.org> References: <20180202140822.679101338@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Max Gurtovoy commit 1410a90ae449061b7e1ae19d275148f36948801b upstream. HW can implement UMR wqe re-transmission in various ways. Thus, add HCA cap to distinguish the needed fence for UMR to make sure that the wqe wouldn't fail on mkey checks. Signed-off-by: Max Gurtovoy Acked-by: Leon Romanovsky Reviewed-by: Christoph Hellwig Signed-off-by: Doug Ledford Cc: Marta Rybczynska Signed-off-by: Greg Kroah-Hartman --- include/linux/mlx5/mlx5_ifc.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) --- a/include/linux/mlx5/mlx5_ifc.h +++ b/include/linux/mlx5/mlx5_ifc.h @@ -737,6 +737,12 @@ enum { MLX5_CAP_PORT_TYPE_ETH = 0x1, }; +enum { + MLX5_CAP_UMR_FENCE_STRONG = 0x0, + MLX5_CAP_UMR_FENCE_SMALL = 0x1, + MLX5_CAP_UMR_FENCE_NONE = 0x2, +}; + struct mlx5_ifc_cmd_hca_cap_bits { u8 reserved_at_0[0x80]; @@ -838,7 +844,9 @@ struct mlx5_ifc_cmd_hca_cap_bits { u8 striding_rq[0x1]; u8 reserved_at_201[0x2]; u8 ipoib_basic_offloads[0x1]; - u8 reserved_at_205[0xa]; + u8 reserved_at_205[0x5]; + u8 umr_fence[0x2]; + u8 reserved_at_20c[0x3]; u8 drain_sigerr[0x1]; u8 cmdif_checksum[0x2]; u8 sigerr_cqe[0x1];