Skip to content

remoteproc: k3-r5: Build fixes and security improvements

Philippe Schenker u-boot 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 4 repliesIn review
  2. v26 patches 4 repliesSuperseded
  3. v16 patches 5 repliesSuperseded

Changes in v3 from the cover letter

- Implemented Andrew's suggestion to assign size before casting for memory safety.
- Added Anshul's Reviewed-by, thanks!

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6arm: dts: k3-am642-evm: Remove duplicate nodearch/arm/dts/k3-am642-evm-u-boot.dtsi+0 -40 replies
2/6remoteproc: k3-r5: cast size to size_t6dddrivers/remoteproc/ti_k3_r5f_rproc.c+4 -10 replies
3/6soc: ti: pruss: Fix size ptr type in probedrivers/soc/ti/pruss.c+1 -10 replies
4/6mach-k3: security: Propagate verified image addrarch/arm/mach-k3/security.c+2 -00 replies
5/6remoteproc: k3-r5: Use verified image addressdrivers/remoteproc/ti_k3_r5f_rproc.c+2 -20 replies
6/6remoteproc: k3-r5: Implement is_running operationdrivers/remoteproc/ti_k3_r5f_rproc.c+17 -03 replies

Reviews trailers per patch

3 of 6 patches have a Reviewed-by or Acked-by.

PatchAnshul DalalAndrew Davis
1/6R-b
2/6A-b
3/6
4/6
5/6
6/6R-b

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/6] remoteproc: k3-r5: Build fixes and security improvements

From: Philippe Schenker <[email protected]>

This series fixes compilation errors when building for R5 cores and addresses a security issue where authenticated images were not being used correctly.

Patch 1: Cosmetic removal of duplicate code

Patches 2-3: Fix build errors caused by type mismatches between function signatures and the types used in R5 builds.

Patches 4-5: fix a bug where ti_secure_image_post_process() relocates images during authentication, but callers were still using the original unverified addresses.

Patch 6: Implements is_running operation to allow querying R5F core status.

Changes in v3:
- Implemented Andrew's suggestion to assign size before casting for memory safety.
- Added Anshul's Reviewed-by, thanks!

Changes in v2:
- Made sure there are no build-warnings caused by this series.

Philippe Schenker (6):
arm: dts: k3-am642-evm: Remove duplicate node
remoteproc: k3-r5: cast size to size_t6dd
soc: ti: pruss: Fix size ptr type in probe
mach-k3: security: Propagate verified image addr
remoteproc: k3-r5: Use verified image address
remoteproc: k3-r5: Implement is_running operation

 arch/arm/dts/k3-am642-evm-u-boot.dtsi |  4 ----
 arch/arm/mach-k3/security.c           |  2 ++
 drivers/remoteproc/ti_k3_r5f_rproc.c  | 26 +++++++++++++++++++++++---
 drivers/soc/ti/pruss.c                |  2 +-
 4 files changed, 26 insertions(+), 8 deletions(-)
Signature · 4 lines
2.51.2

base-commit: 6b27b6886945a9351fcea8c9acf9418844f46670
branch: am64x-various-fixes__master