From patchwork Thu Nov 6 14:21:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eli Cohen X-Patchwork-Id: 5242761 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4CD7A9F387 for ; Thu, 6 Nov 2014 14:22:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5609620122 for ; Thu, 6 Nov 2014 14:22:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 64CEE20120 for ; Thu, 6 Nov 2014 14:22:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751218AbaKFOWP (ORCPT ); Thu, 6 Nov 2014 09:22:15 -0500 Received: from mail-wi0-f173.google.com ([209.85.212.173]:37145 "EHLO mail-wi0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752055AbaKFOWM (ORCPT ); Thu, 6 Nov 2014 09:22:12 -0500 Received: by mail-wi0-f173.google.com with SMTP id n3so1641032wiv.0 for ; Thu, 06 Nov 2014 06:22:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Ywkx2p6bLwvLeIE9GkvK+/Pun5CmiYvEJFmKL92Ir1g=; b=QB66lUFz/CobdW7VQjSLPt1T0x1WRLpMbXT8s3G5nZNHmS3pbErp0PgUF7rhYtkzpp F8luuJWFTteHRkFlQ5bMnBsd8MBmgyiRcuQpDhfjcDeC7rk8Sa4Tnjr06MrCukHvia75 Epz6k3uzxyY14HdhucWlQkCeaSEqqnUUzWDB+tV2n3lch3KZfboiZM1LWQKZuTREPpv+ yVY9YJH+SlFlnGdRHHjvVLBAABspazqNaq7e/8fr+XK3bO2Z2Ulj01Dw4lN2uO2eVYAI BpAPNrL7f1iAclIbH4ztIobORIhoROs86GX++Jpe3EFQwThb+LcGXKH2lbkfhZA4A1jZ 6OtA== X-Gm-Message-State: ALoCoQkSuk1frnSVtNJ/iV1bdonUwFHGm7Evnok6sT+CZrfuYYhJGXaTdhoIzm1MqE/a/uBNjONp X-Received: by 10.180.91.227 with SMTP id ch3mr14752970wib.17.1415283731709; Thu, 06 Nov 2014 06:22:11 -0800 (PST) Received: from localhost (out.voltaire.com. [193.47.165.251]) by mx.google.com with ESMTPSA id u8sm8030678wjq.1.2014.11.06.06.22.10 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 06 Nov 2014 06:22:11 -0800 (PST) From: Eli Cohen X-Google-Original-From: Eli Cohen To: roland@kernel.org Cc: linux-rdma@vger.kernel.org, ogerlitz@mellanox.com, haggaie@mellanox.com, yevgenyp@mellanox.com, Eli Cohen Subject: [PATCH v1 for-next 5/5] IB/mlx4: Modify mlx4 to comply with extended atomic definitions Date: Thu, 6 Nov 2014 16:21:52 +0200 Message-Id: <1415283712-13931-6-git-send-email-eli@mellanox.com> X-Mailer: git-send-email 2.1.2 In-Reply-To: <1415283712-13931-1-git-send-email-eli@mellanox.com> References: <1415283712-13931-1-git-send-email-eli@mellanox.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Set the extended masked atomic capabilities. For ConnectX devices argument size is fixed to 8 bytes and bit boundary is 64. Signed-off-by: Eli Cohen --- drivers/infiniband/hw/mlx4/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c index 8b72cf392b34..7de8cf12a605 100644 --- a/drivers/infiniband/hw/mlx4/main.c +++ b/drivers/infiniband/hw/mlx4/main.c @@ -223,6 +223,9 @@ static int mlx4_ib_query_device(struct ib_device *ibdev, props->atomic_cap = dev->dev->caps.flags & MLX4_DEV_CAP_FLAG_ATOMIC ? IB_ATOMIC_HCA : IB_ATOMIC_NONE; props->masked_atomic_cap = props->atomic_cap; + props->log_atomic_arg_sizes = 8; + props->max_fa_bit_boundary = 64; + props->log_max_atomic_inline = 8; props->max_pkeys = dev->dev->caps.pkey_table_len[1]; props->max_mcast_grp = dev->dev->caps.num_mgms + dev->dev->caps.num_amgms; props->max_mcast_qp_attach = dev->dev->caps.num_qp_per_mgm;