Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4091113pxb; Tue, 10 Nov 2020 07:45:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxI5DeSwK9+3qVP1SlzqrbkaRG7oK0odJLLXeEkzdPowy50Ue1EiCbkI0GrcsZBBX5WeL5p X-Received: by 2002:a05:6402:30b5:: with SMTP id df21mr20942742edb.146.1605023114810; Tue, 10 Nov 2020 07:45:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605023114; cv=none; d=google.com; s=arc-20160816; b=OwgD2e5mV6mYzIHtOXKSMvYERpwR2T/PmQNe0urjD2H5ljhe9/L5B3z6WAl4pz6lmj FRrBbzij0ucY901ZLmJm+R+6IDERPzOta7SsnH47K7wtMNOvAvAbhZmwe/hdpaQuDJin FaJ0qSKfdf6kCf0E5GfCC9npNR7ImCpj9ahzH5efA9oSv3gW7MRJE0MIsX5ySFS+9jtG RuLUZWC0leYSivbToJBcUbNXT+tt924346LYx0jelco7FgAu97+OxSnsZUg9yiL28sKa cHFWw1bD8zJGNDnDYb9a6m249ZUevccXEQWYhAZ5pLbZ4J4unqhF5aYQpj6vW9I0Mbm4 Awkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=kZ6NUVS0wH3f6crDKEWytDIJj/TB2GdUpTaec0L/68E=; b=N6CVo/SxFjuGtIs0tBIT8Tl+PzXNi9YtUKwqiX9VeVR24MM0eG6FPyRF9bQNfR8zk1 SBeuU67th6GMDO0DZnO6j2+R468OuGjgIsYrRsfj2wwzwihkNsR2Tzz/fRK84hVhy2gS yOulCTihNiJb/JnNg9DLZOB3lCBHabro8vAcEJOXwmoFCqizWS71pLvXMZ/KK4iZzaNq T1J2rA6LQjm0b+af8FRMB4YBvO+1ycxfviGvd78xLGQ4hX3y6jn9NuoNAJ93jZ+xLCfn YxOOHdYhwmasU4G1ezlLN8DiKq5n/d+u0UEMeNqkUmBAuS7ZNS/fWOnqVZR4ckXn/e9W fQQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=eEazoQaT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q16si10041044ejm.486.2020.11.10.07.44.46; Tue, 10 Nov 2020 07:45:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=eEazoQaT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731244AbgKJPnI (ORCPT + 99 others); Tue, 10 Nov 2020 10:43:08 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:37194 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730666AbgKJPnH (ORCPT ); Tue, 10 Nov 2020 10:43:07 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0AAFgj1k082798; Tue, 10 Nov 2020 09:42:45 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1605022965; bh=kZ6NUVS0wH3f6crDKEWytDIJj/TB2GdUpTaec0L/68E=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=eEazoQaTmQCDD4IKrmGRCn5qEUpSRcBoevzBBGrMGDUZ81ThPKZN4WBRKzq4qL1hm gxUbXjaRP0Zybvglj70M7ys5o0/fE1g0XGKBsmTpbha0i2jYBj4RFrY0I+MW/bPPVk c7KBX0GPYOvdn4QyYC/g9+AI4nwtt5XPuFY/3fp4= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0AAFgjfg031823 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 10 Nov 2020 09:42:45 -0600 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Tue, 10 Nov 2020 09:42:45 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Tue, 10 Nov 2020 09:42:44 -0600 Received: from [10.250.235.36] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0AAFgd1M009286; Tue, 10 Nov 2020 09:42:40 -0600 Subject: Re: [PATCH v7 15/18] NTB: Add support for EPF PCI-Express Non-Transparent Bridge To: Arnd Bergmann CC: Sherry Sun , "bhelgaas@google.com" , Jonathan Corbet , "lorenzo.pieralisi@arm.com" , "arnd@arndb.de" , "jdmason@kudzu.us" , "dave.jiang@intel.com" , "allenbh@gmail.com" , "tjoseph@cadence.com" , Rob Herring , "gregkh@linuxfoundation.org" , "linux-pci@vger.kernel.org" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-ntb@googlegroups.com" References: <20200930153519.7282-16-kishon@ti.com> <30c8f7a1-baa5-1eb4-d2c2-9a13be896f0f@ti.com> From: Kishon Vijay Abraham I Message-ID: <5a9115c8-322e-ffd4-6274-ae98c375b21d@ti.com> Date: Tue, 10 Nov 2020 21:12:33 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sherry, Arnd, On 10/11/20 8:29 pm, Arnd Bergmann wrote: > On Tue, Nov 10, 2020 at 3:20 PM Kishon Vijay Abraham I wrote: >> On 10/11/20 7:55 am, Sherry Sun wrote: > >>> But for VOP, only two boards are needed(one board as host and one board as card) to realize the >>> communication between the two systems, so my question is what are the advantages of using NTB? >> >> NTB is a bridge that facilitates communication between two different >> systems. So it by itself will not be source or sink of any data unlike a >> normal EP to RP system (or the VOP) which will be source or sink of data. >> >>> Because I think the architecture of NTB seems more complicated. Many thanks! >> >> yeah, I think it enables a different use case all together. Consider you >> have two x86 HOST PCs (having RP) and they have to be communicate using >> PCIe. NTB can be used in such cases for the two x86 PCs to communicate >> with each other over PCIe, which wouldn't be possible without NTB. > > I think for VOP, we should have an abstraction that can work on either NTB > or directly on the endpoint framework but provide an interface that then > lets you create logical devices the same way. > > Doing VOP based on NTB plus the new NTB_EPF driver would also > work and just move the abstraction somewhere else, but I guess it > would complicate setting it up for those users that only care about the > simpler endpoint case. I'm not sure if you've got a chance to look at [1], where I added support for RP<->EP system both running Linux, with EP configured using Linux EP framework (as well as HOST ports connected to NTB switch, patches 20 and 21, that uses the Linux NTB framework) to communicate using virtio over PCIe. The cover-letter [1] shows a picture of the two use cases supported in that series. [1] -> http://lore.kernel.org/r/20200702082143.25259-1-kishon@ti.com Thank You, Kishon