]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
remoteproc: imx_rproc: Add support for System Manager CPU API
authorPeng Fan <peng.fan@nxp.com>
Fri, 9 Jan 2026 12:08:05 +0000 (20:08 +0800)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 13 Jan 2026 16:59:24 +0000 (09:59 -0700)
commit1ae680bbe77fe124916bd28a1dd6548847c56914
tree1d4f25d015f3cce63e9b9fa391bb06abf69d4b79
parentd8ab94fa4370337158e96ea08d41e6e2d8fcb2a2
remoteproc: imx_rproc: Add support for System Manager CPU API

When the System Manager configuration places the M7 core in the same
Logical Machine(LM) as the A55 cores (M7 LM ID equals A55 LM ID), Linux
can control M7 using the CPU protocol API. For more details, see the
previous patch that adds LMM API support.

Changes include:
- Introduce imx_rproc_ops_sm_cpu for CPU API operations.
- Reuse imx_rproc_sm_detect_mode to detect shared LM and set priv->ops to
  imx_rproc_ops_sm_cpu.
- Implement imx_rproc_sm_cpu_{start,stop} to handle M7 start and stop.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Link: https://lore.kernel.org/r/20260109-imx95-rproc-2026-1-8-v6-5-d2fefb36263d@nxp.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/imx_rproc.c