All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/7] Add support to boot TI K3 HSM M4 core
@ 2025-05-06 10:41 Beleswar Padhi
  2025-05-06 10:41 ` [PATCH v2 1/7] arm: mach-k3: Add config option for booting HSM core Beleswar Padhi
                   ` (7 more replies)
  0 siblings, 8 replies; 29+ messages in thread
From: Beleswar Padhi @ 2025-05-06 10:41 UTC (permalink / raw)
  To: trini, afd
  Cc: sjg, xypron.glpk, cfsworks, nm, hnagalla, n-francis, jm, u-kumar1,
	m-chawdhry, kamlesh, bb, j-humphreys, s-k6, j-choudhary, d-gole,
	b-padhi, u-boot

Some TI K3 SoCs like J721S2, and J784S4 have a HSM (High Security
Module) M4F core in the Wakeup Voltage Domain which could be used to
run secure services like Authentication. Boot flow for HSM M4 core is
different than the general purpose M4F cores, and is as below:

1. Request control of HSM M4F remote processor.
2. Assert Reset on the HSM M4F remote processor.
3. Request Secure Entity to Authenticate and Load HSM firmware into
   core's internal SRAM memory region. For GP device, load the firmware
   manually into core's SRAM region.
4. Deassert Reset on the HSM M4F remote processor.
5. Release control of HSM M4F remote processor.

This series adds support to boot HSM M4 core from R5 SPL stage. The HSM
firmware is packed inside the tispl.bin fit image. The firmware is
unpacked into a temporary DDR address which is then used to load HSM
core. The configs to boot HSM M4 core are disabled by default.

v2: Changelog:
[Andrew]:
 1. Added support in SPL to load FIT images with no 'load' property.
 2. Removed 'default = n' in CONFIG option.
 3. Used __maybe_unused to decrease preprocessing.
 4. Better error messages with error code. 
[Udit]:
 1. Added 'HSM' entries in enum at the last.
 2. Added error condition in if-elseif-else ladder.
 3. Hang System boot when HSM failed to boot properly.

Link to v1:
https://lore.kernel.org/all/20250422095430.363792-1-b-padhi@ti.com/

Test logs after enabling HSM boot configs:
https://gist.github.com/3V3RYONE/ad33683652c8c49e4fedab49f0493e79

Beleswar Padhi (7):
  arm: mach-k3: Add config option for booting HSM core
  spl: Use FIT data address as fallback when 'load' property is absent
  arm: dts: k3-binman: Add template for packing HSM firmware
  arm: dts: k3-{j721s2/j784s4}-binman: Pack HSM firmware inside
    tispl.bin
  arm: mach-k3: Use FIT image data addr as fallback if 'load' prop is
    missing
  arm: mach-k3: Explicitly identify TIFSSTUB images when discarding
    buffers
  arm: mach-k3: r5: common: Add support to boot HSM M4 core

 arch/arm/dts/k3-binman.dtsi        |   9 +++
 arch/arm/dts/k3-j721s2-binman.dtsi |  12 ++++
 arch/arm/dts/k3-j784s4-binman.dtsi |  14 ++++
 arch/arm/mach-k3/Kconfig           |   7 ++
 arch/arm/mach-k3/r5/common.c       | 111 +++++++++++++++++++++++++++--
 common/spl/spl_fit.c               |  16 ++++-
 6 files changed, 164 insertions(+), 5 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2025-11-19 10:15 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-06 10:41 [PATCH v2 0/7] Add support to boot TI K3 HSM M4 core Beleswar Padhi
2025-05-06 10:41 ` [PATCH v2 1/7] arm: mach-k3: Add config option for booting HSM core Beleswar Padhi
2025-05-06 10:41 ` [PATCH v2 2/7] spl: Use FIT data address as fallback when 'load' property is absent Beleswar Padhi
2025-05-06 10:41 ` [PATCH v2 3/7] arm: dts: k3-binman: Add template for packing HSM firmware Beleswar Padhi
2025-05-06 10:41 ` [PATCH v2 4/7] arm: dts: k3-{j721s2/j784s4}-binman: Pack HSM firmware inside tispl.bin Beleswar Padhi
2025-05-07  9:39   ` Anshul Dalal
2025-05-07 14:56     ` Beleswar Prasad Padhi
2025-05-07 15:23       ` Andrew Davis
2025-05-08 11:55         ` Anshul Dalal
2025-05-08 11:59         ` Anshul Dalal
2025-05-08 15:03           ` Beleswar Prasad Padhi
2025-05-08 15:28             ` Andrew Davis
2025-05-09  5:15               ` Beleswar Prasad Padhi
2025-11-19 10:15           ` Beleswar Prasad Padhi
2025-05-06 10:42 ` [PATCH v2 5/7] arm: mach-k3: Use FIT image data addr as fallback if 'load' prop is missing Beleswar Padhi
2025-05-06 10:42 ` [PATCH v2 6/7] arm: mach-k3: Explicitly identify TIFSSTUB images when discarding buffers Beleswar Padhi
2025-05-06 10:42 ` [PATCH v2 7/7] arm: mach-k3: r5: common: Add support to boot HSM M4 core Beleswar Padhi
2025-05-06 11:06   ` Andrew Davis
2025-05-06 14:36     ` Beleswar Prasad Padhi
2025-05-08 12:10   ` Anshul Dalal
2025-05-06 11:08 ` [PATCH v2 0/7] Add support to boot TI K3 " Andrew Davis
2025-05-06 14:51   ` Beleswar Prasad Padhi
2025-05-06 15:08     ` Andrew Davis
2025-05-06 17:17       ` Kumar, Udit
2025-05-06 17:19         ` Tom Rini
2025-05-06 18:12           ` Andrew Davis
2025-05-07  4:16             ` Kumar, Udit
2025-05-07 10:28             ` Beleswar Prasad Padhi
2025-05-07 15:53               ` Andrew Davis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.