From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [RFC LINUX PATCH 0/3] Allow remote to specify shared memory References: <1490383336-23117-1-git-send-email-jliang@xilinx.com> From: Suman Anna Message-ID: Date: Mon, 27 Mar 2017 10:54:44 -0500 MIME-Version: 1.0 In-Reply-To: <1490383336-23117-1-git-send-email-jliang@xilinx.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit To: Wendy Liang , bjorn.andersson@linaro.org Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, Wendy Liang List-ID: 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. 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(-) > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751934AbdC0Ql3 (ORCPT ); Mon, 27 Mar 2017 12:41:29 -0400 Received: from fllnx210.ext.ti.com ([198.47.19.17]:16836 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751642AbdC0QlW (ORCPT ); Mon, 27 Mar 2017 12:41:22 -0400 Subject: Re: [RFC LINUX PATCH 0/3] Allow remote to specify shared memory To: Wendy Liang , References: <1490383336-23117-1-git-send-email-jliang@xilinx.com> CC: , , Wendy Liang From: Suman Anna Message-ID: Date: Mon, 27 Mar 2017 10:54:44 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <1490383336-23117-1-git-send-email-jliang@xilinx.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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(-) >