Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3490643ybi; Tue, 2 Jul 2019 08:37:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqxW9JZgGCTwBM0CI8QjHC8dEhHFUjsaNYzeaYglYFCdn1ZzXrLUdM3M78VqMbgUzpqB9lYF X-Received: by 2002:a63:f857:: with SMTP id v23mr17110849pgj.228.1562081873752; Tue, 02 Jul 2019 08:37:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562081873; cv=none; d=google.com; s=arc-20160816; b=Ks6zUTfC/oMW6n2N6fbklPB5L46dMbumHDmENI+5dE1UFNpPNTEMq1YL7ORQjLzbpH Sqi17oWVnfEqTo+WBS59nUoI+1qj1BFOeKHAot31UzksgPMp9S6cxLabx9B/uSgVwI0C YUoJBERXefRkfFkMAuMbrTWsXZljwYFbVAK30aox/A1bq2GMMkNSeeJFOjfIh+OYILbo egGfUA58wRAPTCtbwSqpH0mWo20dn24qiRagfj9e2fDStd8QUlFsoOIr5HOc+xDkH4r/ jXK+HXSOwCVUiVMH3KM3UB7e9WHYMzMYlRXIkSjZdSCPPl/Hc/PP3eZT/1n311jNvP8O 4+aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=Jbd+t0wU2HM6+Xf25FXBNwZBmjBxyRZNxSWnnTH3u0s=; b=Cgo0M4EPKUDB5U/PCDXkwHs5vSSctMyc2qOnfl7vZUXB7zgitwcKMKjbS+TptcCPbm 7OS/LNngW6A8Os2pHawbXGlsZ5p27y8muuB15gT1sWhzf+xLde2H39kLaKnsCw1vOTRP UQBfE6++NOKYLwCTjWzHBC+Ks8yZgfCQLhtZU0WWK5sJOaOlADAXHONDwaHidann5Dh4 7pE/vrJACTK+kWgEgFW+9ZCf6ukUg/iHg0YKlc0voHd3ALqU3zz3XxQButKi2GZ7Gqki Mu2U7sbZtuPX8sIulPp7UwXCA/nPqxu1LR6LxvrrENMA6lPG6p94xAhgAWZzqOPRoZ+j 8LTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b="E/hGutcF"; 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 u19si13434129pgj.300.2019.07.02.08.37.37; Tue, 02 Jul 2019 08:37:53 -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=pass header.i=@st.com header.s=STMicroelectronics header.b="E/hGutcF"; 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 S1726305AbfGBPhK (ORCPT + 99 others); Tue, 2 Jul 2019 11:37:10 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:57128 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725858AbfGBPhJ (ORCPT ); Tue, 2 Jul 2019 11:37:09 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x62FWPIc013470; Tue, 2 Jul 2019 17:36:58 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=STMicroelectronics; bh=Jbd+t0wU2HM6+Xf25FXBNwZBmjBxyRZNxSWnnTH3u0s=; b=E/hGutcFgCtg9uPTe+fiAWBKFad0wJFbqBxSibJH0QZP+QvwZkFb273qX370RVBy3598 v/vQ2d+wza167qXi/XIalBFqmoLR1HbbwKa+oUpNCoNAuPzQhC6KvdC5TIVL8AVpKmUc T5FZjVJSL8Uz1/7yBy+usER3f7pr4tTVpdbWIeuTDL3qCeTa0EoS+FU2OwL1pCq+xZfa X8CP41MMud1MO6PjdyyFQHf2DVumI/wn7ISi+1DfaJK9OweUPtFFnV+8V9jb5VsaHkLZ oxDu2zWb8rrNeagPVhFnXirhtCvxzrYVc1hx50L3NuQyj3Vt5hXCMR9IVX4G/CLdWxiC zg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2tdxvhvybs-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 02 Jul 2019 17:36:58 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id C5AEC38; Tue, 2 Jul 2019 15:36:56 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag7node2.st.com [10.75.127.20]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id BA717447C; Tue, 2 Jul 2019 15:36:56 +0000 (GMT) Received: from SFHDAG7NODE2.st.com (10.75.127.20) by SFHDAG7NODE2.st.com (10.75.127.20) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 2 Jul 2019 17:36:56 +0200 Received: from SFHDAG7NODE2.st.com ([fe80::d548:6a8f:2ca4:2090]) by SFHDAG7NODE2.st.com ([fe80::d548:6a8f:2ca4:2090%20]) with mapi id 15.00.1473.003; Tue, 2 Jul 2019 17:36:56 +0200 From: Loic PALLARDY To: Christoph Hellwig , Clement Leger CC: 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 Thread-Topic: [PATCH v2] remoteproc: copy parent dma_pfn_offset for vdev Thread-Index: AQHVL9sMjAFFqcSPYUOpD1xKQA9Tl6a3MSeAgAAqZ/A= Date: Tue, 2 Jul 2019 15:36:56 +0000 Message-ID: <58c8b8bd30a949678c027eb42a1b1bbb@SFHDAG7NODE2.st.com> References: <20190612095521.4703-1-cleger@kalray.eu> <20190701070245.32083-1-cleger@kalray.eu> <20190702132229.GA8100@infradead.org> In-Reply-To: <20190702132229.GA8100@infradead.org> Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.48] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-07-02_08:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christoph, > -----Original Message----- > From: Christoph Hellwig > Sent: mardi 2 juillet 2019 15:22 > To: Clement Leger > Cc: Ohad Ben-Cohen ; Bjorn Andersson > ; linux-remoteproc@vger.kernel.org; linux- > kernel@vger.kernel.org; Loic PALLARDY > Subject: Re: [PATCH v2] remoteproc: copy parent dma_pfn_offset for vdev >=20 > This is just increasing the mess remoteproc has created with the vdev. > It is poking its nose way to deep into the DMA layer internals, and > creating massive problems that way. Can we go back to the table > and figure out what the root problem even was? To me it seems if you > clearly need separate devices they should be declared as such in the > device tree. Agree there is definitively an issue with the way virtio device are defined= . Today definition is based on rproc firmware ressource table and rproc=20 framework is in charge of vdev creation. Device tree definition was discarded as vdev is not HW but SW definition. One solution would be to associate both resource table (which provides Firmware capabilities) and some virtio device tree nodes (declared as sub n= odes 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 devic= e node in their DT file... Is it aligned with your view ? Regards, Loic