Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp258427pxa; Wed, 26 Aug 2020 09:48:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYsTXvie2xV7tF0Q2rPnN0JL2LrxD+0uVz42yFLx1DTZbF1y44QbIJXqz0ej6R4Hc/NVMk X-Received: by 2002:a17:906:6d81:: with SMTP id h1mr16421013ejt.436.1598460524110; Wed, 26 Aug 2020 09:48:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598460524; cv=none; d=google.com; s=arc-20160816; b=T28bdUhqQtC8YlVD8ZO2RtxyX1fURQMEG2bGxJcdQ3HxHJrSUQPM+bXgDUQ+dn0zvq tTNKqHdP5xQ0hwveZ2YAnTJ9+LyJfgVwsw2iJHzPtXKQna+xXjp0JHHgFZX7iF7/a30Y p7XrH070rM2AR4iRY2YNOeU0M0i3Hm9rJuuVQBszQY+aYvR2ol59PgWV3l4dx+b3iqFd tMhmZqcFwSdG2MA+cKaM76RafjE/iyKd9NDU04583CEo0sbfH1+1pBXJAhfpi/5zgtQz Yeo8wzEN4hpOnnuQfAtnt9u5wkEL5CcVCEH6HPs8ZSlNP7W+dNRyTNJhpkYPFtdSpT6p A3eQ== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=15mxbSikUleqN8D1YAzOW2MaGksrprUeUYpM9VqWUIg=; b=T0MHP/2AUFfr6voNJW59npOBUflX1J1nDimV54t56TIwUK48t62L8Azf3M+Acn5nX1 0U7lutKE73Jk224Do01K7jrg32BYiz8GEI5emui6H51GKETWGvMVy8FezcPz5szoWxnr qSJs0cM1gc2prDzoJRTRGp637L3eIpWB1in/desdT7DAKm25Vbr+RM+4IFN92ZIcKKiY vtCOboTNLFUHPV1XubXx03nMQdNvTwGf1Pf1vhsSHZpQ1WaBY4kYm9TKUX6ZkTJf14vL JzdXoBBTXHW3C+dJ3IOtZYHe7BdeP40P54E1pRXVw/br0prVNE2T8qkxKmxvrvW6hP0v wR4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e4ZNNroa; 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 e26si1770523edc.216.2020.08.26.09.48.20; Wed, 26 Aug 2020 09:48:44 -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=@linaro.org header.s=google header.b=e4ZNNroa; 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 S1728126AbgHZQps (ORCPT + 99 others); Wed, 26 Aug 2020 12:45:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726767AbgHZQpc (ORCPT ); Wed, 26 Aug 2020 12:45:32 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA7C9C061574 for ; Wed, 26 Aug 2020 09:45:31 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id kx11so1115820pjb.5 for ; Wed, 26 Aug 2020 09:45:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=15mxbSikUleqN8D1YAzOW2MaGksrprUeUYpM9VqWUIg=; b=e4ZNNroaLq7afzbqudQmKu/XebEU12dV4cwOEZO5PGjjQksIMMrMzZU4zFt84smS4R kJVs4Ug8ZSSGHmLd6C07EpbBJQVs1vEmyg7qeE6G4SmKBKRNgy5Ao6ECqbMp0N8Rpcnx NQTIwmwlzQpbWA69PryOSYx4c7GIq5T1D9bQR2X2NYqTNbPCTtmW/GiNZJ/gzBalkyoN n1J1HXfljeORqhzj7W5PjQYY80g3nmyJJ/R+axemXsyt3qNIqev8sQTKc12P96eanaCG K+3h6MGVzeMIJFDNMLwA3SIUVYVq7lE93XaU2YiI9bpsbNVgvydex2htBIOQGIoCEUwa h8FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=15mxbSikUleqN8D1YAzOW2MaGksrprUeUYpM9VqWUIg=; b=joYXVrSscc/Dh5KcXs0dXupr1hU40wJi/rM+lDv4Yn2gL2pb/y3+LQ8OXPeEALdnro ioatkIUcM97b8jxm+YIPkvJNCRp77nbEpuRQyqAJ3XkRuwRuQMLixkZOJL9WeJfANqh9 fmNWoNXxYuPCFtrCwiGr0qpGgOOeyS7y5F3xWg85foTxNK2PiE7wXx7aRLdM0UxfbG8S CeeSyrvwbMjPeAu/A8VDo6rbNHkDJMP9Sv86D3/loMhYzgNMWtlcH1grkI0n+YhTbJXH sOlOZV3TV8vHcCkrwIpMLFITxSVML+NQaEGByiFhGdyCu6TbW31VT/p3ozq1HKFRIhIi Ji7Q== X-Gm-Message-State: AOAM532E0pyB8ja42z4gYyv3NAStf0WcrvJf0zqx5BFxXi+SHsmh2VNv 7yr7PmuQbrI7exDeVnPWvxZRuysUKCWV3A== X-Received: by 2002:a17:90a:4488:: with SMTP id t8mr7064939pjg.191.1598460331448; Wed, 26 Aug 2020 09:45:31 -0700 (PDT) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id u3sm2548878pjn.29.2020.08.26.09.45.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Aug 2020 09:45:30 -0700 (PDT) From: Mathieu Poirier To: bjorn.andersson@linaro.org, ohad@wizery.com Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 00/13] remoteproc: Add support for detaching from rproc Date: Wed, 26 Aug 2020 10:45:16 -0600 Message-Id: <20200826164529.224476-1-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 applcation processor power cycled while the remote processor is still operating. I have not tested the solution because of the work involved in getting a new firmware image to support the feature. I will do so once it is determined that this is the right approach to follow. Applies cleanly on rproc-next (62b8f9e99329) Thanks, Mathieu [1]. https://lkml.org/lkml/2020/7/14/1600 Mathieu Poirier (13): remoteproc: Re-check state in rproc_shutdown() remoteproc: Remove useless check in rproc_del() remoteproc: Add new RPROC_ATTACHED state remoteproc: Properly represent the attached state remoteproc: Add new detach() remoteproc operation remoteproc: Introduce function __rproc_detach() remoteproc: Introduce function rproc_detach() remoteproc: Rename function rproc_actuate() remoteproc: Add return value to function rproc_shutdown() remoteproc: Properly deal with a stop request when attached remoteproc: Properly deal with detach request remoteproc: Refactor rproc delete and cdev release path remoteproc: Properly deal with a kernel panic when attached drivers/remoteproc/remoteproc_cdev.c | 18 ++- drivers/remoteproc/remoteproc_core.c | 151 +++++++++++++++++++++----- drivers/remoteproc/remoteproc_sysfs.c | 17 ++- include/linux/remoteproc.h | 14 ++- 4 files changed, 157 insertions(+), 43 deletions(-) -- 2.25.1