From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8FAC437CD3D for ; Tue, 28 Apr 2026 15:06:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777388764; cv=none; b=mvzKAKE7pEfq1EAMKbMYGJfx3Vz/Ucj/FAOBrRfRZkZUP9VcG23rSljJ2r7XWb/ZsbJV1OPt8pIG1iXHy8ROvGIoq1NW5SFtF/5cw2f3Pad1noL/lKcjYKNU8e8d/KwuLMtQIAhPXocsI5eAH058gFGcvZxI7Wy6fNpvRg3+M9A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777388764; c=relaxed/simple; bh=xoNuD8JS3btCKdjzs3bUeyqzNLPY3psjI8zo9aZsx9U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SK4/zkcXnHnf5avv9KiI5pNbDuCza8towS6z54t0yno/u0SiB7A0xDDi3IzXz3XxEwKVQSaDvIU7eGekkuQL2fOJKEJfC3nJwiBPaZzBVEnxZG0VSMnzn6P3VhCC4V5SRavj830KzGDkW7e0ZwUEI5ZjBsHJ4ToOntFx9ybv61Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=UN9SJxP5; arc=none smtp.client-ip=209.85.216.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="UN9SJxP5" Received: by mail-pj1-f51.google.com with SMTP id 98e67ed59e1d1-35fb16e56efso7547226a91.2 for ; Tue, 28 Apr 2026 08:06:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1777388762; x=1777993562; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=OfbUgiQnGWlnScYJSuysWPKlVFUYfQRRK1nJfSaqXew=; b=UN9SJxP5HB3RKaF/JdRZv/vGGWoElexyzugCEsllyNF7jV4PhYjOUBlkMQpISAgIAX 2IoAsemA3BY5tMKrd1tSR8X3nQF18eA1uoES6XpIJvEsUrYfFQ/4igETshOtuegeXjOd NLfTujghDZPmHuck7W1q0fEu42zYwGEPgbDodGskhMEUDBpiOOOQTZ0sv7883hLnORHj 5gFlGdaTyS1lRbVhz9Lg9Nr6M9Jl5toAlBs62tG06EBtr2mZfqk7i7zLWUtZ26wCqkjR rf4i/w6A77eKjCCxLyC/dOhi6J1/ZnjH+xeFEOSpDr/5RJX+MzvoT29mS0p5U4M4Imex nogg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777388762; x=1777993562; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=OfbUgiQnGWlnScYJSuysWPKlVFUYfQRRK1nJfSaqXew=; b=RyLTDrvE+AC2aEnhy8r2tlaDBeWhVegvF4LBlosrXGzsixoSmwEP4dj1CI5EX9a2aC skbBtHRT1B+gykEbBk7Wi+NlWdTmZfBPq+4G724+VU41deP8NuBOlbIR40pYWMhP6q61 IX+KVz2OqUhwIFiW8vrzGOT8CzBimVk9EeaPKkU5rlZujPccOZS/1oIJAd0zorC3a8zP rAn7FM+E+GZ1sKd5cvYFsL4jVDj4Cn0SU3bge3SuVZ4XWRozQ3GeFlCIZTVQWTok21uH mgLx0u7S/2Qz3u3dKWYaszPCamT1bRAurQQOj3MCmVGbqEud6A43N/O9w15bGxXpLptx rp5Q== X-Forwarded-Encrypted: i=1; AFNElJ901lBLJq1R9WjwUN7jXl9rvvQ7tIpKFNnNOVolkmr7iH1hD4SjrkJeKs8f7VGClS83oD7mnbzZwO6sYZQ=@vger.kernel.org X-Gm-Message-State: AOJu0YxssASgtDI22n5Fpshe40l0nYxprlQE3cfCIWFqWQl6z6sXwFy2 b0L5pJ4tCHJR8NHSW8iJc/WOWKxcTdhS5lh4apCWRXiaWkRxmO1SKZmv2amJqCXZRlJieh6De2O Z1KQb X-Gm-Gg: AeBDiet+PkAA6ibRDUQsU1wpc8SH1LrGyPP+rnMZQsMvzWU0n5fFN9Ox7vPxMP1cHyb UC0KmAGzdew4FWPBHvTH16EyE+dwNvbxzWHs7nMdVX2dkPiR3fRCOho1YqLUVgB9PbLLGt58QBw FNeoN0h3yhxpEBdVAMc/cMg8LDxKTcX8Yi+M3/N6B0ZqUKTZJGQWpgGaw87bW6S/Wl0chC1ZevJ yQ72hxYD67z5/ucN1YfkdFgCbiAesGqyoqT1cSWraLoNfZgdUZYnpHFq3T3hZPuIBgKO6yy1plH wtAMOsez6Xt2VBalBXlVWiSNCZdHvRhAQtdkA+gpYqIsyD78YHR/bU5J1zatK/AO+12nK+T64SA j8KqdcxTVLuRGkfoLKYi9nIkR8GRz742/9cO4SMuRT5wFD5hv8uG8wBWqBQgsBXHIzqwOY0wb3z wWh9KtsFOrLwN4T/wtiFLhh3fCaqerhsgDX6hD3g== X-Received: by 2002:a17:90b:5291:b0:35d:a90d:580e with SMTP id 98e67ed59e1d1-36492046369mr3453884a91.23.1777388761787; Tue, 28 Apr 2026 08:06:01 -0700 (PDT) Received: from p14s ([2604:3d09:148c:c800:a4ee:17e1:59a1:f1e1]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b97aa7b9d2sm29165775ad.11.2026.04.28.08.05.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Apr 2026 08:06:01 -0700 (PDT) Date: Tue, 28 Apr 2026 09:05:57 -0600 From: Mathieu Poirier To: "Peng Fan (OSS)" Cc: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Frank Li , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Daniel Baluta , linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: Re: [PATCH v4 0/3] Add i.MX94 remoteproc support and reset vector handling improvements Message-ID: References: <20260427-imx943-rproc-v4-0-68d7c7253acd@nxp.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20260427-imx943-rproc-v4-0-68d7c7253acd@nxp.com> On Mon, Apr 27, 2026 at 10:41:23AM +0800, Peng Fan (OSS) wrote: > This series adds remoteproc support for the i.MX94 family, including the > CM70, CM71, and CM33S cores, and derive the hardware reset vector for > Cortex‑M processors whose ELF entry point does not directly correspond to > the actual reset address. > > Background: > Cortex‑M processors fetch their initial SP and PC from a fixed reset vector > table. While ELF images embed the entry point (e_entry), this value is > not always aligned to the hardware reset address. On platforms such as > i.MX94 CM33S, masking is required to compute the correct reset vector > address before programming the SoC reset registers. > > Similarly, on i.MX95, the existing implementation always programs a reset > vector of 0x0, which only works when executing entirely from TCM. When > firmware is loaded into DDR, the driver must pass the correct reset vector > to the SM CPU/LMM interfaces. > > Summary of patches: > [1]dt-bindings: remoteproc: imx-rproc: Introduce fsl,reset-vector-mask > Adds a new DT property allowing SoCs to specify a mask for deriving the > hardware reset vector from the ELF entry point. > > [2]remoteproc: imx_rproc: Program non-zero SM CPU/LMM reset vector > Ensures the correct reset vector is passed to SM APIs by introducing a > helper (imx_rproc_sm_get_reset_vector()) that applies the reset‑vector > mask. > > [3]remoteproc: imx_rproc: Add support for i.MX94 remoteproc > Adds address translation tables and configuration data for CM70, CM71, > and CM33S, enabling full remoteproc operation on i.MX94. > > Signed-off-by: Peng Fan > --- > Changes in v4: > - Daniel raised the M33S secure region was not included, but since I not > have image to test secure region, so drop the Secure alias region for > all. Updated DDR region. R-b kept since this is a minor change. > - Add R-b for patch 2 > - Link to v3: https://lore.kernel.org/r/20260415-imx943-rproc-v3-0-9fa7528db8ca@nxp.com > I have applied this set. > Changes in v3: > - Patch 2: > Drop R-b because of changes in V3 > > Following suggestion from Mathieu that apply reset vector in > scmi_imx_[cpu,lmm]_reset_vector_set(), not change the meaning of > rproc->bootaddr, add helper imx_rproc_sm_get_reset_vector() to get reset > vector and use the hlper in scmi_imx_[cpu,lmm]_reset_vector_set(). > > Add reset-vector-mask for i.MX95 CM7 to avoid breaking i.MX95 CM7 > boot. > > - Link to v2: https://lore.kernel.org/r/20260327-imx943-rproc-v2-0-a547a3588730@nxp.com > > Changes in v2: > - Drop fsl,reset-vector-mask by using fixed value in driver for per device > - Add R-b for i.MX94 dt-binding > - Update commit log to include dev addr and sys addr > - Link to v1: https://lore.kernel.org/r/20260312-imx943-rproc-v1-0-3e66596592a8@nxp.com > > --- > Peng Fan (3): > dt-bindings: remoteproc: imx-rproc: Support i.MX94 > remoteproc: imx_rproc: Program non-zero SM CPU/LMM reset vector > remoteproc: imx_rproc: Add support for i.MX94 > > .../bindings/remoteproc/fsl,imx-rproc.yaml | 3 + > drivers/remoteproc/imx_rproc.c | 92 +++++++++++++++++++++- > drivers/remoteproc/imx_rproc.h | 2 + > 3 files changed, 95 insertions(+), 2 deletions(-) > --- > base-commit: 724699d8d0523909da51fda8d1e10c1ff867b280 > change-id: 20260311-imx943-rproc-2050e00b65f7 > > Best regards, > -- > Peng Fan >