[PATCH v3 0/3] platform: generic: spacemit: add K1

Troy Mitchell troy.mitchell at linux.spacemit.com
Thu Sep 25 02:48:54 PDT 2025


Extend generic platform to support SpacemiT K1.

On K1, the BROM only brings up the primary core and leaves the
other cores in a disabled state. This prevents Linux from booting
SMP and only one core is available.

This series enables CPU hotplug operations on the SpacemiT K1,
allowing Linux to run across all 8 cores.

Co-authored-by: Troy Mitchell <troy.mitchell at linux.spacemit.com>
Signed-off-by: Troy Mitchell <troy.mitchell at linux.spacemit.com>
Signed-off-by: Xianbin Zhu <xianbin.zhu at linux.spacemit.com>
---
Changes in v3:
- split out the HSM driver
- updated commit message
- use sbi_scratch_thishart_ptr() instead of sbi_hartid_to_scratch()
- Link to v2: https://lore.kernel.org/r/20250922-smt-k1-8-cores-v2-1-dceae56f36d9@linux.spacemit.com

Changes in v2:
- remove __sbi_hsm_hart_get_state() in spacemit_cold_boot_allowed()
- plus PMU_AP_BASE in PMU_AP_CORE(0|4)_(WAKEUP|IDLE)_OFFSET
- Link to v1: https://lore.kernel.org/r/20250916-smt-k1-8-cores-v1-1-5b76e06d12da@linux.spacemit.com

---
Xianbin Zhu (3):
      platform: generic: spacemit: add K1
      platform: spacemit: Add HSM driver
      platform: generic: Add SpacemiT K1 platform support

 lib/utils/hsm/Kconfig                  |   4 +
 lib/utils/hsm/fdt_hsm_spacemit.c       | 140 +++++++++++++++++++++++++++++++++
 lib/utils/hsm/objects.mk               |   3 +
 platform/generic/Kconfig               |   5 ++
 platform/generic/configs/defconfig     |   5 +-
 platform/generic/include/spacemit/k1.h |  98 +++++++++++++++++++++++
 platform/generic/spacemit/k1.c         | 119 ++++++++++++++++++++++++++++
 7 files changed, 372 insertions(+), 2 deletions(-)
---
base-commit: 153cdeea5350837c1206a2d2b6189fd0ba06d1f2
change-id: 20250911-smt-k1-8-cores-8985c5f40c5f

Best regards,
-- 
Troy Mitchell <troy.mitchell at linux.spacemit.com>




More information about the opensbi mailing list