Skip to content

Add AMD PL Mailbox and RPMsg support for the AMD BRAM remoteproc

Ben Levinsky linux-arm-kernel linux-devicetree linux-remoteproc lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 2 repliesIn review
  2. v26 patches 6 repliesSuperseded
  3. v16 patches 17 repliesSuperseded

Changes in v3 from the cover letter

- Drop "remoteproc: amd_mbv_bram: Bound device name formatting". The name is already bounded by rproc_mem_entry_init() and a DT node name can't contain '%', so there was nothing to fix.
- Drop "remoteproc: amd_mbv_bram: Restore reset GPIO direction after PL reconfig". The problem only shows when the PL is reprogrammed while the devices it contains are still bound, which isn't a supported flow.
- dt-bindings: mailbox: Reword the description, which no longer refers to a "register aperture" or "processor-facing interfaces".
- remoteproc: amd_mbv_bram: Add RPMsg support:
- Reject memory regions above 4 GiB, since the remote uses the physical address as device address.
- Validate all memory regions before registering any carveout.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4dt-bindings: mailbox: Add AMD PL Mailbox IPDocumentation/devicetree/bindings/mailbox/amd,pl-mailbox-2.1.yaml MAINTAINERS+77 -01 reply
2/4mailbox: Add AMD PL Mailbox soft IP controllerMAINTAINERS drivers/mailbox/Kconfig drivers/mailbox/Makefile +1 more+391 -00 replies
3/4dt-bindings: remoteproc: Add RPMsg resources to AMD BRAM rprocDocumentation/devicetree/bindings/remoteproc/amd,bram-rproc.yaml+21 -01 reply
4/4remoteproc: amd_mbv_bram: Add RPMsg supportdrivers/remoteproc/Kconfig drivers/remoteproc/amd_mbv_bram_rproc.c+299 -10 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchKrzysztof Kozlowski
1/4R-b
2/4
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/4] Add AMD PL Mailbox and RPMsg support for the AMD BRAM remoteproc

This series adds a driver for the AMD PL Mailbox soft IP and uses it to add RPMsg support to the AMD MicroBlaze/V BRAM remoteproc driver.

Patches 1-2 add the PL Mailbox binding and driver, and patches 3-4 add RPMsg resources to the BRAM remoteproc binding and driver.

Claude (claude-opus-5.5) was used to help write the code and changelogs, as indicated by the Assisted-by tags.

Tested on a VEK385 board with the series applied to a 6.18 based AMD vendor kernel: RPMsg echo with bursts of 64 messages, over five remote processor start/stop cycles, with two MicroBlaze V designs.

Changes in v3:
- Drop "remoteproc: amd_mbv_bram: Bound device name formatting". The name is already bounded by rproc_mem_entry_init() and a DT node name can't contain '%', so there was nothing to fix.
- Drop "remoteproc: amd_mbv_bram: Restore reset GPIO direction after PL reconfig". The problem only shows when the PL is reprogrammed while the devices it contains are still bound, which isn't a supported flow.
- dt-bindings: mailbox: Reword the description, which no longer refers to a "register aperture" or "processor-facing interfaces".
- remoteproc: amd_mbv_bram: Add RPMsg support:
- Reject memory regions above 4 GiB, since the remote uses the physical address as device address.
- Validate all memory regions before registering any carveout.

v2: https://lore.kernel.org/r/[email protected]
v1: https://lore.kernel.org/r/[email protected]

Ben Levinsky (4):
dt-bindings: mailbox: Add AMD PL Mailbox IP
mailbox: Add AMD PL Mailbox soft IP controller
dt-bindings: remoteproc: Add RPMsg resources to AMD BRAM rproc
remoteproc: amd_mbv_bram: Add RPMsg support

 .../bindings/mailbox/amd,pl-mailbox-2.1.yaml  |  71 ++++
 .../bindings/remoteproc/amd,bram-rproc.yaml   |  21 +
 MAINTAINERS                                   |   7 +
 drivers/mailbox/Kconfig                       |  11 +
 drivers/mailbox/Makefile                      |   1 +
 drivers/mailbox/amd-pl-mailbox.c              | 378 ++++++++++++++++++
 drivers/remoteproc/Kconfig                    |   5 +
 drivers/remoteproc/amd_mbv_bram_rproc.c       | 295 +++++++++++++-
 8 files changed, 788 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/devicetree/bindings/mailbox/amd,pl-mailbox-2.1.yaml
 create mode 100644 drivers/mailbox/amd-pl-mailbox.c

base-commit: f1715c0c04606ebbe832cc760abf49dfd6f2ae1f

Signature · 1 line
2.34.1