Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6792507ybi; Mon, 22 Jul 2019 01:44:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqyi+p9ot6N0zHyvtRcprCIYngylkcw+xsgRfFa22VtyD+XBW6z2UIDCcf0QP7rXZBpdYYjn X-Received: by 2002:a17:902:758d:: with SMTP id j13mr71613689pll.197.1563785096199; Mon, 22 Jul 2019 01:44:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563785096; cv=none; d=google.com; s=arc-20160816; b=ikER8T7QVEsxqZRbklkgTovcCF1WVwnXGiFn9fNsSp/qprYb4D7FiRwNn4KDsXw49R +SHWtpFRWWJIbzfnDGm7K6ccHZj1rDBCPl4oLUrYts9a0FnhHUo1cZIbXn6rEYUQ6w+a LZZvtMW++zCdxfFCIah9JVY6qJ2um0uv1431qqy3QflXFDrk+LU8ZCLr2ISPuWTnqH+p dxxOAN70xnksScBpJerTSD9pm2n3Ip+F1gDU+St9LcirN016Ib1lEkaHwM8FPgnznSc/ gYvvTA/0ZB7WjfaetDWevlGyM721oFcpCCPRLyoxWhnndPl4brKI+BafNv6h8KtwZqlP HNxA== 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=imr2sIFk1Lgr/a7SvJT94lfftuDU4y9CMeO9VDYfTXQ=; b=pdq/+QayQT4ABHSmyZLfhtNOeP5kjdArRA1tBC749o0WYoedePByFP0KHRaDND9GFF vXv6ebG+n4SydcQ2PV5dCJMWA8yTfx2at2yq0QdeuVmHHjj2ZpXUhxU5wzRTjIbeWMka JZ2i5Vf9bLl4rg/zrHBy/Qr5JlDv8sIIYACawnnGoykq6+joDWFnQgwS6prrMk/kZo4K kezZG7tqjiCmHkZtT6yrf+WFmubk53V7BVhpY2PQWqCmeGOjmchGhTpX67DTcSPO44y5 Q3Cig5J+efROYHwwSrLe4MyBIfCmsIJtoLsn4d481wRqZyocKy3smyIG0LUDKT2RBkmy BxMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=hXez6iMH; 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 p19si8268366pfn.53.2019.07.22.01.44.39; Mon, 22 Jul 2019 01:44:56 -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=hXez6iMH; 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 S1728502AbfGVIly (ORCPT + 99 others); Mon, 22 Jul 2019 04:41:54 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:59150 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726481AbfGVIly (ORCPT ); Mon, 22 Jul 2019 04:41:54 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x6M8fJ6b016279; Mon, 22 Jul 2019 10:41:34 +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=imr2sIFk1Lgr/a7SvJT94lfftuDU4y9CMeO9VDYfTXQ=; b=hXez6iMHUuSntwF3oWe4Pl4zkYYP/Wx1TRbHa/Tc3cTMlkjqjCpCbtty7PHFUQzp5L30 T9jc1AyDAzUTRbSMzK0qqVsObdAduryEQWSP75hreQ6iIpI8ymUVfeUCaxjiNN5pEWPg uaQCobSLRVELHWEVau2R/DJc8Ic4dDMdAF3D5Y6SdayS4E53DrsjyBYhoaiKlLDU0SCC 2cf42Eas/XaQ/PoKw7D7SgkFRNOtDmC+B4nscaUxMnUJkED45MHI/jyqX9TMHXHeNAXt KmbYMsPSd3LoLBvOyDGPFy8SKXFWxvBFSNC2nxc+BHg5tCOpOL0P/is42mtPKYwCWHm6 3g== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2ture1ajgs-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 22 Jul 2019 10:41:34 +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 2E18543; Mon, 22 Jul 2019 08:41:33 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag7node1.st.com [10.75.127.19]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 9506F270C; Mon, 22 Jul 2019 08:41:32 +0000 (GMT) Received: from SFHDAG7NODE2.st.com (10.75.127.20) by SFHDAG7NODE1.st.com (10.75.127.19) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 22 Jul 2019 10:41:32 +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; Mon, 22 Jul 2019 10:41:32 +0200 From: Loic PALLARDY To: Christoph Hellwig CC: 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 Thread-Topic: [PATCH v2] remoteproc: copy parent dma_pfn_offset for vdev Thread-Index: AQHVL9sMjAFFqcSPYUOpD1xKQA9Tl6a3MSeAgAAqZ/CACZ3pAIAQfN4AgAT4THA= Date: Mon, 22 Jul 2019 08:41:32 +0000 Message-ID: <3c2c98e785704969a862715ab52ce2de@SFHDAG7NODE2.st.com> References: <20190612095521.4703-1-cleger@kalray.eu> <20190701070245.32083-1-cleger@kalray.eu> <20190702132229.GA8100@infradead.org> <58c8b8bd30a949678c027eb42a1b1bbb@SFHDAG7NODE2.st.com> <20190708184546.GA20670@infradead.org> <20190719063250.GA9545@infradead.org> In-Reply-To: <20190719063250.GA9545@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.45] 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-22_07:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Christoph Hellwig > Sent: vendredi 19 juillet 2019 08:33 > 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 >=20 > On Mon, Jul 08, 2019 at 11:45:46AM -0700, Christoph Hellwig wrote: > > > 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. >=20 > Any chance we could expedite this? remoteproc is the only driver > inheriting dma ops to subdevices, and the only one using > dma_declare_coherent_memory. I'd really like to clean this mess up > rather sooner than later. Ongoing... Two topics to clean up: - Sub device creation and DMA ops inheritance --> need to use platform_devi= ce or device tree - dma_declare_coherent_memory use --> it has been introduced to support int= ernal memories declared via reg field. I propose to migrate existing drivers on reserved memory usage and so remov= e dma_declare_coherent call from remoteproc core.