From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) (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 B8D7635E936 for ; Thu, 23 Apr 2026 17:17:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776964672; cv=none; b=QRHguIxQ7SaG8idGhGaGWIQ0WXgqwlL8IKC5kkigfi6W22GHfxZeiM2icyFgjoWRj2pkkTW6ZJjBm7P3N+znNU63VnRoVJw2NI8nT5x98tTwqR/O5CuYq7nZbMiWPj2JZB9z9GwHwyWzHkikEvSo71MtEciBBUXeGWv0LTFp264= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776964672; c=relaxed/simple; bh=+GOblQzyAJodv9b6rNOw50K4n/xTVlzZw8d3VUVRDrw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GnoQwYMwmHsIcsdnqhujSIKMwYw7PUi3RYTycj9Q6cPSuHPnAbRWa6mw7eZ+vbutchbJalPYLu2N3/diQmxZCLXpNhMuoRDEibOF6mrXZOqNBUKsliU00oBA98iU7KlX2I7CfzBBIV/l2PeSlpKTqQ4rWugHyOgmawAJ3mZMDNg= 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=hSY7fo1O; arc=none smtp.client-ip=209.85.216.54 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="hSY7fo1O" Received: by mail-pj1-f54.google.com with SMTP id 98e67ed59e1d1-35f9ab079bdso4630712a91.2 for ; Thu, 23 Apr 2026 10:17:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1776964670; x=1777569470; 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=bsUocZL2Bn6GCAa3hABSmeuNfrbPhRDBHVb9kanPFaA=; b=hSY7fo1OuMlHryfNMYfA167b1YFMb03SUlaMVL6909Bzlj5NCbwABrk/48JVfg41qD 1wfMpgcRsmdN3vA3jc2g8IR4DXyEx3DKo7mglV/pHuXhhFIqXFvnyf607jjn8TwM4y6M 9RVLmn8WafHdVx8o8cnJcO8DtgJ2NgwKIgh64wjyw/6kREbyX4dHHsDm009YqYqwq+9V JfNuCQQxdNNtg+/QMND6ElHpNravVJFCekKnjhH0lfNKRMBlyzWgbe9rf6T7Zm4bfpLh z+rd+/6+Qp7xc58713a7GlgtLGCL2ZhJNnUY9FIkyo6H1NzVF3NCa0c0j8qfYVzUj+JH ArdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776964670; x=1777569470; 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=bsUocZL2Bn6GCAa3hABSmeuNfrbPhRDBHVb9kanPFaA=; b=H93BW+TAwhqfJS7O1VddGL58KF/B6vGs4Ufp64/6/z2oJZfb5656mSpyY8gPbiDh3J 4o0cdbvkcjS3Y0lKAPwN9Qfs4+kxDz64rUn1iT9Hil9Pos1HOuirZLJ/WhLteWrKIOeS Ot5+l3ruzFXQNgNX/UHmvTu1fkvQOnBvBfLUZeBF2LjInHp0zJLF+NFrgm2Fmzu6Uo+Z PlLGJxWmldUQetZs8Iv0vyvzUc6eYMmJcabUy/YF61QMFI6pp4FuWWvypUujuVuOkZCf 9ET+5zgVt7Hmgg5WZOiQdlSzGxlo4zFTbKih9/ZLMT0lQrpGSK/aCaQA7QIojYLSKVNu TiTg== X-Forwarded-Encrypted: i=1; AFNElJ/HngTQefAqUfVX46FJNPiIvrp+Tac3WW3ATTDgJP23+5HSW7q3S16XTNzN+WbZpquJOsrkYsIggGVo+Lo=@vger.kernel.org X-Gm-Message-State: AOJu0Ywvy7NToe2MBzlf7gv0KpIZrHW1XXNrW1CJTR5uVLzX8wbzSGz0 ay5Cxwz42zCh0zFQGZFrAxrSmKAYyDsaGE3Lu1QkXO5Qa5/Q2uF3C1InoWXLYC2DCNY= X-Gm-Gg: AeBDievhFeoYEp+0/o3VxLR7unAFWgyS7f+pzcHn+Rzd+NzSR0lyWn8WwghioUsZIyT F1mL7BTpDnVGT1Z1V/cogRDfwSkyZ8qAnUkBDVDRHszxFs4vV1qMrJLeATs4DKHhXJvROpwzFJ/ P47fFKUnmwXEwt25rAbuhsDp6B4bPuGKlYqPHjdiUKbClCii/X+hrkvufJxclAUv0Z54hqmOuON +g3Gy1Cx0DY7rDlPQWU6t7Um7kUPvLzxDNSCa35fHnehp5pxs3VBwcOl7IivdjUkEB6suZAnOIX WKIxEPMzN4zpSvqsPs4xc7MUyyiGBU4lcxL1Hrswb54LpcQrxa/M49u4lxGDtTdE1E1oHgwdpa9 l8zSmN4eEyapT2+puXuFQaeX6x4IH7cTeCrNrYOH6bZ/TaJJ1MsywiO1S9itPzp0fRFHOIKEo89 9iITVyTQHbfo7dviT4RQvAuOqMz9FQKZvqwrQ5Cw== X-Received: by 2002:a17:902:f78d:b0:2b2:67ca:5ff9 with SMTP id d9443c01a7336-2b5f9d888e8mr278593665ad.0.1776964669767; Thu, 23 Apr 2026 10:17:49 -0700 (PDT) Received: from p14s ([2604:3d09:148c:c800:54c0:dbdd:6b84:4488]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b5fab20c4fsm250035145ad.59.2026.04.23.10.17.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Apr 2026 10:17:49 -0700 (PDT) Date: Thu, 23 Apr 2026 11:17:46 -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 v3 0/3] Add i.MX94 remoteproc support and reset vector handling improvements Message-ID: References: <20260415-imx943-rproc-v3-0-9fa7528db8ca@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: <20260415-imx943-rproc-v3-0-9fa7528db8ca@nxp.com> On Wed, Apr 15, 2026 at 03:50:37PM +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 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 | 98 +++++++++++++++++++++- > drivers/remoteproc/imx_rproc.h | 2 + > 3 files changed, 101 insertions(+), 2 deletions(-) Much better - I'll pick this up when 7.1-rc1 comes out. Thanks, Mathieu > --- > base-commit: 724699d8d0523909da51fda8d1e10c1ff867b280 > change-id: 20260311-imx943-rproc-2050e00b65f7 > > Best regards, > -- > Peng Fan >