Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp9108ybt; Tue, 7 Jul 2020 14:31:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztc2ajs6jCEf/npfYvF0Key72rEORiZ4A6pmlxkZfAvkIWln9x7cIpgarjI4imxwGkKyIz X-Received: by 2002:a50:fe18:: with SMTP id f24mr63550591edt.14.1594157519126; Tue, 07 Jul 2020 14:31:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594157519; cv=none; d=google.com; s=arc-20160816; b=FzjCwYhNI5yb91054CyIkslS+Ck7SF8UppaXGiPWH5yt/OrB913ryI/ox24C3ASi1Y dHzfw/FfTzZK3mjIUhA5KCZo0pUvr8bsCVUp3Q3R4NOr3rCdUxo52ChRa2RKjhCoG5Dk ofgtZp09UWIkJJTsk7v5aMeQIU0Y6Gw6yAElDHCr2fsEsYvJBImlJHF4sRzYp6WW1CP/ EVJuGWAw0pN6deQVU+Chq4wJFbDHFRAJTTCbak0yB1gJPlYS4ODmX1kgBGivMWQA2acL vKl84DgkjcVDzaG4XqQEayjpvwg0qUzLE74ISaJQZVDWiflfDPptG+HjUiDMtqtsnkXD 2oyw== 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=2x+L8FUv9bI+crByz6/Ejtn3DTdscAGUJ17rPzAIyTM=; b=gLHi3ln9gOWxKhRRmLqZTWn97NSD0j71nS9uFYgRXVMfn+AZe4yDXrCJtN1a3/p6B8 Rdu8HdX5mQZUmEwJFWBtUkH/BVZb1BB3+wriecj5C700BImHIvXWwUAcUWTsdxe8ao/v /9wK/NMLfzmMOFoF0YOrH97xBuUB8YCoe7sNC9YyY/EwYUQjuNuG7KGhz73dFENu6dGd FkQpY9Q7T4QE2YcUWONEGqfpOaOPwfDgpo5lDPf1XeMF/ZOMn0veXNL8wbN/kXfL/sqU cPUtupWfYbHD8ZJV/wFcVcWCCpilB7+rOWO7rmCyKt2rlXN9LsRwjmG9JQT9uINXyYmY upaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Uar/WVI5"; 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 h22si16380152ejf.599.2020.07.07.14.31.36; Tue, 07 Jul 2020 14:31:59 -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="Uar/WVI5"; 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 S1728908AbgGGVbP (ORCPT + 99 others); Tue, 7 Jul 2020 17:31:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728492AbgGGVbP (ORCPT ); Tue, 7 Jul 2020 17:31:15 -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 210D8C08C5DC for ; Tue, 7 Jul 2020 14:31:15 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id f16so238814pjt.0 for ; Tue, 07 Jul 2020 14:31:15 -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=2x+L8FUv9bI+crByz6/Ejtn3DTdscAGUJ17rPzAIyTM=; b=Uar/WVI5Uzn3sX7rG1DAuVylL5XgU7OFLcnSATfNdujh9l6dnFFSiueycjbskupllK celMxqY20h+WdblDasjQ1F38BszhI2do0gEHIlktty4KSV0cOnRKxhIon51VNKznyIec dfjSilPFBTh9IwRVFg7h+U0KJJNmXLwLR8y6O5q5t8M7D1nNA8n9EojU8azxptnVypny fv4+hH3JNyOLDCE7T4FTrp4aEYsq9aKCeO71waT+yZ8tQKUjsnBdfCq7T1oxa8kdcdHx +bophkIFyqn/1lEPOQBj6LzZix1MN8GBkXBH9dLEVXOIzFJ6CyTGtpVRVVpiQVnFTjMX BWhQ== 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=2x+L8FUv9bI+crByz6/Ejtn3DTdscAGUJ17rPzAIyTM=; b=tSbkeqrDHo3BTd3SAW1XiUve0iig+utJmZbw9HAjHSBRrxV8XZpEqvxJlv7N4shhEP lGLGmYw1AlyZ7gkThMRpxP6K2MJCNTH2ZvWgI05Fnvww92U9fwhFb40t/Ke83kSTkIDY /Kskg/WT7O/ZbVfgf+hll3KR612AIX9nnuK5WELQAdPW2RkybnubO7VYci1aO62bNHBN Ii6fN+aI9VR1sUh7QvczHOOX5NKufHuvLdExBpfipBVKJAMJZWG4hkZ3VMrnmtFoyh1G QQe0IT03nj96WPbkM851mbl9f0kXRosiViSCNy03CT0a5x5e20DSWDxMb6WjD8lsmdaU YMcw== X-Gm-Message-State: AOAM531Y38zy6ows0gcXXVOx3Upyb4HhWDXr/LkTTu8TQszFHKcUprD4 SKXQ2wz816klKJMQpAsCZtepeoj4Kbk= X-Received: by 2002:a17:902:a410:: with SMTP id p16mr46001431plq.283.1594157474673; Tue, 07 Jul 2020 14:31:14 -0700 (PDT) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id o128sm23560832pfg.127.2020.07.07.14.31.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 14:31:14 -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 v5 00/11] remoteproc: stm32: Add support for attaching to M4 Date: Tue, 7 Jul 2020 15:31:01 -0600 Message-Id: <20200707213112.928383-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 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 V5: 1) Added Bjorn's reviewed-by to patch 06. 2) Removed Loic's reviewed-by from patch 08, it has changed too much. Patches that need to be reviewed: 7, 8, 9 and 10. Tested on ST's mp157c development board. Thanks, Mathieu [1]. https://patchwork.kernel.org/project/linux-remoteproc/list/?series=314523 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: Split function stm32_rproc_parse_fw() 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(-) -- 2.25.1