Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4057790pxb; Tue, 10 Nov 2020 07:01:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyGDF7FkVxq4CwxYUnzgRmNclVr5XcqXtGCeHUDHG5yeoAjZTYiTCD9YwfT1Y5yGc8JsOH6 X-Received: by 2002:aa7:d1c6:: with SMTP id g6mr20898480edp.130.1605020486503; Tue, 10 Nov 2020 07:01:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605020486; cv=none; d=google.com; s=arc-20160816; b=QFfmWlhx9qH163fmZSOEKQ1ocjVT1Ipxd+S9sVASYOPiZGnDrdbwlmRD7/sW4gXy8v 2aaa+XqwAHJqGMOE8c+wCS/UBNdaxn4zt5rKF1R/ZmJMnKpA6pifb0lTOfdeKKc0ZSoD ywAZZWbCde0CKwGudSFq65RzqZ9OQntJTtggcm80T1nS5ShmSJciaV0iH8F5rWe0cMrv bCvKw8Vx4nM/ncU2c4Qn0KvO4cpnmZphpUdX2FJxahVlm3VXZ0B9O8Y8GWDVVJIROqrl /NRtvu0kqxfecmVX5/C+MucE1vvmuYyV9Y0sZltiZHB+hfuKPuGITzeoRUEAqEI5g1B2 tYQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=o/NDrSlYwavlG7KXE4e2i2W0MXCl/dthSPAGjeBpA9M=; b=q/JuBE55HpCc4DQEU55F/ltTKf797a/QcTkt0waJQXqdPQVlUV5ddqxIW5VPzwqNat CnfuN+m/scAJbTCsmFVAi74MIJLpAgq2EgCPALTyziwcVdPeli/frK5YiBVnNLu4xel4 6fq3652r7Wvqp4ilWYKtvJg5qw5gG9d2yLyPAqmYvYfvm3POmNh5SpOUaNuHWX3NsMLn ouSMzkt3SGrgNt3MUjLSlc8SDFBY3v4yZpevKrd8kJ9BEBvDtk5FrLCQoqdqv6OkQqOd mxjlysZf5mXfE3i3WGRowGRkjdmBg/VIXr04TPdBWFtrR+JKqNd5fVl4iV4i3oJwZ9OW ckKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="O/3QTe6U"; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c2si9867788edu.115.2020.11.10.07.01.01; Tue, 10 Nov 2020 07:01:26 -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=@kernel.org header.s=default header.b="O/3QTe6U"; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731015AbgKJO7b (ORCPT + 99 others); Tue, 10 Nov 2020 09:59:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:49562 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730917AbgKJO72 (ORCPT ); Tue, 10 Nov 2020 09:59:28 -0500 Received: from mail-ot1-f53.google.com (mail-ot1-f53.google.com [209.85.210.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 768D7216C4; Tue, 10 Nov 2020 14:59:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605020367; bh=qvUn9qNX1M1Qx2QeznJUHEO4kgcTe0+DelhXJxEE0dw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=O/3QTe6UPGl4+UBnrvNNeMglzQW4NaG0atUAknJXGKmiKlQ3jFAg466x/NwQrKu8/ gBOWhF2e4nqsUJikfZBNK85TbHjpqqfBqGUI/fPV3Q4vo0VU27Kg9mYaa1UZ+CPmR7 m6tDvxeghc9snLMuu1GE+vc1t3kZ5zdJ+r04K2GU= Received: by mail-ot1-f53.google.com with SMTP id f16so12745658otl.11; Tue, 10 Nov 2020 06:59:27 -0800 (PST) X-Gm-Message-State: AOAM530/6H67dDL5PAJL3KAeHijbr+1XU2zLAQyWMFDyoERLp8rObvxD Spis/dV5AB9DWng0pGXDXiFUAN1Kt1LNhA2hImg= X-Received: by 2002:a9d:23a6:: with SMTP id t35mr13613677otb.210.1605020366593; Tue, 10 Nov 2020 06:59:26 -0800 (PST) MIME-Version: 1.0 References: <20200930153519.7282-16-kishon@ti.com> <30c8f7a1-baa5-1eb4-d2c2-9a13be896f0f@ti.com> In-Reply-To: <30c8f7a1-baa5-1eb4-d2c2-9a13be896f0f@ti.com> From: Arnd Bergmann Date: Tue, 10 Nov 2020 15:59:08 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v7 15/18] NTB: Add support for EPF PCI-Express Non-Transparent Bridge To: Kishon Vijay Abraham I 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" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Arnd