Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp611843pxb; Wed, 3 Mar 2021 10:43:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJypEI89BlXK11M7KtXCa3V6+UJDeq7I4tAIRbwZXUYpbkPXCaoUj2Jeketd1/D1aiuRwYuR X-Received: by 2002:a05:6402:35d0:: with SMTP id z16mr667009edc.151.1614796985734; Wed, 03 Mar 2021 10:43:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614796985; cv=none; d=google.com; s=arc-20160816; b=nKP8j6lODFfgtoCikMo658RTpeQqiNdvGnEnllpMEQ6yxjqd8V5+D9rvAXiPIX7Aad RZWrXTdlvChCwc7CL9e0ljh89+HjngHwFzAMiOqoz09CDhvSVzNXXascnMGlnyV/kffs qJn3iMGCdO1LbBI3DYKjsuQSsnn1WMNMgMn3gxXdVOTPPakfeRiH0+PFxp2MzO/w0A3t RcC7FRLn/iv0fhwpf6QCbHYdnxd5mLzJt1eaW/Cl67lMKtyfQXYZzks6TVNtDF7MeAib gtrzhQM2u1VHaNMgFnJDQbIFUT8UWwDd3o/N7tAMkp+zayjHhodVlg6019ZMEUtAfqpK eGVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dehH1srb5wSCPruG5pLg/y+gFzUjxYT/97pbvVhtQ+s=; b=Zg7+LZLMu2wmv+8AXP6/ituROsWOaDkzTGKyE/eudkbVERAD3UKkzumw5zQJ8tLxlD X3fLeQLPx+eGX517+JKictOSUetcRWQLjH0PWtSrnAhTHtDA/7rFElnDw0nPzxjS6L13 wjfi/hQZ201vrsMKpbWcaYce8wdo9DdToW0Zllk/lvu0DVyXYmN+4sktLCZP66ZctRRZ 6WQLIM1thkhG83WuWZieOQpjgShOia/VX6f8onZDIjdQ88QaV6CadHnD28hvHqYe+OvF R9cD7I6FxwvjaZxkQCkeMxeRv+oaazXJErEOpOJMRmIhc20j2zbyUFnPxcOdw27hP2uS yYJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g3raq5ss; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e12si10659661edj.427.2021.03.03.10.42.28; Wed, 03 Mar 2021 10:43:05 -0800 (PST) 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=@linaro.org header.s=google header.b=g3raq5ss; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378368AbhCBBFk (ORCPT + 99 others); Mon, 1 Mar 2021 20:05:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235946AbhCAS7i (ORCPT ); Mon, 1 Mar 2021 13:59:38 -0500 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DDA2C061756 for ; Mon, 1 Mar 2021 10:58:57 -0800 (PST) Received: by mail-pf1-x42e.google.com with SMTP id m6so12150312pfk.1 for ; Mon, 01 Mar 2021 10:58:57 -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=cf+A4Tg9YPQazi+en33P/VZXOIK609bhqlToPubI4UfOyQTa+iUUjERRo6jICaJgBm CnFqNFpZTWp+BycqPcNtupROEJfTz1U9zRzLKlpXSaLfxAl1u3W4qvUV1gmOyGvjIMtE KlXu92kXAmq7aLjaM/4QyvceE/Hq32EfEIlzYzfiVFocjOwL9X5m04lTQ0wtQG4z8Mns Ja0Exgu9nvageays95+XVscyjVTXYMuCNlH4ki8sxgM9TZEO+UvyNhkuJdvgV0aFPk15 spcqOJSSYIjaZ6hHdNGT48XvU8jpL4Dmv7UyKpvsqFbgNpZA81vPgYSEBo4RtV+FHwMB X8Lw== X-Gm-Message-State: AOAM533GDmpB2uqs88ky1dGN6mHO1QHe/9MXRNt90NEu5RwITEo/uxmQ tPb+HmvT8OUf2acgscSASowhyA== 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 Cc: ohad@wizery.com, bjorn.andersson@linaro.org, arnaud.pouliquen@st.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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(-) > >