From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0BB36C10F11 for ; Wed, 10 Apr 2019 09:56:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CBEC421841 for ; Wed, 10 Apr 2019 09:56:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554890200; bh=8G9vF1kTYQR8ZvQo6Y8uCt6r9uxohlXzkxuzLUzpSC8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=D4cj24iBr8tXmjwFwhKihb6GdgeDUGMRxOIX6WEzEnDS7bT56SbfUrykgHAgGreye fpzDypEhF5q1KIohJHpv9SPAS3bsHi2hscfXSRQSLMRb7TIcQps2ld6ZcghM15/6NX 5Z2GuwFg1z2xvjYgoNIUrGeopgOroNVAKpPBEEQM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730343AbfDJJ4j (ORCPT ); Wed, 10 Apr 2019 05:56:39 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:60530 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727881AbfDJJ4h (ORCPT ); Wed, 10 Apr 2019 05:56:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=6gYD4i2kCfLiq10f8dOgItEdjl6zdLWqSGB6Ne7Dio4=; b=JmkfCrxZPsAYiyhoCZfHPl5XPn c+bfU73iIXob5GKf+ZMcKIo3Yb4Jm507R1FclUyCQBKuQEZt+OI5U+Ae/5uW2WdMZ76mimKN7TDrm T4NpMlcZ0gMVBXNFUKlSmyG8PnHeRpgGiIy1ImXzP1l2/LlCm2oqBHdiZ/KnqIbp1XK4Iyj8x8S51 6YkFYsXYSLk0udUnOpPxCeem4QiBx7rH7ZrNICTRwC38z45kS590YFpESY9GS2xhmgUucyefB9p7N Kc7OZ+GLYB5tMouzZ+e6TLofZEDgBorBlrwJhSsvaZBMUC/ca8gEPPO2+Jklu26In6Um1yYl8PEYC edxru6Ug==; Received: from 177.41.129.23.dynamic.adsl.gvt.net.br ([177.41.129.23] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hE9y9-0003Cm-6v; Wed, 10 Apr 2019 09:56:37 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.92) (envelope-from ) id 1hE9y3-0000oL-SI; Wed, 10 Apr 2019 06:56:31 -0300 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet Subject: [PATCH 7/8] docs: ntb.txt: add blank lines to clean up some Sphinx warnings Date: Wed, 10 Apr 2019 06:56:26 -0300 Message-Id: <9f54993f859d5f7fda51842ffdf278a1bbc5d8b0.1554889999.git.mchehab+samsung@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In order to make it easier to parse and produce the right output, add some extra blank lines. Signed-off-by: Mauro Carvalho Chehab --- Documentation/ntb.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/ntb.txt b/Documentation/ntb.txt index 344a075f81f5..074a423c853c 100644 --- a/Documentation/ntb.txt +++ b/Documentation/ntb.txt @@ -77,11 +77,13 @@ outbound memory window so to have access to the shared memory region. As one can see the described scenarios can be combined in one portable algorithm. + Local device: 1) Allocate memory for a shared window 2) Initialize memory window by translated address of the allocated region (it may fail if local memory window initialization is unsupported) 3) Send the translated address and memory window index to a peer device + Peer device: 1) Initialize memory window with retrieved address of the allocated by another device memory region (it may fail if peer memory window @@ -90,6 +92,7 @@ algorithm. In accordance with this scenario, the NTB Memory Window API can be used as follows: + Local device: 1) ntb_mw_count(pidx) - retrieve number of memory ranges, which can be allocated for memory windows between local device and peer device @@ -105,6 +108,7 @@ follows: 5) Send translated base address (usually together with memory window number) to the peer device using, for instance, scratchpad or message registers. + Peer device: 1) ntb_peer_mw_set_trans(pidx, midx) - try to set received from other device (related to pidx) translated address for specified memory -- 2.20.1