Received: by 10.213.65.68 with SMTP id h4csp3438798imn; Tue, 3 Apr 2018 05:06:48 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/KhsrUFGy/8DxeLF2YCF6aQrBBode41XpwkDgACxTbqkbwUEMP8l+w3dMSqqfWs5BfXMsX X-Received: by 2002:a17:902:2805:: with SMTP id e5-v6mr14146171plb.89.1522757208636; Tue, 03 Apr 2018 05:06:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522757208; cv=none; d=google.com; s=arc-20160816; b=zTn+UZ4AdOfzan8292AgULckhHgQSNUYRrQhB8GqTuM7DMb3MLz8e+kAQBdxBObqCJ YMBgiKJRBh6eLRSGrp9g4cUAVcVrSyqn6Z+s1TlfXwgKsiLy7b2LlpPIB/7sHR+Wsr1Q oNq5NgLXrJHvJo1LtTatkkymF8lxhDh61CSurBOy5b5bmboHWwgl4fYsYWGNVUqJ0fJa genK2iJHbpyMhz/avWSdXoP9/jL/u6/d5YsPOTFj944k2rh0h/EngPfzQu9yNasZm+mv lLwpdZtWIBl2IT3LzZBrzQE6Z3YJLf8BUymYXFyuk6gwRWIezZl1NUzZUkuBkkhTbTei Mtbg== 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 :arc-authentication-results; bh=bbmFCDJ1q3mkL5UHrGWp9IIEr4Hxcmz5tQD1r3MrdeY=; b=ZOMDunF3jhvNrFrA0dW3URHEUBlYbzPE7k5WmWrUMS8/pKXXCL5y73XIL8jT/2GTKD 9fR9ehOmPb3PEhIrQloKl/8F7Gh4nnqfKcOwVRkS0mJiYYEO5Dlj/C4mNO6Pig5ufjnO hqo65TXSqtyUkltnmXlS3zTdu8PHktWSegazp3du5bW16J9xkU8RU5Gs77r/yOYzO53W ja0QRFILvAmnxD6Rn5dSmEGADgZQQd3knGWYuJ8XnI6UdxFqaBfDUnysH1FpPkDowOHn iRYiyk7s3f+uWNtdwvxhcuvdUXCRWakPoD0lu75tJ0o6WrUmnEy3Lq8R/+FAVfuevxdA KvSA== ARC-Authentication-Results: i=1; mx.google.com; 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 i3-v6si392716pld.241.2018.04.03.05.06.34; Tue, 03 Apr 2018 05:06:48 -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; 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 S1755523AbeDCMEY convert rfc822-to-8bit (ORCPT + 99 others); Tue, 3 Apr 2018 08:04:24 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:45474 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755300AbeDCMEX (ORCPT ); Tue, 3 Apr 2018 08:04:23 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w33C4Lgf028172; Tue, 3 Apr 2018 14:04:21 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2h217dwbgj-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 03 Apr 2018 14:04:21 +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 25DAC31; Tue, 3 Apr 2018 12:04:18 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag3node3.st.com [10.75.127.9]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id F4195270D; Tue, 3 Apr 2018 12:04:17 +0000 (GMT) Received: from SFHDAG7NODE2.st.com (10.75.127.20) by SFHDAG3NODE3.st.com (10.75.127.9) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Tue, 3 Apr 2018 14:04:17 +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.1347.000; Tue, 3 Apr 2018 14:04:17 +0200 From: Loic PALLARDY To: "bjorn.andersson@linaro.org" , "ohad@wizery.com" CC: "linux-remoteproc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Arnaud POULIQUEN" , "benjamin.gaignard@linaro.org" Subject: RE: [PATCH v3 00/13] remoteproc: add fixed memory region support Thread-Topic: [PATCH v3 00/13] remoteproc: add fixed memory region support Thread-Index: AQHTsXm52AmRE8n/bkGgITRbf19uP6PvI3aA Date: Tue, 3 Apr 2018 12:04:17 +0000 Message-ID: <206695dbbf5c4c968680ec3df9937b52@SFHDAG7NODE2.st.com> References: <1519921440-21356-1-git-send-email-loic.pallardy@st.com> In-Reply-To: <1519921440-21356-1-git-send-email-loic.pallardy@st.com> 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.46] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-04-03_05:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bjorn, Just a gentle ping... As discussed during Linaro connect, I'll appreciate if you can share me your comments... Regards, Loic > -----Original Message----- > From: Loic PALLARDY > Sent: Thursday, March 01, 2018 5:24 PM > To: bjorn.andersson@linaro.org; ohad@wizery.com > Cc: linux-remoteproc@vger.kernel.org; linux-kernel@vger.kernel.org; > Arnaud POULIQUEN ; > benjamin.gaignard@linaro.org; Loic PALLARDY > Subject: [PATCH v3 00/13] remoteproc: add fixed memory region support > > The aim of the series is to implement carveout memory management as > discussed during OpenAMP weekly call and defined in proposed document > [1] > > This first series focus only on adding support of the different types of > carveout memories (dynamic, fixed, platform driver depend...). > 64bit resource table will be addressed in a next series. > > [1]: http://openamp.github.io/docs/mca/coprocessor-memory-definition- > v6.pdf > > --- > Changes sine V2: > Reshuffle the series to: > - Take into account Bjorn's comments. > - Add patch to check consistency between carveout resource request and > IOMMU > support. > - Introduce platform specific prepare and unprepare ops to enable HW like > clock, bus, regulator, memory region... before loading co-processor > firmware. > - Rely on memory carveout management for all remoteproc memory > allocations. > - Lookup pre-registered carveout by name first. > - Create a subdevice for each vdev declared in firmware resource table that > will be used by virtio based driver to retrieve specific memory pool. > > This series takes some assumptions for carveout names associated to vdev: > - For vring: "vdev%xvring%x" with vdev index from resource table and vring > index > in vdev. > - For vdev buffer: "vdev%xbuffer" with vdev index from resource table > > This will be changed in the future, adding names field in vdev resource in > next resource table version. > > > Changes since V1: > - Minor corrections on first 7 patches (error management) > - Add "memory device" support on the top of first 7 patches. > Goal is to answer use case reported during OpenAMP weekly discussion: > - "Be able to specify memory region for vring and buffer allocation, even > if no specific request defined in firmware resource table." > Patches offer the capability to create a "memory device" associated to a > carveout with a dedicated DMA memory pool. Different resource handlers > are > modified to look-up for specific carveout by name. If match found and > associated > "memory device" present, device is used instead of rproc platform device > for > allocation. > > > Loic Pallardy (13): > remoteproc: configure IOMMU only if device address requested > remoteproc: add rproc_va_to_pa function > remoteproc: add release ops in rproc_mem_entry struct > remoteproc: add name in rproc_mem_entry struct > remoteproc: add helper function to allocate and init rproc_mem_entry > struct > remoteproc: introduce rproc_add_carveout function > remoteproc: introduce rproc_find_carveout_by_name function > remoteproc: add prepare and unprepare ops > remoteproc: modify rproc_handle_carveout to support pre-registered > region > remoteproc: modify vring allocation to support pre-registered region > remoteproc: create vdev subdevice with specific dma memory pool > rpmsg: virtio: allocate buffer from parent > remoteproc: st: add reserved memory support > > drivers/remoteproc/remoteproc_core.c | 332 > ++++++++++++++++++++++++++++---- > drivers/remoteproc/remoteproc_debugfs.c | 1 + > drivers/remoteproc/remoteproc_virtio.c | 2 +- > drivers/remoteproc/st_remoteproc.c | 68 ++++++- > drivers/rpmsg/virtio_rpmsg_bus.c | 2 +- > include/linux/remoteproc.h | 22 ++- > 6 files changed, 379 insertions(+), 48 deletions(-) > > -- > 1.9.1