Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp655341ybg; Mon, 1 Jun 2020 10:53:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGAtQVOZWACelglLm9z9+Ca8j8CRKvkIF66ft+qo++Ep6/1cLZs5oqQm9hozrp2fVjgsIm X-Received: by 2002:aa7:ce17:: with SMTP id d23mr22989678edv.387.1591034036293; Mon, 01 Jun 2020 10:53:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591034036; cv=none; d=google.com; s=arc-20160816; b=naaZGNLEQ6/SxYPUYpfbYU23ID0x3VL7OlUIa2lVlVQrn58qbcBgJlfSCJXtoBD+ih s3gfx0Sah6vNeXfiQnPgWzBhKHmaZtR5WyQuOTyJ2xhoGreA0HjSxd209fFj1jw9ZM59 I4pg7RjzOWmWumpXQDZlIqW4Rn029LFY5goJRhXFN99r1f1M+j1z3pkIc2oMvvfrT/cc l/x2QdxorYXhgvAZ8hWEtRA7tS21JymeGCdy6sZsXPerF10AlFFGSAMKLscM5jfYjkOs kEnCtdE4nzn3JyrPOlqKhasCWNOffH/T1Nh7DOMgolcBJwnQG0u3U5CIxV4pWLak7r/6 v2Vg== 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=WlrUKklQ4wWdbnRY/ut1RE+n38DuD/sUC9c4AFrauXE=; b=ekJE70XjFvt3+di6gXsS2kQ25hz0oNMibTEmJoUwBxI5t8jihC8zTGrzhqdA/0bCrF qUo+DPGzAPKBElSbjbGCCyzYMfLsqj+Y+/OhGSr92+AA4/tJKc2MSOCXnkClbiXksEuK zeWrxc/8vAugJUbX/P7OEJm7AcAWw0Gf4DRa9VlH96MhfxVe2lyQc/ipHJL/SnERkcEP DuVFlktNl42M2V8V0Hhjva9pNwDUqwCT9zR/QUDl6v0dJO7HEMdMKShuG1qzrMDEoXZB djxHc87Lvm/eeyD8yQcXFgi00mc2QMvN50uUzr/ifJE9lOm9pfBnDdu+E7/DfbyrGcdK fLBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FPnJ+2iq; 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 qp17si110707ejb.706.2020.06.01.10.53.32; Mon, 01 Jun 2020 10:53:56 -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=FPnJ+2iq; 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 S1726232AbgFARvm (ORCPT + 99 others); Mon, 1 Jun 2020 13:51:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726073AbgFARvl (ORCPT ); Mon, 1 Jun 2020 13:51:41 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E4BEC08C5C0 for ; Mon, 1 Jun 2020 10:51:41 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id t7so261855plr.0 for ; Mon, 01 Jun 2020 10:51:41 -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=WlrUKklQ4wWdbnRY/ut1RE+n38DuD/sUC9c4AFrauXE=; b=FPnJ+2iquw+8js0IWILUf5shb1WdAiPhMfhoogI3ZHlWPUX2RdYAta2sliwALjQwFL CFzTVo1pTBwJnhOHFA2dZ3NARW6KzRdq8uRxgn79DZGw7hP4RwQZcst1Om6VcVPZR+1A mf60HQym79P7n0ZfkX4/C49gRg3IsjqcL2MfUNBz2sOXWI6cBob/k12FXm0S5192M2jn UdZ2JRqXAzuVuWzjwd4hGiZ/Db5NCQ2rUEprJgs00cdXWyUKrAadPmxzrNqZUo/mcrPR gfmh51A0Nka5JUh9RGFN0ZAaFDMEQslDMPevjJjr11LXU+hpph5bUBW2jhBQtDpxK5zD Jt8Q== 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=WlrUKklQ4wWdbnRY/ut1RE+n38DuD/sUC9c4AFrauXE=; b=UCseBZbue/6ap2AUtY3Yrr2SRNwIKHMh0brDQxdzYZ+RFm+EtRVFRf6B7J52sEAIN1 YA+A0z0wcoN6KAsBnbzTdrlUD0LGkYkJAfR7MTQ7kQc8lhCUX2zCXoBUvV3RwXeUXwHV CReE8YwJU/TwVRbG/LM+T2mjSTU0x4pgD4lv8aHpavCwTak2+DqRzsmDmCYywdfvsMOf H/skQPGNxjV+0ln+nfHHGKbTfZSd4Z7m0iRgCM+nroTI+A79t/WSX2i0W5z0RTBxThwh NWaTrlsd1ApRmKdnuhGj9XxRZRysD2LRIWi6cSvquWe/5AzSUyBPJtUuY2M4qWWVXlEG 07rQ== X-Gm-Message-State: AOAM532TkJ8PiE5H6grnY0sBJav3+mGVJX1NAmLmLCIvCL4NDkXAKJwl 1Rf+AiW6ceh57tTI+s9JLJ+5QZFgVPM= X-Received: by 2002:a17:902:bb86:: with SMTP id m6mr20919601pls.341.1591033900861; Mon, 01 Jun 2020 10:51:40 -0700 (PDT) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id k12sm58219pfg.177.2020.06.01.10.51.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jun 2020 10:51:40 -0700 (PDT) From: Mathieu Poirier To: bjorn.andersson@linaro.org, ohad@wizery.com Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, loic.pallardy@st.com, arnaud.pouliquen@st.com, s-anna@ti.com Subject: [PATCH v4 0/9] remoteproc: Add support for attaching with rproc Date: Mon, 1 Jun 2020 11:51:30 -0600 Message-Id: <20200601175139.22097-1-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.20.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 This fourth iteration implements a solution that is fairly different from what was proposed in V3 and earlier versions. Three aspects have been revisited: 1) Only the scenario where the remoteproc core is attaching to the remote processor is implemented. Other scenarios where actions need to be taken when the remote processor is stopped or crashes will be considered in subsequent versions. 2) The introduction of a new RPROC_DETACHED state to be set by platform drivers when needing to attach to an already running remote processor. 3) New functions are introduced to replicate the functionality provided by rproc_fw_boot() and rproc_start(), minus operations related to firmware management. Enhancement to the documentation has been left out intentionally until it is agreed to move forward with this implementation. Applies cleanly on rproc-next(7dcef3988eed) and will be rebased on v5.8-rc1 when it comes out in two weeks. Thanks, Mathieu Mathieu Poirier (9): remoteproc: Add new RPROC_DETACHED state remoteproc: Add new attach() remoteproc operation remoteproc: Introducing function rproc_attach() remoteproc: Introducing function rproc_actuate() remoteproc: Introducing function rproc_validate() remoteproc: Refactor function rproc_boot() remoteproc: Refactor function rproc_trigger_auto_boot() remoteproc: Refactor function rproc_free_vring() remoteproc: Properly handle firmware name when attaching drivers/remoteproc/remoteproc_core.c | 226 +++++++++++++++++++++-- drivers/remoteproc/remoteproc_internal.h | 8 + drivers/remoteproc/remoteproc_sysfs.c | 17 +- include/linux/remoteproc.h | 9 +- 4 files changed, 243 insertions(+), 17 deletions(-) -- 2.20.1