Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp374004pxx; Thu, 29 Oct 2020 04:55:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2tMQEZ4KTbKIMnT3CFQW4e0rOjxqDRA+qAJdtVGQIEmdSLKzRN/s8jzK0rLR6m+v9ATwx X-Received: by 2002:aa7:d783:: with SMTP id s3mr3652184edq.214.1603972533118; Thu, 29 Oct 2020 04:55:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603972533; cv=none; d=google.com; s=arc-20160816; b=GSznaPvr4IRa1SeBAplCk7BlzNSwCCkHNdKK9TVbXVv97NGzrZefBk0LPD+XWvl8Be 4tjV5L9r2fS7hSJ6+n9tPc656e+bl6+xrVYz+eGdiJ5rpKDxU3IUGQG9zJCwFLEgpEsX gTxD/A8ElLg5L4s7UiNMTzG5WA4OAmaM1FviKa+qADMgy3TnZS4zEsC8zPv9iVB4Y5/s leAK97x6hEnL0w0Rc2G2qPgYOCeavEkCZLTBV8nn2KOxpzTgjRMx0NalrChIpbxgLa4W XaXYwKK9AXxGBLUeQCM4U+ql8teQTOTQtPj4lMSE8/qw1q7+x0M9qnT1Ydltg+9gvIi2 Lhmw== 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=UgOhaJS7qOFdvTHVxi5STrijhunSVMeKsmQDnAYwW7I=; b=DLqBU/MBIHTKKSh5R8+udwZ5MmZ4QzoKD6fjaHxwS4Xv+yfqkq0hYGLvgzx3IvzBU1 59bNDs7kx9m5kA3GMhxh1QziB4lelf3q+RV+oBXWYdqA7J2OhspczG+neESXWk8bEW3O wTdUsWH7emeek172jB7v/jvhvvIfYiMixzKD0URFJ5IvVH5eOmt5ttVWzXGKvM2aKPjo GA2rQ0qiSgBLQrsTqdTzYBbjUhg5XePAo3w01lRYgpPCHRQD4qzbA4bG9IqDCJr16dQs q0AG5gtuo3NBJlceTBhnAl1PgYb0VG8Vao3KaXCi8EhiGokxm1EXV2zcjCcxFAxpJm1W UJMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dRAdWSNx; 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 c7si1845891edw.53.2020.10.29.04.55.09; Thu, 29 Oct 2020 04:55:33 -0700 (PDT) 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=dRAdWSNx; 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 S1725805AbgJ2Lx2 (ORCPT + 99 others); Thu, 29 Oct 2020 07:53:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:58112 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725730AbgJ2Lx2 (ORCPT ); Thu, 29 Oct 2020 07:53:28 -0400 Received: from mail-qk1-f178.google.com (mail-qk1-f178.google.com [209.85.222.178]) (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 820CB20838 for ; Thu, 29 Oct 2020 11:53:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603972407; bh=MjO/w8dLadPJO8+mgZEz2PmE6+PcETiEPBl3XbddTNU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=dRAdWSNxaeoTpEj8ap8c12XBqypxZXbdObNzss4wOkm8t6QBuRKJgeidTG8xQ2vOD 0rFK1+mcQOGPjE18kCeiqqCeUcXdrp+9GRx44+dYOAH28SKOSjcCfUbXZOE7SDlQlj xsjFiLVPhLqC0r0Bn7X+zKqnUKdesTgvSbYTTw8A= Received: by mail-qk1-f178.google.com with SMTP id r7so1727072qkf.3 for ; Thu, 29 Oct 2020 04:53:27 -0700 (PDT) X-Gm-Message-State: AOAM530lnw8MsePk1DA1IZRfWAvgMXA9zrf97h7Vqd+UWNV78LJq0NDZ JrSJeXo3+I1qzrRQkce1xhW98yKflwQuWC2pSzA= X-Received: by 2002:a05:620a:22c9:: with SMTP id o9mr3287427qki.286.1603972405589; Thu, 29 Oct 2020 04:53:25 -0700 (PDT) MIME-Version: 1.0 References: <20201023092650.GB29066@infradead.org> <20201027062802.GC207971@kroah.com> <20201027151106.e4skr6dsbwvo4al6@axis.com> <93bd1c60ea4d910489a7592200856eaf8022ced0.camel@intel.com> <20201029100727.trbppgbusd5vogpz@axis.com> In-Reply-To: <20201029100727.trbppgbusd5vogpz@axis.com> From: Arnd Bergmann Date: Thu, 29 Oct 2020 12:53:09 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V3 2/4] misc: vop: do not allocate and reassign the used ring To: Vincent Whitchurch Cc: Sherry Sun , "Dutt, Sudeep" , dl-linux-imx , "linux-kernel@vger.kernel.org" , "hch@infradead.org" , "kishon@ti.com" , "lorenzo.pieralisi@arm.com" , "gregkh@linuxfoundation.org" , "Dixit, Ashutosh" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 29, 2020 at 11:07 AM Vincent Whitchurch wrote: > > On Wed, Oct 28, 2020 at 04:50:36PM +0100, Arnd Bergmann wrote: > > I think we should try to do something on top of the PCIe endpoint subsystem > > to make it work across arbitrary combinations of host and device > > implementations, > > and provide a superset of what the MIC driver, (out-of-tree) Bluefield endpoint > > driver, and the NTB subsystem as well as a couple of others used to do, > > each of them tunneling block/network/serial/... over a PCIe link of some > > sort, usually with virtio. > > VOP is not PCIe-specific (as demonstrated by the vop-loopback patches I > posted a while ago [1]), and it would be a shame for a replacement to be > tied to the PCIe endpoint subsystem. There are many SOCs out there > which have multiple Linux-capable processors without cache-coherency > between them. VOP is (or should I say was since I guess it's being > deleted) the closest we have in mainline to easily get generic virtio > (and not just rpmsg) running between these kind of Linux instances. If > a new replacement framework were to be PCIe-exclusive then we'd have to > invent one more framework for non-PCIe links to do pretty much the same > thing. > > [1] https://lore.kernel.org/lkml/20190403104746.16063-1-vincent.whitchurch@axis.com/ Right, sorry I forgot about that. I think this means we should keep having an abstraction between VOP (under whichever name) and the lower levels, and be aware that it might run on any number of these: - PCIe endpoint, with the endpoint controlling the virtio configuration - PCIe endpoint, with the host (the side that has the pci_driver) controlling the virtio configuration - NTB connections - your loopback mode - Virtio tunnels between VM guests (see https://www.linaro.org/projects/#STR) - Intel MIC (to be removed, but it would be wrong to make assumptions that cannot be made on that type of hardware) - ... The existing VOP codebase does look like a reasonable start, though I think we need to discuss whether the ioctl interface should be replaced with a configfs interface, and what other changes would be needed to make it support the generalized hardware case. Arnd