Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1345745ybg; Thu, 4 Jun 2020 07:29:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyE8C5QmpzZMuRYumRwCjzqyJ3/bO0eeQ3NVdGJcIP3qt/tAK6/S9NQyAvB4y1O5SXe7Pkw X-Received: by 2002:a17:906:16d3:: with SMTP id t19mr3970169ejd.297.1591280979869; Thu, 04 Jun 2020 07:29:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591280979; cv=none; d=google.com; s=arc-20160816; b=OydbetV19Yx/K6lWCqZi1mnWmO61hzzn55Vj8RZjgulEyCf5QxabTD+/vBDCRCKtjo xOAyu8Qnt2sOcGW0E5QkyIM3XSHqmCuWVoUBNTWP6n2hGbCNjNaFUtJK6HWKvbmh1mys 9DIwdWEhOT1hHQ8sor9YGtdkfXv6/HdRaSztLAbcMur1RAcK5AjpHDgUzLZ79kZs3MiJ 2vFkcm1crmRk6+DyuLdmwRGM2wbvshE9wg73eJGGphySdw0TLGQvlDL/Wzp4yef4H8cf a36hh4gPLN79tNL3ic0Wg871E2vlpeVPcR5N81qXBLrtbEzlvbMUQxq7rIUT22nM5Bta sUYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=UkmPnCEcRQC0JdajD5qa7MyPL9pxMsvhxlH+GUvo0sI=; b=jgeuKuac4AensqSyvOpFph9ZS4fYJ8eDiysH0anO6UPRylh1TGMoW1swOhQbD90/GV 4PqmsmpFdm6OC5WIR12hYo+R+jDU5m1rIJ8cSXMPwqw+/drWPQF61sOBoJ5h/CtjrvUH 9dKIBk50kdrhkmUI/0wbykPNTZA8Al6ULn19W715dPRX6kXfkjYttG9nI1p3uj8zMpyY PNXgvwF+obd0bsnvdZaV4JCIVQQWRdNMdxXBcwjXH2AwsQVjTUPbvIImZORxEpgnr/C8 aYof54M88p4FNA02Q1tTxg/kUh6MzrjBfNVFQmRLOvu/62yZtoCOpRR11VVFjEnksLJV CthQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=RfoMZQjO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p18si1668517edm.288.2020.06.04.07.29.16; Thu, 04 Jun 2020 07:29:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=RfoMZQjO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729001AbgFDOYK (ORCPT + 99 others); Thu, 4 Jun 2020 10:24:10 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:1655 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728881AbgFDOYJ (ORCPT ); Thu, 4 Jun 2020 10:24:09 -0400 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 054EMikq009578; Thu, 4 Jun 2020 16:24:04 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=STMicroelectronics; bh=UkmPnCEcRQC0JdajD5qa7MyPL9pxMsvhxlH+GUvo0sI=; b=RfoMZQjO+7nbuCmeQSa9AcEnmj0FlV23lpGsOqXivY/l3qr7tkbSTK12JEbhxvlLooou XqjfFXRzdSwxcjS9rIlqiN7D/WYTa6UtjTVez6YpOZxoYit9jqz620rEw2+i3HeN+H7H 9PbbEnvtZ8j6EKZ8ch/zPh1nNCEERepsLaO36iNMnIbnvLlLdtMrPtFwfbEJcRY5D/IE Ist1jftqdzJnHy/ULC+8CyDxCd27iWRq8i097ywDIVjQiSdeLHiCO0WqLj/CnFXalRwN NY9YPxEqrIypwqDPjkTDbL+yoOJMydLPyZ4YG59Nqp03FiSIiUWnU2acoMvTqH745f4m nQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 31ejxavamu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 04 Jun 2020 16:24:04 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 0C9F6100038; Thu, 4 Jun 2020 16:24:04 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag3node1.st.com [10.75.127.7]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id F051B2C50C8; Thu, 4 Jun 2020 16:24:03 +0200 (CEST) Received: from lmecxl0889.tpe.st.com (10.75.127.51) by SFHDAG3NODE1.st.com (10.75.127.7) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 4 Jun 2020 16:24:03 +0200 Subject: Re: [PATCH v4 0/9] remoteproc: Add support for attaching with rproc To: Mathieu Poirier , "bjorn.andersson@linaro.org" , "ohad@wizery.com" CC: "linux-remoteproc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Loic PALLARDY , "s-anna@ti.com" References: <20200601175139.22097-1-mathieu.poirier@linaro.org> From: Arnaud POULIQUEN Message-ID: <0780724c-4fc0-9f98-023e-aa1245b01888@st.com> Date: Thu, 4 Jun 2020 16:24:01 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200601175139.22097-1-mathieu.poirier@linaro.org> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.51] X-ClientProxiedBy: SFHDAG7NODE2.st.com (10.75.127.20) To SFHDAG3NODE1.st.com (10.75.127.7) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216,18.0.687 definitions=2020-06-04_10:2020-06-02,2020-06-04 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mathieu, On 6/1/20 7:51 PM, Mathieu Poirier wrote: > This fourth iteration implements a solution that is fairly different from > what was proposed in V3 and earlier versions. Three aspects have been > revisited: > > 1) Only the scenario where the remoteproc core is attaching to the remote > processor is implemented. Other scenarios where actions need to be > taken when the remote processor is stopped or crashes will be > considered in subsequent versions. > > 2) The introduction of a new RPROC_DETACHED state to be set by platform > drivers when needing to attach to an already running remote processor. > > 3) New functions are introduced to replicate the functionality provided by > rproc_fw_boot() and rproc_start(), minus operations related to firmware > management. > > Enhancement to the documentation has been left out intentionally until it > is agreed to move forward with this implementation. Look good to me, i have only a minor concerns about the code duplication introduced by the point 3) If you are agree with that, I plan to do a new review on the stm32 series when you will start the documentation :-) Regards, Arnaud > > Applies cleanly on rproc-next(7dcef3988eed) and will be rebased on v5.8-rc1 > when it comes out in two weeks. > > Thanks, > Mathieu > > Mathieu Poirier (9): > remoteproc: Add new RPROC_DETACHED state > remoteproc: Add new attach() remoteproc operation > remoteproc: Introducing function rproc_attach() > remoteproc: Introducing function rproc_actuate() > remoteproc: Introducing function rproc_validate() > remoteproc: Refactor function rproc_boot() > remoteproc: Refactor function rproc_trigger_auto_boot() > remoteproc: Refactor function rproc_free_vring() > remoteproc: Properly handle firmware name when attaching > > drivers/remoteproc/remoteproc_core.c | 226 +++++++++++++++++++++-- > drivers/remoteproc/remoteproc_internal.h | 8 + > drivers/remoteproc/remoteproc_sysfs.c | 17 +- > include/linux/remoteproc.h | 9 +- > 4 files changed, 243 insertions(+), 17 deletions(-) >