From patchwork Mon Sep 10 16:38:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dennis Dalessandro X-Patchwork-Id: 10594517 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 235A16CB for ; Mon, 10 Sep 2018 16:38:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 12C4E293AD for ; Mon, 10 Sep 2018 16:38:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 07921293B0; Mon, 10 Sep 2018 16:38:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B88DF293AD for ; Mon, 10 Sep 2018 16:38:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728162AbeIJVds (ORCPT ); Mon, 10 Sep 2018 17:33:48 -0400 Received: from mga06.intel.com ([134.134.136.31]:22928 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727810AbeIJVds (ORCPT ); Mon, 10 Sep 2018 17:33:48 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Sep 2018 09:38:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,356,1531810800"; d="scan'208";a="73098186" Received: from scymds01.sc.intel.com ([10.82.194.37]) by orsmga006.jf.intel.com with ESMTP; 10 Sep 2018 09:38:53 -0700 Received: from scvm10.sc.intel.com (scvm10.sc.intel.com [10.82.195.27]) by scymds01.sc.intel.com with ESMTP id w8AGcq8r009033; Mon, 10 Sep 2018 09:38:52 -0700 Received: from scvm10.sc.intel.com (localhost [127.0.0.1]) by scvm10.sc.intel.com with ESMTP id w8AGcqLb028205; Mon, 10 Sep 2018 09:38:52 -0700 Subject: [PATCH v2 for-next 0/4] IB/hfi1: Updates and fixes for user SDMA From: Dennis Dalessandro To: jgg@ziepe.ca, dledford@redhat.com Cc: linux-rdma@vger.kernel.org, "Michael J. Ruhl" , Mitko Haralanov , Mike Marciniszyn Date: Mon, 10 Sep 2018 09:38:52 -0700 Message-ID: <20180910163707.23326.1348.stgit@scvm10.sc.intel.com> User-Agent: StGit/0.17.1-18-g2e886-dirty MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Doug and Jason, Here is a series from Mike that fixes some issues with user SDMA. These are bit more complicated than we'd like for RC so we can go ahead and send these to next. The real goal of this series is to address some race conditions in user SDMA, the other two patches are less serious issues but still need to be addressed. --- Changes since v1: Shuffled the order --- Michael J. Ruhl (4): IB/hfi1: Eliminate races in the SDMA send error path IB/hfi1: Remove race conditions in user_sdma send path IB/hfi1: Right size user_sdma sequence numbers and related variables IB/hfi1: Missing return value in error path for user sdma drivers/infiniband/hw/hfi1/sdma.c | 4 + drivers/infiniband/hw/hfi1/sdma.h | 2 - drivers/infiniband/hw/hfi1/user_sdma.c | 123 +++++++++++++++----------------- drivers/infiniband/hw/hfi1/user_sdma.h | 20 ++--- 4 files changed, 68 insertions(+), 81 deletions(-) -- -Denny