From: sashiko-bot@kernel.org
To: "Jiafei Pan" <Jiafei.Pan@nxp.com>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org,
Frank.Li@kernel.org, krzk+dt@kernel.org, imx@lists.linux.dev,
robh@kernel.org
Subject: Re: [PATCH v3 1/4] dt-bindings: remoteproc: add imx-rproc-psci
Date: Mon, 11 May 2026 22:41:09 +0000 [thread overview]
Message-ID: <20260511224110.0138FC2BCB0@smtp.kernel.org> (raw)
In-Reply-To: <20260511023928.39640-2-Jiafei.Pan@nxp.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] Using an integer bitmask (`fsl,cpus-mask`) to reference CPU cores is a devicetree anti-pattern that breaks PSCI MPIDR resolution.
- [Low] The device tree example uses a non-generic node name `remoteproc-ca55-1`.
--
commit 8d7c3b674f34ab921c2ce0607326cdb7b149d310
Author: Jiafei Pan <Jiafei.Pan@nxp.com>
dt-bindings: remoteproc: add imx-rproc-psci
This commit introduces a new devicetree binding "fsl,imx-rproc-psci" for
managing Cortex-A cores as remote processors on i.MX platforms. It uses
PSCI for CPU power management, enabling the cores to run RTOS or bare-metal
applications.
> diff --git a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc-psci.yaml b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc-psci.yaml
> new file mode 100644
> index 0000000000000..28d00dbf8bc7e
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc-psci.yaml
[ ... ]
> +properties:
> + compatible:
> + const: fsl,imx-rproc-psci
> +
> + fsl,cpus-mask:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description:
> + Bitmask indicating which CPU cores are assigned to this remote
> + processor instance. Each bit represents a CPU core, where bit N
> + corresponds to CPU N. For example, 0x2 (0b10) assigns CPU core 1,
> + while 0x6 (0b110) assigns CPU cores 1 and 2.
Should this use a phandle array instead of a logical bitmask? In Devicetree,
relationships between hardware blocks are typically modeled using phandles.
Using a bitmask implies OS-specific logical CPU indexing that may not reflect
hardware topology reliably. If a CPU is intended to run an RTOS, it is
frequently excluded from Linux via status = "disabled" or isolated at boot.
This means Linux might not assign it a stable logical ID.
Could this break PSCI MPIDR resolution if the driver attempts to map the
logical ID to a physical MPIDR, but the CPU was isolated and unmapped?
A standard cpus array of phandles (e.g., cpus = <&cpu1>;) would allow the
driver to parse the CPU node's reg property directly for the correct MPIDR.
[ ... ]
> +examples:
> + - |
> + remoteproc-ca55-1 {
This isn't a bug, but should the node name be generic?
The Devicetree specification recommends node names reflect the primary
function of the device rather than the specific architecture. A standard
generic name like remoteproc (or remoteproc-1 if multiple siblings lack reg
properties) might be more appropriate than remoteproc-ca55-1.
> + compatible = "fsl,imx-rproc-psci";
> + /* bitmask: 0b10, assign A55 Core 1 */
> + fsl,cpus-mask = <0x2>;
> + memory-region = <&rtos_ca55_reserved>;
> + };
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260511023928.39640-1-Jiafei.Pan@nxp.com?part=1
next prev parent reply other threads:[~2026-05-11 22:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-11 2:39 [PATCH v3 0/4] remoteproc: add Cortex-A Core remoteproc support on i.MX platforms Jiafei Pan
2026-05-11 2:39 ` [PATCH v3 1/4] dt-bindings: remoteproc: add imx-rproc-psci Jiafei Pan
2026-05-11 22:41 ` sashiko-bot [this message]
2026-05-11 2:39 ` [PATCH v3 2/4] remoteproc: imx_rproc: add support for Cortex-A Core Jiafei Pan
2026-05-11 23:10 ` sashiko-bot
2026-05-11 2:39 ` [PATCH v3 3/4] remoteproc: imx_rproc: add autoboot support for A-core Jiafei Pan
2026-05-12 0:00 ` sashiko-bot
2026-05-11 2:39 ` [PATCH v3 4/4] arm64: dts: imx93: Cortex-A Core remoteproc device node Jiafei Pan
2026-05-12 0:37 ` sashiko-bot
2026-05-11 7:00 ` [PATCH v3 0/4] remoteproc: add Cortex-A Core remoteproc support on i.MX platforms Peng Fan
2026-05-11 17:10 ` Mathieu Poirier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260511224110.0138FC2BCB0@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=Frank.Li@kernel.org \
--cc=Jiafei.Pan@nxp.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=imx@lists.linux.dev \
--cc=krzk+dt@kernel.org \
--cc=robh@kernel.org \
--cc=sashiko@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox