Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3114983yba; Mon, 8 Apr 2019 11:26:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqym/gHedAzfn8QthmSq/J4FLSqffCD1zq2V6Fm+SwYnZvPk9qBTn6yEQ/VoEo0KOHSmTB5/ X-Received: by 2002:a63:6a42:: with SMTP id f63mr29443334pgc.207.1554747975312; Mon, 08 Apr 2019 11:26:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554747975; cv=none; d=google.com; s=arc-20160816; b=Y2SCt1l3o7Xb5u/8+JaGVPOd/e4CopaGZljC44367kiXmwQu7CZLUelY2EtQYQ+FK1 1LWvBsu/8olIOl0AVfyfLcX4Xex7tQKeA7TWeJW90G241DuopyHbdsTscZp6ghDf16k9 BOGnqEK8+WuXvEa8/e2Wi9Ax5xWgDT+pp0UaKbLZTTEdSawP5LbjplJDVXisnZxEjJOp GjiRnG+LHxS699mdDqrLTzUtme4EIoL+Xn/QTVzdh8lgyhFgWtSC6YuHZnjRxF7RILeG Z1zWONe35tBkI/rdVOdaXahreJhhEYuvCYbncmIGEA9WTHnCGKMF8wqj3O9QG6zeglsk JXzQ== 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=+/vCN7w/a3YnQuR/e0FP5otvIT6v5wA3Of7QaeCzNFU=; b=gYPwFPJa+9UT1fQt/3cBoHlbe8CR8avuT+FEwhO8BVeeZn/mSlQ3SZIuDtTOCsh68S omMndIa+Ucw7EC7JnVAdbKzgHkBmij9ujiwDiqdaqiPmyjD+LoGiyI51HYhvkLafXSOn GN2ncZb+j48lXCgx/oATH3EyyFW9Zz8uTQ/7DnS3M1E8kMFNcxgrlI4zkyV7yBbtRvGH j3x0+/mi+q7M5uQZde2VOau6KqQg+Z+LJ8oCzhyjhVFKL61xpM5vDnVugGIjM0AYnmFX R+cJenp2vBNNtq61BXE/MdAhvCCjPyc8EZSHRlT4Bju6ixg+Uwvifuqr8SY9qte7vyEx N0Ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="IdoZk4/s"; 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 c20si26748900pls.53.2019.04.08.11.25.59; Mon, 08 Apr 2019 11:26:15 -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="IdoZk4/s"; 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 S1729067AbfDHQ7h (ORCPT + 99 others); Mon, 8 Apr 2019 12:59:37 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:58704 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729219AbfDHQ6h (ORCPT ); Mon, 8 Apr 2019 12:58: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=+/vCN7w/a3YnQuR/e0FP5otvIT6v5wA3Of7QaeCzNFU=; b=IdoZk4/sdR4D24H0/5tm3OgWcm qy3B7mj6J2idGSSpoA10DITR7UfnWVjIRtYLjO4QKUFCh+zNeqEJqA+GjESL/IT4VYwPqrkTOun8f RrQcosCqbhTl1pMH7dYNIGwqCQnUIrWuYesFMJI3vWTLMTWV2Gy+AAYDTBeHhK04gx86hNAnbcapj Mdp6tRpWztE9a9go9ZybDr9jJ0loG94FZc2XTsUif7LgINTZX+ZCTvRKgb63hRQXqgUyN0JOpGp3l BzNtS6DF+LvKUAbOjzvEMunoTX94SvP6igU3ksnDVgtFHqgWSwe/AcJXuzzaaYP8BdaZpy+BNqGEQ vMEDk8KA==; Received: from [179.95.33.162] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hDXbO-0005Sq-5w; Mon, 08 Apr 2019 16:58:34 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.92) (envelope-from ) id 1hDXbI-0005nT-By; Mon, 08 Apr 2019 13:58:28 -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 08/10] docs: ntb.rst: add blank lines to clean up some Sphinx warnings Date: Mon, 8 Apr 2019 13:58:24 -0300 Message-Id: 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/other/ntb.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/other/ntb.rst b/Documentation/other/ntb.rst index 344a075f81f5..074a423c853c 100644 --- a/Documentation/other/ntb.rst +++ b/Documentation/other/ntb.rst @@ -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