From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B0949C433E9 for ; Mon, 1 Mar 2021 19:00:17 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 67573600EF for ; Mon, 1 Mar 2021 19:00:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 67573600EF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ouNzA18TCYgV9yJtRDA70HvIIcIpZ/S3gOyVFQvnhME=; b=F4SlDS2hqo1fM3JS4dA8tf23H fEJewmAfMxAzuNCno9GjkV+qpa8k9SRJSE/X/uG2NJxVK/FD3nznT1nqPSDiFKzhzqDzxZwVfW4+j xKgVoOIWZElQclPTXOKq+zZKloQQu7ddsLmXvIf9qBIlYskX8kA6UcA0TIkQ0+6T7stg1NWCmLGis vePIXCQ3dykhiZbxSda+F9RhFo38PWriPr9oJL8tK/WvheMj9tWVHDAbTK5lsGJTidiVdIK+Zpoxm iEp+rrTh/O/yzrLWm96qRdYNy39rHL8kiOIWIouPFavMapSzso14BPsHegKT0IWPKvEKsFnsqmSux lnm6SAywA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lGnl0-0001JO-65; Mon, 01 Mar 2021 18:59:02 +0000 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lGnkx-0001Hr-2e for linux-arm-kernel@lists.infradead.org; Mon, 01 Mar 2021 18:58:59 +0000 Received: by mail-pf1-x429.google.com with SMTP id q204so11081928pfq.10 for ; Mon, 01 Mar 2021 10:58:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=dehH1srb5wSCPruG5pLg/y+gFzUjxYT/97pbvVhtQ+s=; b=g3raq5ssPuzA1FpBLkGMU/18l9aA0Skg7LNPeqhbhybLfEtc1pez9y1E4hpdxIj6vg VTtPogVFHdmNGHgXE/dcoqA91O9vP4huZzkfJz6iXTnC1xIcRfx+VfwWH4GRWl5anWqs IjbnTAU41YC5fPJYZ6jhEZqNfOdrjs4mgaBEdOjOjki6DImVSzZy/XXca5nqk4bCzTle DF+Y+Kblk26ejRZlLGQwOPZUh2lT16QvwyiyAAsIv/KRGR/GCmbj8hEKKR+EuQiGRoDL VS2+nvUbNVr5WBLoRzJ4EEshQpc/iCE4ZSJXIGY2svdmfUR6L0sVkTUCKejV9dD2HTfi 3Jsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=dehH1srb5wSCPruG5pLg/y+gFzUjxYT/97pbvVhtQ+s=; b=POc5Qgu4Bt0BeSWi5fw6J//sf0jsINEb/j2InEf4JKsvGjrqlVx93i/PX4OVj1uJv+ jYMXjvysGDOxf/TKOnLtGrNK+f9y3D5dv8FFqwfAfYkQTWIcz8Qi2bijXDXrrQ0PbeaA IElkEjsx5UnN50H8nI+otRlhIFDeghnljIuWK6aBN0OLXjkxidZnRQ5OvLUTdeGWFyC8 WahzMxpF2tNZ+QdVNjbsMPVwk3KV4rnyOzHS87sRluxSrMRnEJJFPbFVVh2AirGAEkL2 p8dJF23hqzYTxobjTdeTepXQjjBxZ6l49l3gG3SBCbzv6rWVkEq375loUlo+2UMNxLi8 6Hew== X-Gm-Message-State: AOAM532xVuvorpMqR8r24J1aq11Z1KH468huYPrxncouRvn3elgPcCnK 5BWWfVLK3fvqqcAxuUMTUj98JA== X-Google-Smtp-Source: ABdhPJwwTm+u781GASjPu1pnPgIKPgjBt/7cKp9kBiSMZqrPMimTSqcojwFli98kEyvrUICgHaY53Q== X-Received: by 2002:a63:4c55:: with SMTP id m21mr15119963pgl.29.1614625136714; Mon, 01 Mar 2021 10:58:56 -0800 (PST) Received: from xps15 (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id 9sm16806400pgw.61.2021.03.01.10.58.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Mar 2021 10:58:56 -0800 (PST) Date: Mon, 1 Mar 2021 11:58:54 -0700 From: Mathieu Poirier To: Arnaud POULIQUEN Subject: Re: [PATCH v6 00/16] remoteproc: Add support for detaching a remote processor Message-ID: <20210301185854.GD3690389@xps15> References: <20210223233515.3468677-1-mathieu.poirier@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210301_135859_150127_69435B4A X-CRM114-Status: GOOD ( 24.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ohad@wizery.com, alexandre.torgue@st.com, arnaud.pouliquen@st.com, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, bjorn.andersson@linaro.org, mcoquelin.stm32@gmail.com, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Feb 26, 2021 at 05:40:49PM +0100, Arnaud POULIQUEN wrote: > Hi Mathieu, > > On 2/24/21 12:34 AM, Mathieu Poirier wrote: > > Following the work done here [1], this set provides support for the > > remoteproc core to release resources associated with a remote processor > > without having to switch it off. That way a platform driver can be removed > > or the application processor power cycled while the remote processor is > > still operating. > > > > Modifications for this revision are detailed in the changelog of each patch > > but the main difference is that going from RPROC_RUNNING -> RPROC_DETACHED > > is no longer supported to avoid dealing tricky resource table issues. > > This seems reasonable to me. If necessary, this could be part of a separate series. > > From test point of view, it is working pretty well on my side. Thanks for taking a look a this. Mathieu > > Thanks, > Arnaud > > > > > Applies cleanly on rproc-next (e8b4e9a21af7). I will rebase on 5.12-rc1 when it > > comes out next week. > > > > Thanks, > > Mathieu > > > > Arnaud POULIQUEN (1): > > remoteproc: stm32: Move memory parsing to rproc_ops > > > > Mathieu Poirier (15): > > remoteproc: Remove useless check in rproc_del() > > remoteproc: Rename function rproc_actuate() > > remoteproc: Add new RPROC_ATTACHED state > > remoteproc: Properly represent the attached state > > remoteproc: Add new get_loaded_rsc_table() to rproc_ops > > remoteproc: stm32: Move resource table setup to rproc_ops > > remoteproc: Add new detach() remoteproc operation > > remoteproc: Introduce function __rproc_detach() > > remoteproc: Introduce function rproc_detach() > > remoteproc: Properly deal with the resource table when attached > > remoteproc: Properly deal with a kernel panic when attached > > remoteproc: Properly deal with a start request when attached > > remoteproc: Properly deal with a stop request when attached > > remoteproc: Properly deal with a detach request when attached > > remoteproc: Refactor rproc delete and cdev release path > > > > drivers/remoteproc/remoteproc_cdev.c | 21 +- > > drivers/remoteproc/remoteproc_core.c | 263 ++++++++++++++++++++--- > > drivers/remoteproc/remoteproc_internal.h | 10 + > > drivers/remoteproc/remoteproc_sysfs.c | 17 +- > > drivers/remoteproc/stm32_rproc.c | 168 +++++++-------- > > include/linux/remoteproc.h | 21 +- > > 6 files changed, 362 insertions(+), 138 deletions(-) > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel