Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp150607ybz; Fri, 24 Apr 2020 13:26:49 -0700 (PDT) X-Google-Smtp-Source: APiQypKweHvw/8p+IFoMYLzAvhzh4Pr3BXlob6ijrdNQ4g32ZLKBIeD6gyzgcAxTJuqFLkS8sICM X-Received: by 2002:a17:906:1303:: with SMTP id w3mr8744263ejb.275.1587760009410; Fri, 24 Apr 2020 13:26:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587760009; cv=none; d=google.com; s=arc-20160816; b=1BlGb6a9riL59q2HhPVQKEkXWPHGxUFjE2oGv9Cf2riLJ0Ch7GEONhoLwJwEWrWi6G SOdaioNIpC0YTagHMqZSEfvZRSHeocFAv1oRNyiMejBQQ66gSjUdgNE8ouCHpYVZoTQ+ mjmteuWiiPzlEAjgzMgILYdXdj2kSlQxhS08vDGdCkTq5SUGIDQaoKL794fjthCsgw5W TYzq37aJfO/w7hJI/nHwRLNAZ1cMlCzVpheXmgSU5dXEQciG08k9+JnDDWGlzSdSkOY3 EI7V6gIZ0CCxHLWJM3zHPYqxngQF6LcU+b0ox9URJlvbMaw+YFEYLyNg93ZzsbU3R+Em B+4Q== 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=/73dacrr5ih6hdF656dZ5NCkiqG8RDgJvTOSmKNoCEs=; b=WdVDtdxj92kvyO9InqtEIFFkNWfjLHBcM+Sj/vS2jPa8a+UTxXmbC2eFdc5vlMh470 Z4UFhzmTCUI9PQuOhDL5HbgOuiqxOtQp8m8Zp4kU6pk2Bq8VcioQKijU61ixsBBI4XLc Fwtxb9N3qAEzpDmK1sl48S4PPUeRUgIQrJ27S6/8UuLWy5dJBH+8IC7ssdcd4fKtVdTc z57vRibwKa4et6tm1GOMiZax5usqHbg3tSwT25Lr2MUVZH6nwuxaa5HNWdkFtLctrNWU FefNWvzY83Yoqc/BjA9J8nNm0CDe0PqjQRdokn8pGtyrGI8Nrr2X1ezLKHreehALUa3p lcoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r4xd9ee3; 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 rp4si3709516ejb.205.2020.04.24.13.26.26; Fri, 24 Apr 2020 13:26:49 -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=r4xd9ee3; 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 S1729417AbgDXUZJ (ORCPT + 99 others); Fri, 24 Apr 2020 16:25:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729334AbgDXUZJ (ORCPT ); Fri, 24 Apr 2020 16:25:09 -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 C8ED8C09B049 for ; Fri, 24 Apr 2020 13:25:07 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id f8so4163073plt.2 for ; Fri, 24 Apr 2020 13:25:07 -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=/73dacrr5ih6hdF656dZ5NCkiqG8RDgJvTOSmKNoCEs=; b=r4xd9ee3KSRA3FkjbDp5pdoFm4oqf1ju1oMdUPs/LsELEPXvZTvfKG3lRQumA6wtBK x+11xAVPcf4GVSmDPoM6yZhyVTuH0Z88Wj15SecjCXvbdLCQXKiBGWk1zgiHGuKnIsre UznblhiyO2NnxvzlnO09WN491gJDC0If/15xLvatdvan6jKISKDaqChXy4yQAJGt+f50 VV6RFOYRhf5L8brlwXTCehm8v5IOrJMhuIjG9/XiPVBz9bS1pgKSjPdg5Ru3DBHI3jSp vP5N7sSdSals8yTBFMtInrHk4tK9aYrw5h5cXjxkEnbVe9enZ5IwrJ0WDfRkBsA68auS 3eLg== 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=/73dacrr5ih6hdF656dZ5NCkiqG8RDgJvTOSmKNoCEs=; b=L7dXy8GoKvJsCBcj2G7CJuuIUzfvepFojy2sQ5k/nCrFbPDENee6SzG9eOOO+WOwRL sZqXfGATeHKsnSg/LlJC3JUgIie3n5kAyVuFa4yE1El/7wIC5YwRM9AVr+aAItM3Qf7E 98HMPPFJVl35zgdbViaRRahROHn1qCbDDJ4CxJ1xpTtfeV3cQaxsOS+fo34WuYmXz3cn vB2c8l9dXWQk/1HghhGePGlrioBaO2ecW2VyaT2SrMyzog+g8/4ZJJEXGsVmKa8VLe+T +BNz8RgOWe88sRLcc+dzjrHXwMiOX5iU21NJoETHvb/dvy6SBGcHGmHXlu11sGNKY644 6Axg== X-Gm-Message-State: AGi0PubRmGE5QSbCVF83/qhQ3KTGg+ufUYMNyS6WkEWaZAb22aDkJ4MN FPBkGZMqHrqy0P/5AP4W6LBklA== X-Received: by 2002:a17:90a:26a2:: with SMTP id m31mr8258040pje.128.1587759907264; Fri, 24 Apr 2020 13:25:07 -0700 (PDT) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id c1sm6553245pfc.94.2020.04.24.13.25.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Apr 2020 13:25:06 -0700 (PDT) From: Mathieu Poirier To: bjorn.andersson@linaro.org, ohad@wizery.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com Cc: loic.pallardy@st.com, arnaud.pouliquen@st.com, linux-remoteproc@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 00/12] remoteproc: stm32: Add support for synchronising with M4 Date: Fri, 24 Apr 2020 14:24:53 -0600 Message-Id: <20200424202505.29562-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 patchset needs to be applied on top of this one [1]. It refactors the STM32 platform code in order to introduce support for synchronising with the M4 remote processor that would have been started by the boot loader or another entity. It carries the same functionatlity as the previeous revision but account for changes in the remoteproc core to support synchronisation scenarios. Some RB tags have been removed when the content of the patch has strayed too far from the original version. See patch 3, 8, 9 and 12 for more details. Tested on ST's mp157c board. Thanks, Mathieu [1]. https://patchwork.kernel.org/project/linux-remoteproc/list/?series=277049 [2]. https://patchwork.kernel.org/project/linux-remoteproc/list/?series=239877 Mathieu Poirier (12): 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: Get coprocessor state remoteproc: stm32: Get loaded resource table for synchronisation remoteproc: stm32: Introduce new start ops for synchronisation remoteproc: stm32: Update M4 state in stm32_rproc_stop() remoteproc: stm32: Introduce new parse fw ops for synchronisation remoteproc: stm32: Introduce new loaded rsc ops for synchronisation remoteproc: stm32: Set synchronisation state machine if needed drivers/remoteproc/stm32_rproc.c | 262 ++++++++++++++++++++++++++++--- 1 file changed, 244 insertions(+), 18 deletions(-) -- 2.20.1