Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp698157ybz; Wed, 29 Apr 2020 07:52:10 -0700 (PDT) X-Google-Smtp-Source: APiQypK+/siIQH54W4WubHpfCft9kYO1HgrW2LbVXahj2MdxMi47jATD7FBiQMyAsR4Ixnod7HoQ X-Received: by 2002:a50:b286:: with SMTP id p6mr2819728edd.350.1588171930221; Wed, 29 Apr 2020 07:52:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588171930; cv=none; d=google.com; s=arc-20160816; b=Qe0KBfTIU6HLSKdIAO5qN8/uO9tUxi9IZ+JA6wXGyUKSNu2AFneRmAKbM0Yuf6foii 36RgHWHDxljYk+zbpRTdqbNXMxYBDvWwEZ+h8pLu9oHRQwAH2/uQYHjesWv68LAg0c6I hwWea9q6VPtcHWcTAFOEl+i/oh1/fMwxstIfULcaxh5T6ZA/UIuf+JFGsRSxa2WGGgKn qBrL5D09Rrb6v1sdpJOHd260Vc/4SCSx3sU+kUOY3dsaCIPqukNjrZuJAigwly23cXAl XCOHwTKYwIf7zjeMWL/9a6Pfdttq0KfevwjG6STIsDU4wlGqQYodlpJrpgpWyTzzEgZD xiIw== 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=Kr1XXbzLTlBBBZ4y6p9Pc2Y8Dqf2pHM8kUu97rhSPs8=; b=ZQEINVoLXbmWUqqd33TWMVNS6jjA0+38USaCT+5V4KTl8qTiBsIPMxI1HtqSHmnjsa 67ZQrW3WpMkmpmwuovOfZY6bTGdWPSN7jbswjMaTKh3n1hzebACBNOzyTMoMqDPhNVtR L2nsCiPB9cTIZMQbv4R8LdiJJC4xP8e22/RUiG5j5pOAntDvGuxBPv9ih9DAFtNb7qU3 yerBBofs36g9NkM2Bj3E+6j2eA7OPWGy+Q3tkIydCIl+ncff5PbhiPXTuZzMIk1eFrv4 eICSPvHlCC4PIzAzEZGhlXczPT1dJIQArwMo/VDg6ZAYyFil4Qv5txmJzgTYDwsjDwU8 J+uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=qPTpZJMY; 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 cb5si3711124edb.57.2020.04.29.07.51.46; Wed, 29 Apr 2020 07:52:10 -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=qPTpZJMY; 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 S1726691AbgD2OuN (ORCPT + 99 others); Wed, 29 Apr 2020 10:50:13 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:36066 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726456AbgD2OuN (ORCPT ); Wed, 29 Apr 2020 10:50:13 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 03TEmXHb002888; Wed, 29 Apr 2020 16:50:05 +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=Kr1XXbzLTlBBBZ4y6p9Pc2Y8Dqf2pHM8kUu97rhSPs8=; b=qPTpZJMYIZCSukhS/KRaf8VGAJz9sKiwwCb9HtlYB140Ftw1hKr8cNT5kJvVRAJ6a/dl Id4LZpXwdHSqRYfaE/zGkwrulkDbfo8TurbuXsWnv8feUSvRAYxktZKYdFvZbpePPmzX 41fN5Ag0pm2JGHcbjV2nXmPB6LQfIRAH2HXgQL4UdR10joFX2A3ehFmRzRiAh5/1FggC 7CYp+YEkzbugb7IulSzL0L5J0W5JynnCkJeBjXp3DPvCvPvwYazJXtznWoobr9cRbdgg k+Vt8M94UsN5UPHP6UzatGrkG6M0bTvA4Rtheg6Q/Pmbt26ir3geY9oK2gr+8E63foKv wg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 30mhjwy0tv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 29 Apr 2020 16:50:05 +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 20E06100034; Wed, 29 Apr 2020 16:50:05 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag3node1.st.com [10.75.127.7]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 10E532AAF6B; Wed, 29 Apr 2020 16:50:05 +0200 (CEST) Received: from lmecxl0889.tpe.st.com (10.75.127.46) by SFHDAG3NODE1.st.com (10.75.127.7) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 29 Apr 2020 16:50:03 +0200 Subject: Re: [PATCH v2 08/12] remoteproc: stm32: Introduce new start ops for synchronisation To: Mathieu Poirier , , , , CC: , , , , References: <20200424202505.29562-1-mathieu.poirier@linaro.org> <20200424202505.29562-9-mathieu.poirier@linaro.org> From: Arnaud POULIQUEN Message-ID: Date: Wed, 29 Apr 2020 16:50:02 +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-9-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.46] X-ClientProxiedBy: SFHDAG2NODE2.st.com (10.75.127.5) 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 On 4/24/20 10:25 PM, Mathieu Poirier wrote: > Introduce new start functions to be used when synchonising with an MCU. > > Mainly based on the work published by Arnaud Pouliquen [1]. > > [1]. https://patchwork.kernel.org/project/linux-remoteproc/list/?series=239877 > > Signed-off-by: Mathieu Poirier Reviewed-by: Arnaud Pouliquen Thanks, Arnaud > --- > drivers/remoteproc/stm32_rproc.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/drivers/remoteproc/stm32_rproc.c b/drivers/remoteproc/stm32_rproc.c > index 8ba69e903851..404f17a97095 100644 > --- a/drivers/remoteproc/stm32_rproc.c > +++ b/drivers/remoteproc/stm32_rproc.c > @@ -449,6 +449,13 @@ static int stm32_rproc_start(struct rproc *rproc) > return stm32_rproc_set_hold_boot(rproc, true); > } > > +static int stm32_rproc_sync_start(struct rproc *rproc) > +{ > + stm32_rproc_add_coredump_trace(rproc); > + > + return stm32_rproc_set_hold_boot(rproc, true); > +} > + > static int stm32_rproc_stop(struct rproc *rproc) > { > struct stm32_rproc *ddata = rproc->priv; > @@ -522,6 +529,10 @@ static struct rproc_ops st_rproc_ops = { > .get_boot_addr = rproc_elf_get_boot_addr, > }; > > +static __maybe_unused struct rproc_ops st_rproc_sync_ops = { > + .start = stm32_rproc_sync_start, > +}; > + > static const struct of_device_id stm32_rproc_match[] = { > { .compatible = "st,stm32mp1-m4" }, > {}, >