From patchwork Mon Nov 3 08:02:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eli Cohen X-Patchwork-Id: 5214371 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 62C23C11AC for ; Mon, 3 Nov 2014 08:03:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 868F22012D for ; Mon, 3 Nov 2014 08:03:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B51E820166 for ; Mon, 3 Nov 2014 08:03:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751162AbaKCIDJ (ORCPT ); Mon, 3 Nov 2014 03:03:09 -0500 Received: from mail-la0-f46.google.com ([209.85.215.46]:50724 "EHLO mail-la0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751097AbaKCIDJ (ORCPT ); Mon, 3 Nov 2014 03:03:09 -0500 Received: by mail-la0-f46.google.com with SMTP id hs14so9025544lab.19 for ; Mon, 03 Nov 2014 00:03:07 -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=OKLvJO8X8ZVwD2yF9nxRx3+SwNVBPv+foLBeMQCWw1A=; b=KyYpNUc+wVpfR7gHegdoJaq4Go45nFa4bvPVTD+Ygvz4xP8ghlgRVVFr6vUfdmomDZ I5ixvFcOdhFv2uZ8A5bR4H76Xc8Mlvl9H5PYoT9e0D1KiToFpBsPsHTWYSGGNg54yOEo n1BKjXCYKkkbZTNAexLT8HfekmM7vB/W0V7aR2Vskz+eDXVbtx9IyvfXHABBecepNpXI cQw5r1PpfxX5zUf2GDulWGJ/c7aUKYmY+6xANazGIB8NHgcCGrmocH496HkdMOXZXTSb 4GNa/jSK0dMGRBItPVwB6eGreC9PDGeNUPKjJLBcmuhBABdRziozGlQQLMIRJU6rQyop MJXg== X-Gm-Message-State: ALoCoQkUwgXHFW942sFXzaRYV+PanpwWevAPzHv6tZ8iL4CJnkHhjpFV3k7hsWgtczeQXLWzIaxG X-Received: by 10.152.87.18 with SMTP id t18mr44733173laz.0.1415001787722; Mon, 03 Nov 2014 00:03:07 -0800 (PST) Received: from localhost ([193.47.165.251]) by mx.google.com with ESMTPSA id n10sm7641071laf.38.2014.11.03.00.03.07 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 03 Nov 2014 00:03:07 -0800 (PST) From: Eli Cohen X-Google-Original-From: Eli Cohen To: roland@kernel.org Cc: linux-rdma@vger.kernel.org, ogerlitz@mellanox.com, yevgenyp@mellanox.com, Eli Cohen Subject: [PATCH for-next 5/5] IB/mlx4: Modify mlx4 to comply with extended atomic definitions Date: Mon, 3 Nov 2014 10:02:46 +0200 Message-Id: <1415001766-8366-6-git-send-email-eli@mellanox.com> X-Mailer: git-send-email 2.1.2 In-Reply-To: <1415001766-8366-1-git-send-email-eli@mellanox.com> References: <1415001766-8366-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 bda5994ceb68..6fb7ad51ce0a 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;