Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4744962yba; Wed, 10 Apr 2019 04:08:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqy0lzsPlWUsbtYonqYRNpIZ3XsaJ9dunEhq6iVmyNDt01C2g/Y0KV5s+3lzASGQ+QI5vi0x X-Received: by 2002:a17:902:b602:: with SMTP id b2mr43764235pls.293.1554894528232; Wed, 10 Apr 2019 04:08:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554894528; cv=none; d=google.com; s=arc-20160816; b=c+2uuv2LexB+pajv4l0YZKHwLIxNn4TTfnr6lgBLkKz1eZaPofgoVhqZ8sz5jGyQ2w QlR44wRuLuX9tCX7X7nqXrfXFL/sJyfUY3qcgUc6OdgXQi8vEevjH9uVPYSaJQPMngr2 il/jbWeuW/5v+gAueBpdn62OGtrW9G6ji102qK7GmNcM6SAfIHStUN43e936OSpH7fil zXG3aJWEPKoHIJcNoWV12ROTjbMSmpr+rCsVP+c9yu4BdzvAd/n9jHw+701FrvYb1bBf 6o6+Yu50c7sm5i00dXpHCsVP4zxNuY6GD1psnszn4fF1v0f+X2CcIfpIXygzMj9vNWpY ifNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6gYD4i2kCfLiq10f8dOgItEdjl6zdLWqSGB6Ne7Dio4=; b=RFL0C4Ci6Pv5eFip9J9A0uZSXS7FI8UkhoRPNYEcvNRZO6r2b+gAw4h1mBotl7XgYS YC0Ol1vlJpv/7H3QtkdcJnNMFWMVp2ebuEQzzJI02BPGcj1D7n0BMEa10bDw4z73x0Yo VQAc79HGnLNd2tK5WwhZe4xzNY/dgHYSzT+ogGLRIbyFihBM6zqqTyYTsfaadSnFwV3v BxKpPRtalEPie+x/b7zN/TgsN3d/8+JVnyk4WpXngpCnbTIVmzc2oiamAApZ5MY4RwSh VFrKjE8GNeyMGxc0DctDHh3zs1fGAI3hxPk4c/nT2OPXrlq+5+jvTw3NIUumL3I8rtUH qrCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=JmkfCrxZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g189si27169552pfb.289.2019.04.10.04.08.32; Wed, 10 Apr 2019 04:08:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=JmkfCrxZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730337AbfDJJ4j (ORCPT + 99 others); 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