From patchwork Tue Jul 14 20:04:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 11663461 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 29370618 for ; Tue, 14 Jul 2020 20:04:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0FB26207DD for ; Tue, 14 Jul 2020 20:04:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="pSWmdrIl" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729556AbgGNUEs (ORCPT ); Tue, 14 Jul 2020 16:04:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726818AbgGNUEs (ORCPT ); Tue, 14 Jul 2020 16:04:48 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1591CC061755 for ; Tue, 14 Jul 2020 13:04:48 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id s26so8048029pfm.4 for ; Tue, 14 Jul 2020 13:04:48 -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=LjzGXptWS/l0yG6s3mnPFGJ9K+cv+bp4hvQ+18wjBOc=; b=pSWmdrIlDHbS9EiuzX5lEL+nl6cwEFKhWNqXr24ppucg3KUIEItrCqgIaY2CfWl5Sb VXCPBw9smvPY9q5wN2FjPisBSw/oMoLzsdE3mUlNlMnIJrtSGiPWAQ8qFoBUwS9hLECt stXm8A+QYTxXLKJ8xPOpARtEIRygLfZrzqSUk32OQC9+EnRMfrGDd9O+8uiHIgkWAqI9 fRKIwqRUabJDEGXhMj+fBvuMe26diJ7knaDmPQsIdNAvmJGr5ipTt5Iv1KtzvJgdD5hP GdlvcmzYywX8JcOuLydc3CI+W3lrUd4maNGsBsu8XCh0mOoBftWAZHXFJQEo1B9BYKwS dykA== 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=LjzGXptWS/l0yG6s3mnPFGJ9K+cv+bp4hvQ+18wjBOc=; b=OeU0zrpt04Svy1DWLB+qjbhT3jk88uXRKLNfZiW5LySLwPVhoFKnGTCpw7Jr2hlwPX 2kxDLs3eb4qmXkqn2Axe/RuUjcIu7w4fHBCfQSkHWPjJhkdwb8zkeDBKwsDYJwGlGus0 fJrIJmFnvSedJZDg6/QYpHH5ReU2LsiJUX7fKt253agZwAKkNG6T4uNV2FafZiRru0gB E+Ey3Yzoiq6xr9sM8hzPeURdyuujCecEYs/w6sRf8H9t7Z6pMmdtJvH80kz9TCIG+viq KXJCVEYup9K3Zjz9JL3/n1v+/qFtMpsWnQ3XN/4wNu1G+xji3Fy4Hy8jyCuiA6g1OXZf 4fqA== X-Gm-Message-State: AOAM531UNcQjYdvJzXRbwRlogBIfP+iWQLPdyGxUF0FSDlNalGkiyBqZ cobB6aHtK/JQDIrQgcGlZ5IwKg== X-Google-Smtp-Source: ABdhPJzCWJ6LvA6aca6tiDqN7zYn4kfS9K/PQYq6jFFANS1a+sv1tJBiB1G33DS7mXamhMqGfm7uDQ== X-Received: by 2002:a63:2146:: with SMTP id s6mr4602907pgm.411.1594757087541; Tue, 14 Jul 2020 13:04:47 -0700 (PDT) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id t13sm3262959pjs.17.2020.07.14.13.04.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jul 2020 13:04:46 -0700 (PDT) From: Mathieu Poirier To: ohad@wizery.com, bjorn.andersson@linaro.org, loic.pallardy@st.com, arnaud.pouliquen@st.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v6 00/11] remoteproc: stm32: Add support for attaching to M4 Date: Tue, 14 Jul 2020 14:04:34 -0600 Message-Id: <20200714200445.1427257-1-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Sender: linux-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org This set applies on top of [1] and refactors the STM32 platform code in order to attach to the M4 remote processor when it has been started by the boot loader. New to V6: 1) Removed extra newline in patch 06. 2) Re-worked title and changelog of patch 08 to better reflect what is done by the patch. Tested on ST's mp157c development board. Thanks, Mathieu [1].https://patchwork.kernel.org/project/linux-remoteproc/list/?series=318275 Mathieu Poirier (11): remoteproc: stm32: Decouple rproc from memory translation remoteproc: stm32: Request IRQ with platform device remoteproc: stm32: Decouple rproc from DT parsing remoteproc: stm32: Remove memory translation from DT parsing remoteproc: stm32: Parse syscon that will manage M4 synchronisation remoteproc: stm32: Properly set co-processor state when attaching remoteproc: Make function rproc_resource_cleanup() public remoteproc: stm32: Parse memory regions when attaching to M4 remoteproc: stm32: Properly handle the resource table when attaching remoteproc: stm32: Introduce new attach() operation remoteproc: stm32: Update M4 state in stm32_rproc_stop() drivers/remoteproc/remoteproc_core.c | 3 +- drivers/remoteproc/stm32_rproc.c | 214 ++++++++++++++++++++++++--- include/linux/remoteproc.h | 1 + 3 files changed, 198 insertions(+), 20 deletions(-) Acked-by: Arnaud Pouliquen