Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934337AbdC3Rjf (ORCPT ); Thu, 30 Mar 2017 13:39:35 -0400 Received: from mail-by2nam03on0042.outbound.protection.outlook.com ([104.47.42.42]:60224 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933150AbdC3Rjc (ORCPT ); Thu, 30 Mar 2017 13:39:32 -0400 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=xilinx.com; From: Jiaying Liang To: Loic PALLARDY , Suman Anna , "Wendy Liang" CC: Bjorn Andersson , "linux-remoteproc@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [RFC LINUX PATCH 0/3] Allow remote to specify shared memory Thread-Topic: [RFC LINUX PATCH 0/3] Allow remote to specify shared memory Thread-Index: AQHSpNTzb2hG+iS4lU61qwbrwyDeoaGpUJYAgAHEG4CAAEvKgIAApicAgAChgoD//+BewA== Date: Thu, 30 Mar 2017 17:39:24 +0000 Message-ID: References: <1490383336-23117-1-git-send-email-jliang@xilinx.com> <3aaedbd9-168f-9dd0-62de-3e4209ee09a8@ti.com> <9de125b10df7471abcea747f12fdc00b@SFHDAG7NODE2.st.com> In-Reply-To: <9de125b10df7471abcea747f12fdc00b@SFHDAG7NODE2.st.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.19.161.229] Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.1.0.1062-22974.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.83;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(39450400003)(39860400002)(39840400002)(39400400002)(39850400002)(39410400002)(2980300002)(438002)(199003)(189002)(13464003)(377454003)(24454002)(9170700003)(33656002)(93886004)(39060400002)(966004)(561944003)(2920100001)(2900100001)(23676002)(6246003)(2906002)(189998001)(8676002)(81166006)(5660300001)(50466002)(229853002)(8936002)(55846006)(54906002)(7696004)(356003)(63266004)(6306002)(4326008)(5890100001)(5250100002)(38730400002)(6116002)(76176999)(102836003)(2950100002)(54356999)(3846002)(50986999)(106466001)(53546009)(305945005)(47776003)(55016002)(7736002)(107986001)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR02MB1151;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;MLV:ovrnspm;A:1;MX:1;PTR:unknown-60-83.xilinx.com;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;CY1NAM02FT037;1:Q02ByQ990RaRXN2SdHuKQcCe/SRUGM8zoArLQ2JpdB2C1MxBAOlU+nZKh2yjJMukze/FMtVf5uFF2DrGTMvbpkHcb6B13+PiFWRNVBQ1ecna8Z0gWWszloJTHxCvh4g9DI1t6LlOEPZW7AOGu7Tdt3LwGQ7pNA/eQ9dzWnlZKHSrB/nPTctdRR8F/E1Lz7hiwPWi2dYwlJpck8WwuI8aVrhqidPPWiU2wVfP32vufviMtrDHosVCatj7nYf1SDmSXD4h5GvxQBt9mktCDjJthvg7mXFA82Bz7z/LOGc53yAOFjPvZxNUEtr+NrmglzYESLqC28law60j//hmbH9e4XiNdXK+Z3aqfSCEn+7u7Y7yE0eq8yqV0Q1qR8x3Bm1EgMs3ycYkUZKnmMKP5mldqH+U+2D0eg4f4TO8HiPuYEtUkOl2DAM+ef+Nl/F9uWtXoAatTI1RBTSDgKDGmyODXgV7s79OBHrOKHIAbE4oSNNnPK26tArhB2tSugrmcFIhZeartX6DESPJ4DMBXz/un7lrLkxltah9WW6TynANu8QsUmoXH3B8Yjui0h+mWxmur9tOu4M1ZRzg7HHSbWWtngzEOOnNdiO1w3qq+/GNy1jUwnck60BoNdlEX6j56Gnd X-MS-Office365-Filtering-Correlation-Id: 3fb4fa2b-746b-4e03-cb62-08d47793b78f X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081);SRVR:CY1PR02MB1151; X-Microsoft-Exchange-Diagnostics: 1;CY1PR02MB1151;3:QfAnel022YJdJ0Tv1zU+Fs95AFUqy3ib+IEpJXwRP8AD9LuVxJW2C4rUTy8gByYlci3tzQ08T66Pb/aJEm5leHCI5bHkHuLvLdX6JEWL8MY2BBRpu6qRHuuw+GitjH9em817WV6JwjKn+Nc9hN/8/cZvtF1IH+euqJ8WZfy9eVtBoptv3ZBEI7YuI+Uz2o+YwKvNB03ZgYHEXQ76gUixNFT3+HG658t4wrTiX9aMpQfEDR2arHTYGZRbYi/PBOqs/WxRoVZcpjhNKFuuIXPmpWgXIiyvYf0Hkb/o25hGOBy6WzE4hbfJ4UIBHw1etxsWYIu2R+1tuM5Y+6/bdiNoJwV4GtvBpWVQNqLWE4xWxI5nyxlBKbu2OaVW3U/nuj6J3+keFhpp2JviSA4tMVfRnW9mFSV2mHXdR2ZwkMeliVUdC3XfQ5j8GWh6srnBW8KEYSCoyM0X2rBUxfxLpeZXFI5fgqdv9b+yBQRBDKO6FLBuTYZbL4ectai1MEDQnYZN X-Microsoft-Exchange-Diagnostics: 1;CY1PR02MB1151;25:TJIF82yE+lMnid4GJtIsYmbJDHFHImAX2OEm3fPWRo+UZAitFgxzU3v46mrVKWaTUnzDW1IPPGbhUgJWzvVPG4ubg0Bn19vc7FScQ75FllXSntakDIWrTXUB7UERG3AW9kCc8B+O4BrxTRjk5yKLnVYHC0jqFk1hOPKi9DkxOmQ1j1VzhNhhciu06217gCMDR67VsGqHqasnAurRB17nv5zrxwfRVbSZjWhYRzyd3Xk6FB0Wy/z6l20l7yhO43iOzXRfupZToRFoNzZwYHIHcdrNjT02Y/wzS2pZrbrII23nznvPgU1ky4hAnfVYDpKNhAG7+xoNQR+LW+ivKwA9fH2OfA8n9EC+QiKZvF0tK+qYLIBzum3fc3GUo4ZbzW/BEDybUhPVywyZ4zIYhQOHH3EV/t1+J/1Z1dgUfUERTFmbL/apbwBjbopI8snhk+8NfpZqHdyY3dhb+TZTEJQutg==;31:slZDnUiIgbV3jo2sxJv0Ww4hw3zWd19EDZuK+D6X+/+yhjdfaKPBo1qDPYeaKxStdkx02Bkh2Aija3Q1nxVIM2LqzAbyPFEWdo+qsBxAbz/1mehwk/iilb57UqV8A9vkR5DMEFEVPNPPmctXXYyEILcUhurt+C2JNUMxUtnL5N2yBg4j4ZzRsRtNOfw/0iuySF1eRc85Y8cqdSd26o4M9+n1Qob7mllDCqyR7k1e2o0lkTrUXWP+GxG8f40r9567/qxOhXXmb6k2CNCCLL3c5g== X-Microsoft-Exchange-Diagnostics: 1;CY1PR02MB1151;20:xJOB614FQBYuhAGkaj+SbF8LSg6YFDD2HOu/SfZZJcMIqjqQLGrK76KVETFcob7zqnYpSJjG8XpB6xM3lQpTqliM/BHt/dIJJvtdloOFwdsMgX8h/y5Ht/qH6t3565gg43SOKYFM8yt6B4MhfY9cnZx9xWojmmVRb6smnuTAVKGNmLMsE9J4fpCkADml5xqnokHCIc4RE5327GmC/mAZNEIt5A7nEYLUvSBqI2T1LxBrrLERD9Fl8uh4cGJTxQpwbdBKVRoqHg1sYqV1JGLl0tsFiAXAYxwE2SupFlQ4ST9BCcPZk4YhgOSDTj2+4vI3Vqfb62ta9UxBYYqU6vDUCXoQAwFkSOXUS+s9G7a3a6ixGOtRIsaSZv5UDCO+7aF+toD9M6MV117/yk+WggEOwR8P/mAQIQRzdQAMuZG23hO784zzbW9mYwI0vGNK+IxFbYWVoHu4AU/Dyn/Bu3SaJVD+WafDUIOK+kY25it3VDOheM4lYe8LsGRTSNJDWjbS X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(31051911155226)(9452136761055); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(601004)(2401047)(13017025)(13015025)(5005006)(13018025)(13023025)(8121501046)(13024025)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(20161123562025)(20161123555025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(6072148);SRVR:CY1PR02MB1151;BCL:0;PCL:0;RULEID:;SRVR:CY1PR02MB1151; X-Microsoft-Exchange-Diagnostics: 1;CY1PR02MB1151;4:1Ip9XBb/xcqVvSfAaGXkPEWDKD1j8BQno3AEDWzvM++4FWGjKg6HRPcMgYsO6xxzyhdN2pkpeLgPVs/GqEDUk8UiElA9jooSA5iLnBD99yC5sHOWcc49wr67AYhnlBCrTFKfqJQSrUs2tnpW3AmBgp7+gmmkZrPY/zAstrDcp/ZHmEOg+quZzGrmzcC3SXTfI79Boq5o/PBS+4nsC1NYA4ZL2CCOlFjlzJK8Gb+5+yPTewbHdnSUaIYKiGwlV9s1J9itKWAQNox5EtEE9Q2I4UPgTCKcm0C/vLoT6cWa7loUB0OfiROyPGnzRA6BHX+SY9rvicgYf1bishmi20dXSNpXhY4omwFkA/8re7HDF/Z1LXP5DGNZNTyaxXbGba3H58d7ECBKysbxecucZjGAq2FjpitnHAkYtRIFFI70g+69v5ARw55s0EutJNKsL/Y/Wo44jDck3iIw4piw4Z2fRj3VRRMiEf5mroEw7BFL1X3ErDiu9fYqiNqFrE6WfT1Dh2fkYABSBJ43IaTtGTt0GT9AXrZuGajvJqRU7feP7C1UI/iAAVdnKfKQ4t2WrHhvCUD2U+KMZo8+Kx/s0KqZWtPegymwjeHDG+v9tMfGGmO80iTwJTNwgX5oYlZBoa2BhsdR+ja4A/19prnJGxnF4flIovc3qIyrpkQlBe2ZfxoQ00wlg4ZYH/WMn1i/Ga01Go2mkUSCI0cEmmTi44uorxjsdeIa7tPqa/gw8JXUYyhqYodNwskBwR9/cIMOkaF/SS84HorUhsaNHaFhiwqS6pIWaedJARgMUZ95650szKDrixhk5z39G/qC6ICR8x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?ZWRLTU8xRFE4b1IvZzBVRUd1MmhCM0JrSmF3ZXdGQ2lkS2xOMVZablJEMTB4?= =?utf-8?B?Vm8rSnptaGs0Vkh1a0Y1UVZoWnhIMnBUb21UOTllTFluUklSWWdPdDJSajVG?= =?utf-8?B?eGdnZTVqM1pjUE9uN3ZnYytmR1JidXdickgzNXVSOTM4L1pJOHowdDRXbFBG?= =?utf-8?Q?c6zQaVhdiEw=3D?= X-Microsoft-Exchange-Diagnostics: 1;CY1PR02MB1151;6:BU4Y0Q6MPZaWUybbv/pWXoi+fYCq+e00fMik7rIujA0DSh/iIFvw8yaO1xL2XTEEybbIpHCCWmMLLbWcaa6tVR/wqD7JfQ8YhLC96TbinhurQGmQ7784WIqsUDM3xebnpL2vPvZiUtxDXmBhLPIGbxcMCAEqSLCZUxOXIzwWUtLmeqcDu6NfkvDIKE5cKQa0N0HCppIn9N2Ilj2Yq7UXllSSEFVNVwcax5khKHtVglkJw5cESX1Z6rUtwX1Co7xG8LAComv7zTiH7D1j3lHqyTSZLvdylCXLMFcLOoflIdDGffNPNpaxlXNUzgiDsMjg3RsuC+Fgk5NR6idaI2Nxl21IagY51wOSrZNe4Tx6ffqpw7hHdb28/TXVtooTxk21pCYd5V718M6KbE7DfM/iEcm+UEloXyKglT5AglpzF80=;5:3c7A07yixJkDJCuYgXPKu8ERKbyV2w5PA83lwLiswUV2cei/gSoTdH1ZaaSyYScLvBOQUCpC/iVPp4XlWxoIkzyWYrtIRWeNUH0cZoMu0zFR3/je5I+JAp1qui/35LmC9DQIrWFjBrqPdkWkREXKeg==;24:J3vfuurrARviaX1TCFR6m+4m8RgPDrwO4eciP49Iy06Th3dGG+49VJ0+WYObZQssPng0W/wXSHNN6XtuTGSKg56HBIj+MCBiOLN6nSqnsH4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY1PR02MB1151;7:2ZmTxiUwgwzQCFSrH/Pec3ZLJarwdA54CmGif6rIA5jotk0ELgkBhxjVLsJsUSmWneoy1NV6u6HzohQYdcrvHybTjnoaFCe6mcMGDlS/d2ehjfN67JRw8iIx2/FKzZcbp8ddXpWV+3hdrtOrI7Znf8jjB6kAocrjNHU8yZYKCDMQ7wAKLSL2b5AJo6hUob7yNzX0ed9vQ3eDNQxrKaiT916GroW6g4ldcdxf+lEDrRmOwANnn53nU0INXzpX7El8sVMDqn/thTMa40lv//kuTXWFCFcEqpk6QGzHv4WN+kf4haUmaCRxfbtM71fg/ojsDEsg87USJ5Wl9YuqdCNzBQ== X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Mar 2017 17:39:28.4947 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR02MB1151 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id v2UHerWu004508 Content-Length: 7367 Lines: 177 HI Loic, > -----Original Message----- > From: Loic PALLARDY [mailto:loic.pallardy@st.com] > Sent: Wednesday, March 29, 2017 11:57 AM > To: Jiaying Liang; Suman Anna; Wendy Liang > Cc: Bjorn Andersson; linux-remoteproc@vger.kernel.org; linux- > kernel@vger.kernel.org > Subject: RE: [RFC LINUX PATCH 0/3] Allow remote to specify shared memory > > > > > -----Original Message----- > > From: linux-remoteproc-owner@vger.kernel.org [mailto:linux-remoteproc- > > owner@vger.kernel.org] On Behalf Of Jiaying Liang > > Sent: Wednesday, March 29, 2017 6:41 PM > > To: Suman Anna ; Wendy Liang > > Cc: Bjorn Andersson ; linux- > > remoteproc@vger.kernel.org; linux-kernel@vger.kernel.org > > Subject: RE: [RFC LINUX PATCH 0/3] Allow remote to specify shared > > memory > > > > Hi Suman, > > > > > -----Original Message----- > > > From: Suman Anna [mailto:s-anna@ti.com] > > > Sent: Tuesday, March 28, 2017 4:24 PM > > > To: Wendy Liang > > > Cc: Jiaying Liang; Bjorn Andersson; > > > linux-remoteproc@vger.kernel.org; > > > linux- kernel@vger.kernel.org; Jiaying Liang > > > Subject: Re: [RFC LINUX PATCH 0/3] Allow remote to specify shared > > > memory > > > > > > Hi Wendy, > > > > > > On 03/28/2017 01:52 PM, Wendy Liang wrote: > > > > Thanks Suman for your comments. > > > > > > > > On Mon, Mar 27, 2017 at 8:54 AM, Suman Anna > wrote: > > > >> Hi Wendy, > > > >> > > > >> On 03/24/2017 02:22 PM, Wendy Liang wrote: > > > >>> This patch enables the remoteproc to specify the shared memory. > > > >>> Remoteproc declared this memory as DMA memory. > > > >>> It can be used for virtio, or shared buffers. > > > >> > > > >> You should be able to achieve this without any remoteproc core > > changes. > > > >> You can do this by defining a reserved-memory node in your DTS > > > >> file (can be a CMA pool or a DMA pool), assigning the node using > > > >> memory-region in your remoteproc DT node and using the function, > > > >> of_reserved_mem_device_init() in your remoteproc driver. > > > > > > > > The idea to introduce the rproc_mem is to let the remote to > > > > specify the shared memory. > > > > I am trying to see if there is a way to specify this software > > > > attribute without touching the device tree as it doesn't look like > > > > it is > > > hardware related. > > > > And try to see if there is a way that when I change the firmware, > > > > i don't need to change the device tree. > > > > > > So is this shared memory going to be accessed through an MMU by the > > > remote processor? If not, don't you need a specific carveout, which > > > would then in turn mean boot-time memory reservation? > > [Wendy] This memory is not accessed through MMU by remote. > > Here is the usecase, the number of remotes can be changed at run time, > > Also the firmware running on the remotes can be changed. And the > > remote will Need to memory map those memory before it can use it. > > > > From what you have suggested, we reserved memory from the device node, > > and then remoteproc driver linked to that reserved memory with > > "memory- region", I suppose different remoteproc drivers can share one > > "memory- region". However, now the question is how the remote knows > > the shared memory. > > Let say I use rpmsg for the communication between the two. But how can > > remote knows about the shared buffers before it can used it. > > > > I saw Loic has a patch to add virtio config to specify this buffer, > > however, it is not in the latest linux kernel master. And thus, trying > > to see if there is another way to solve this issue. Use existing > > carveout to specify this memory? > Hi Wendy, > > Potential issue with this proposal if the order resource table is proceed. This > memory region should be assigned to device driver first before starting any > allocation. [Wendy] User will need to put it to the first entry in the resource table. So that It can be declared first before device driver to allocate memory. > Moreover you can assign only one region to a device. But you need different > memory regions with different attributes: one for firmware and one for vring > for example. > That's why we propose sub-dev mechanism some months ago. [Wendy] Just in our case, we only use virtio devices. But I agree, there can be Limitations if you have other sub-devices. > > I think we need to find a central mechanism to manage "fixed" memory > region for firmware (carveout) vring as both are handled by rproc. > For rpmsg buffer, one proposal will be to assigned a dedicated region to > vring device as mentioned in "[PATCH v4 0/5] virtio_rpmsg: make rpmsg > channel configurable" cover letter. > It will be rproc responsibility to provide this specific memory region based > either on DT or an firmware resource table information to virtio device. [Wendy] Just the virtio_rpmsg is not in the latest Linux kernel master. Is there Any plan to apply the patch? I agree we need to find a central mechanism to manage "fixed" memory. Here are some questions: * Shall we reuse carveout resource for "fixed" memory? * Although "fixed" memory doesn't sound like the same as "carveout" memory to me. We may consider "fixed" memory as carveout resource with pre-defined addresses. Is this ok? * How to linked the fixed memory to the target device (e.g. virtio device)?, Can we use "name" of the memory resource? * how to "formalize" the name? "virtio_"? Maybe Bjorn can provide some suggestions on the "fixed" memory solution. Thanks, Wendy > > Regards, > Loic > > > > Thanks, > > Wendy > > > > > > > > regards > > > Suman > > > > > > > > > > > Thanks, > > > > Wendy > > > > > > > >> > > > >> regards > > > >> Suman > > > >> > > > >>> > > > >>> Wendy Liang (3): > > > >>> remoteproc: add rproc mem resource entry > > > >>> remoteproc: add rproc_mem resource entry handler > > > >>> remoteproc: Release DMA declare mem when cleanup rsc > > > >>> > > > >>> drivers/remoteproc/remoteproc_core.c | 40 > > > ++++++++++++++++++++++++++++++++++++ > > > >>> include/linux/remoteproc.h | 23 ++++++++++++++++++++- > > > >>> 2 files changed, 62 insertions(+), 1 deletion(-) > > > >>> > > > >> > > > >> -- > > > >> To unsubscribe from this list: send the line "unsubscribe > > > >> linux-remoteproc" in the body of a message to > > > >> majordomo@vger.kernel.org More majordomo info at > > > http://vger.kernel.org/majordomo-info.html > > > > > > > > This email and any attachments are intended for the sole use of the > > named > > recipient(s) and contain(s) confidential information that may be > > proprietary, privileged or copyrighted under applicable law. If you > > are not the intended recipient, do not read, copy, or forward this > > email message or any attachments. Delete this email message and any > attachments immediately. > > > > N r y b X ǧv ^ )޺{.n + { 騵 k ȧ  ܨ} Ơz &j:+v zZ+ +zf h ~ i > z  w ? > > & )ߢf This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.