Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp719810ybz; Wed, 29 Apr 2020 08:12:35 -0700 (PDT) X-Google-Smtp-Source: APiQypJM+yEjeF1hIhM8PyPH0t6vXMOT+osFo5gZnIPQ8Uyn0xkkR/UQW3T9huB/w0+yclfVCXMG X-Received: by 2002:a17:906:3296:: with SMTP id 22mr3075844ejw.195.1588173155224; Wed, 29 Apr 2020 08:12:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588173155; cv=none; d=google.com; s=arc-20160816; b=AhwcrvWEB7MKzCnKS+RLh1HgOMuDwrDAWNE8dIDPmEOTjwrKLL16FckK44X9PPzTq9 ArVdd8l8iUSw3I5xikDbvhn4XsOR/02MrIMYID4n5xnyogmR6nEL5m5Jxi0+nTx3ub5H voBcF4ZYC7Q3f4hv/LLwiCN+zZm9QCUsW362eCM94MDt5LQK0Z6GZNPEY3fSVgZxiFGU dnaMWlIxrIN0P+UOD9wzDve2osdUnff4eQy3TPm3yWjQFk2UYCUcpsM9Gylq6/rT5OLE LEK4hj5/LYOl+Ou7X7SuVaOuQAjBy2amh9KkN3azrPdsBYvDEGrwAv6Q4v+s96SFVg9s YiEw== 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=OrHsueskmIs43EdFBn1E0vUvKJn0/dh6AJ0xQ3uCkUU=; b=anfokuuq8kuFJB7yI8rfxCWPcwoT90jJ2qHWD50YlNGv+NL32W4z8EaXoQHwBxAVaC KBIx0hoWq5G2Qy11UGrV5/lWgSJRcYlUbt6iP2gYsOzsUFdumoPVSydJxqOp42V2dUUs t6YazSxlZSFraclTXU9CB6KagZWvFZQIakwPTEfMZnzpE8FIht6fKs8EnRaD2BuJl34h F1gugPd+fmrxpfeN57af8uv/KxgaH1e7b10OJ17FMEtiYmcDVKHZJKyV8k48BwAVzc2h ch3H6BHAf8FQOk8jdcj+DrrQ4QWg5ZJnwX8uxaekS5W+rjIQ8X7D+egV/5UV8KUWdLmC m1Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b="WU/9l2NU"; 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 a88si3775469edf.379.2020.04.29.08.12.02; Wed, 29 Apr 2020 08:12:35 -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="WU/9l2NU"; 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 S1727790AbgD2PIp (ORCPT + 99 others); Wed, 29 Apr 2020 11:08:45 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:12606 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726618AbgD2PIo (ORCPT ); Wed, 29 Apr 2020 11:08:44 -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 03TF8PQB004369; Wed, 29 Apr 2020 17:08:34 +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=OrHsueskmIs43EdFBn1E0vUvKJn0/dh6AJ0xQ3uCkUU=; b=WU/9l2NUHJH3flwUdt93RKlSOQmpi7VFr8JCg6CpOnWjmxuv0b7ar/GvhNXzDhytHw6O bD9La1Beo83P0GFaqGWCOKMbllfsqlZwUQmfQqVEWZOqnGsECGZ5OwE0eKPy8MoiwS8l hzEuVg5D9cWA1zgd6h/nGnyOBmZByzpgribLJrtwFUQK+1mCd2wiHhG9nqDvb4XQRwDG nd7PUINXfID6uHt30ZPMQWW7a3x6XdTxL6GEsalwwGEaXz3v5V/QXkbaLsC27xc4TJaM zH1s/QnOFs7NG/c775sAO6DcdcJqJ7PzUDVQ5Vi6yHZ915hYmedzryzE30fgHiVzuToJ IQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 30mhq672ft-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 29 Apr 2020 17:08:34 +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 4F1E310003A; Wed, 29 Apr 2020 17:08:34 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag3node1.st.com [10.75.127.7]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 3CE062AB39C; Wed, 29 Apr 2020 17:08:34 +0200 (CEST) Received: from lmecxl0889.tpe.st.com (10.75.127.45) by SFHDAG3NODE1.st.com (10.75.127.7) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 29 Apr 2020 17:08:33 +0200 Subject: Re: [PATCH v2 00/12] remoteproc: stm32: Add support for synchronising with M4 To: Mathieu Poirier , , , , CC: , , , , References: <20200424202505.29562-1-mathieu.poirier@linaro.org> From: Arnaud POULIQUEN Message-ID: <219771d3-b0a5-0ec7-7f20-d2055bcb0217@st.com> Date: Wed, 29 Apr 2020 17:08:32 +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: <20200424202505.29562-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.45] X-ClientProxiedBy: SFHDAG7NODE3.st.com (10.75.127.21) To SFHDAG3NODE1.st.com (10.75.127.7) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.676 definitions=2020-04-29_07:2020-04-29,2020-04-29 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mathieu, On 4/24/20 10:24 PM, Mathieu Poirier wrote: > This patchset needs to be applied on top of this one [1]. > > It refactors the STM32 platform code in order to introduce support for > synchronising with the M4 remote processor that would have been started by > the boot loader or another entity. > > It carries the same functionatlity as the previeous revision but account > for changes in the remoteproc core to support synchronisation scenarios. > Some RB tags have been removed when the content of the patch has strayed > too far from the original version. See patch 3, 8, 9 and 12 for more > details. I reviewed the series, and made some tests on my side. FYI, I do not answer to patches when tagged "Reviewed-by: Loic Pallardy" and with no extra remark. So consider them as Reviewed-by me but not necessary to add the tag in commit, Reviewed-by: loic in commit is sufficient. Concerning tests, it works find except the crash recovery from a sync start. But i suppose that you know the limitation, waiting Loic patches[1] update :) [1]: https://lkml.org/lkml/2020/3/11/403 Thanks a lot for your work! Arnaud > > Tested on ST's mp157c board. > > Thanks, > Mathieu > > [1]. https://patchwork.kernel.org/project/linux-remoteproc/list/?series=277049 > [2]. https://patchwork.kernel.org/project/linux-remoteproc/list/?series=239877 > > Mathieu Poirier (12): > remoteproc: stm32: Decouple rproc from memory translation > remoteproc: stm32: Request IRQ with platform device > remoteproc: stm32: Decouple rproc from DT parsing > remoteproc: stm32: Remove memory translation from DT parsing > remoteproc: stm32: Parse syscon that will manage M4 synchronisation > remoteproc: stm32: Get coprocessor state > remoteproc: stm32: Get loaded resource table for synchronisation > remoteproc: stm32: Introduce new start ops for synchronisation > remoteproc: stm32: Update M4 state in stm32_rproc_stop() > remoteproc: stm32: Introduce new parse fw ops for synchronisation > remoteproc: stm32: Introduce new loaded rsc ops for synchronisation > remoteproc: stm32: Set synchronisation state machine if needed > > drivers/remoteproc/stm32_rproc.c | 262 ++++++++++++++++++++++++++++--- > 1 file changed, 244 insertions(+), 18 deletions(-) >