From patchwork Thu Dec 19 11:53:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Ishchuk X-Patchwork-Id: 3377531 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 3DAABC0D4A for ; Thu, 19 Dec 2013 11:54:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A0A4A20631 for ; Thu, 19 Dec 2013 11:54:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E62B720620 for ; Thu, 19 Dec 2013 11:54:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752369Ab3LSLyE (ORCPT ); Thu, 19 Dec 2013 06:54:04 -0500 Received: from e06smtp10.uk.ibm.com ([195.75.94.106]:38819 "EHLO e06smtp10.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752049Ab3LSLyD (ORCPT ); Thu, 19 Dec 2013 06:54:03 -0500 Received: from /spool/local by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 19 Dec 2013 11:54:01 -0000 Received: from d06dlp01.portsmouth.uk.ibm.com (9.149.20.13) by e06smtp10.uk.ibm.com (192.168.101.140) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 19 Dec 2013 11:53:58 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 1C7B517D8059 for ; Thu, 19 Dec 2013 11:53:57 +0000 (GMT) Received: from d06av12.portsmouth.uk.ibm.com (d06av12.portsmouth.uk.ibm.com [9.149.37.247]) by b06cxnps3074.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id rBJBrjHK1114370 for ; Thu, 19 Dec 2013 11:53:45 GMT Received: from d06av12.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av12.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id rBJBrtbt027425 for ; Thu, 19 Dec 2013 04:53:57 -0700 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d06av12.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id rBJBrdCR026833; Thu, 19 Dec 2013 04:53:55 -0700 From: Alexey Ishchuk To: linux-rdma@vger.kernel.org Cc: arlin.r.davis@intel.com, gilr@dev.mellanox.co.il, roland@kernel.org, klaus.wacker@de.ibm.com, alexey_ishchuk@ru.ibm.com Subject: [PATCH 1/4] DAPL: Support for Linux on System z in libibverbs library Date: Thu, 19 Dec 2013 12:53:16 +0100 Message-Id: <1387453998-27416-4-git-send-email-alexey_ishchuk@ru.ibm.com> X-Mailer: git-send-email 1.8.3.4 In-Reply-To: <1387453998-27416-1-git-send-email-alexey_ishchuk@ru.ibm.com> References: <1387453998-27416-1-git-send-email-alexey_ishchuk@ru.ibm.com> X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13121911-4966-0000-0000-000007E0A64A 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.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 s390: Add DAPL support for Linux on System z in libibverbs Changes required to support the OFED stack on the System z platform. These changes include: * mb, rmb, wmb, and wc_wmb macro definitions for the System z platform; * new Infiniband verb command identifier. The new Infiniband verb command was added to allow data transfer from user space applications to infiniband devices on System z. --- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff -aurp /usr/src/packages/BUILD/libibverbs-1.1.7/include/infiniband/arch.h libibverbs-1.1.7/include/infiniband/arch.h --- /usr/src/packages/BUILD/libibverbs-1.1.7/include/infiniband/arch.h 2011-02-03 19:36:36.000000000 +0100 +++ libibverbs-1.1.7/include/infiniband/arch.h 2013-12-11 16:46:18.713796712 +0100 @@ -115,6 +115,13 @@ static inline uint64_t ntohll(uint64_t x #define wmb() mb() #define wc_wmb() wmb() +#elif defined(__s390x__) + +#define mb() asm volatile("" ::: "memory") +#define rmb() mb() +#define wmb() mb() +#define wc_wmb() wmb() + #else #warning No architecture specific defines found. Using generic implementation. diff -aurp /usr/src/packages/BUILD/libibverbs-1.1.7/include/infiniband/kern-abi.h libibverbs-1.1.7/include/infiniband/kern-abi.h --- /usr/src/packages/BUILD/libibverbs-1.1.7/include/infiniband/kern-abi.h 2011-12-22 18:50:48.000000000 +0100 +++ libibverbs-1.1.7/include/infiniband/kern-abi.h 2013-12-11 16:46:18.713796712 +0100 @@ -85,7 +85,8 @@ enum { IB_USER_VERBS_CMD_MODIFY_SRQ, IB_USER_VERBS_CMD_QUERY_SRQ, IB_USER_VERBS_CMD_DESTROY_SRQ, - IB_USER_VERBS_CMD_POST_SRQ_RECV + IB_USER_VERBS_CMD_POST_SRQ_RECV, + IB_USER_VERBS_CMD_KWRITE_MMIO=52 }; /* @@ -804,6 +805,7 @@ enum { * trick opcodes in IBV_INIT_CMD() doesn't break. */ IB_USER_VERBS_CMD_CREATE_COMP_CHANNEL_V2 = -1, + IB_USER_VERBS_CMD_KWRITE_MMIO_V2 = -1, }; struct ibv_destroy_cq_v1 {