Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7155672ybi; Mon, 8 Jul 2019 15:46:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqznUr3OalSUBdNHd8VRDFZ2zDDWPazyYL5utV6F7rmRf/+ZqwAhhpd7tKUwaAiidWi21xDp X-Received: by 2002:a63:455c:: with SMTP id u28mr27296525pgk.416.1562625988350; Mon, 08 Jul 2019 15:46:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562625988; cv=none; d=google.com; s=arc-20160816; b=gT5eA/ktC/mN1ti1X/HS1Uy5vdeZNxDxPKQKI0D6ZOa5X6jLprzphA3NrrqjJheuan 4hHAU4JkYvxr7EZ9tx6Y8CmrG7LrL5tBsQajKaghcFBl7/fxbRKyXtKvqQz5DRT6/j+9 Asg6oXimhJHokiuuixDwc/v1Z3tSwOk0nNwOmPHj8f6On9cZQXFHxbONAuHrwSuUXSen AIIrI9dY4fjyjOxuEV8MOVW6VH12WMmaz4QJ2AVBgqrfhVY/kcTALY+mULpY+h2TMkSP DEyR7Y9vCIwW0VrDg6tDe1KsHRNDrnekK3VHgmCqOEjGaKX0Fc1RedYxChnGnuqV3BHU 6AYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=fDTsx57A5ljyef/Z0ObEceBOWN7WpuZYSRjbJ+qHv1c=; b=CEAU7JpuVsiOkDlcZiJRD/ES132CtdS5S5EgICwN1QzV+uLZS9FCn1YEc5kgPG/Y5S u1yDQurAkMmK40euD6dB/H8pkXgjPKZ5c6SC6Daj7LJIU9AraWJ8a1gmBfuAeeGDOnY5 IaxLxmqTVl1cDs4apbanB2VG5bNGkZVtncmtvDSV9xYlo1stsdKxUngoix8OWmWXBDBf 4+B7K8Kd2QqQPJdlez+cJKE/+ZELPZTQpYn2u2bWKGqFJJCmfxdrZyVSoT94lPSvphFY wVN4wppryEA+F5VQ8jPmoChRNv3UkBHY5h5QXD2rvYegmp8Cfv0QKl/y9i9xsIV4OIxy THaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=B2yWPiAU; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u19si20510978pgb.148.2019.07.08.15.46.13; Mon, 08 Jul 2019 15:46:28 -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=B2yWPiAU; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731220AbfGHSpv (ORCPT + 99 others); Mon, 8 Jul 2019 14:45:51 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:52282 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728109AbfGHSpu (ORCPT ); Mon, 8 Jul 2019 14:45:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding: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=fDTsx57A5ljyef/Z0ObEceBOWN7WpuZYSRjbJ+qHv1c=; b=B2yWPiAUb+yf9SLWpl5bLJBQF SZqDjuKnAXTB/CVlfY7qFVDAMEbrKhNQuFf2TFOWnjTybHm4qKwSfUIfly864W/tg+zyMcB6a4bn4 YcV5FeDI3a8MsDHV7AFKSNYXswgVQt/TKecNpc1QX29RHInTk99aepyiugbVKUjrXnc2ryYSykW38 xo8kgC7/lN0I/MlZ800pDLZaqaTDu29t8XazzquPo7xXy5DFK48q951HQqs6lQzPFQUljCD52gXFt qt42jy7TRqVhb6HE+jfuaVeWXoWk77h93wfW0XhEzHoDtvnaHeMwB1Z/ZbrgxBI7AcfQJPqx8tQc3 QeppdfzFg==; Received: from hch by bombadil.infradead.org with local (Exim 4.92 #3 (Red Hat Linux)) id 1hkYe2-0007Qu-MT; Mon, 08 Jul 2019 18:45:46 +0000 Date: Mon, 8 Jul 2019 11:45:46 -0700 From: Christoph Hellwig To: Loic PALLARDY Cc: Christoph Hellwig , Clement Leger , Ohad Ben-Cohen , Bjorn Andersson , "linux-remoteproc@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2] remoteproc: copy parent dma_pfn_offset for vdev Message-ID: <20190708184546.GA20670@infradead.org> References: <20190612095521.4703-1-cleger@kalray.eu> <20190701070245.32083-1-cleger@kalray.eu> <20190702132229.GA8100@infradead.org> <58c8b8bd30a949678c027eb42a1b1bbb@SFHDAG7NODE2.st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <58c8b8bd30a949678c027eb42a1b1bbb@SFHDAG7NODE2.st.com> User-Agent: Mutt/1.11.4 (2019-03-13) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 02, 2019 at 03:36:56PM +0000, Loic PALLARDY wrote: > Agree there is definitively an issue with the way virtio device are defined. > Today definition is based on rproc firmware ressource table and rproc > framework is in charge of vdev creation. > Device tree definition was discarded as vdev is not HW but SW definition. Well, it appears to be a firmware interface description. > One solution would be to associate both resource table (which provides > Firmware capabilities) and some virtio device tree nodes (declared as sub nodes > of remote processor with associated resources like memory carveout). > When we have a match between resource table and rproc DT sub node, we > can register virtio device via of_platform_populate. > Then need to adapt virtio_rpmsg or to create a virtio_rproc to be DT probe compliant > like virtio_mmio is. > > But that's breaking legacy as all platforms will have to add a virtio device node in > their DT file... > > Is it aligned with your view ? Yes, that is how I'd assume it works. But given that until recently you did now have these subdevices for dma coherent purposes we can't really break anything older than that, so I might still be missing something.