Skip to content

Implement hart hotplug using HSM extension for AE350

Yu Chien Peter Lin opensbi 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 0 repliesNew
  2. v36 patches 0 repliesSuperseded
  3. v26 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v16 patches0 repliesSuperseded

Changes v1 -> v2 from the cover letter

* Drop patch for adding secondary_boot callback
* Add a PATCH4 to move ATCSMU related code to lib/utils/sys
* Include RB tags

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6docs: generic.md: fix typo of andes-ae350docs/platform/generic.md+1 -10 replies
2/6lib: sbi_hsm: handle failure when hart_stop returns SBI_ENOTSUPPinclude/sbi/sbi_hsm.h lib/sbi/sbi_hsm.c+9 -60 replies
3/6include: types: add always inline compiler attributeinclude/sbi/sbi_types.h+1 -00 replies
4/6lib: utils: atcsmu: Add Andes System Management Unit supportinclude/sbi_utils/sys/atcsmu.h lib/utils/sys/Kconfig lib/utils/sys/atcsmu.c +2 more+157 -00 replies
5/6platform: andes/ae350: Implement hart hotplug using HSM extensionplatform/generic/andes/ae350.c platform/generic/andes/objects.mk platform/generic/andes/sleep.S +1 more+180 -10 replies
6/6lib: reset/fdt_reset_atcwdt200: Use defined macros and function in atcsmu.hlib/utils/reset/Kconfig lib/utils/reset/fdt_reset_atcwdt200.c+9 -130 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchAnup PatelAndrew JonesAtish Patra
1/6R-b
2/6R-b R-b R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/6] Implement hart hotplug using HSM extension for AE350

The patchset includes implementing hotplug with ATCSMU deep sleep mode using HSM extension, introduces ATCSMU system device and some fixes. Base on OpenSBI v1.2 and test on AE350 platform with the CPU listed below:

RV64:
* AX45MP quad-core
* AX45MP octa-core
* AX25MP quad-core

RV32:
* A45MP quad-core
* A25MP quad-core

Changes v1 -> v2:
* Drop patch for adding secondary_boot callback
* Add a PATCH4 to move ATCSMU related code to lib/utils/sys
* Include RB tags
Changes v2 -> v3:
* Refine PATCH4 (suggested by Anup [1])
* Remove redundant headers
* Move is_andes25() to ae350.c
* Add "struct smu_data *smu" parameter to each smu related functions
* Refine PATCH6 (suggested by Anup [2])
* Make FDT_RESET_ATCWDT200 depends on SYS_ATCSMU
* PATCH5 & PATCH6: Instantiate struct smu_data in ae350.c and fdt_reset_atcwdt200.c Changes v3 -> v4
* PATCH4: Fix indentation for atcsmu.h

[1] https://lists.infradead.org/pipermail/opensbi/2023-January/004236.html
[2] https://lists.infradead.org/pipermail/opensbi/2023-January/004237.html

Yu Chien Peter Lin (6):
docs: generic.md: fix typo of andes-ae350
lib: sbi_hsm: handle failure when hart_stop returns SBI_ENOTSUPP
include: types: add always inline compiler attribute
lib: utils: atcsmu: Add Andes System Management Unit support
platform: andes/ae350: Implement hart hotplug using HSM extension
lib: reset/fdt_reset_atcwdt200: Use defined macros and function in
atcsmu.h

 docs/platform/generic.md                 |  2 +-
 include/sbi/sbi_hsm.h                    |  8 +-
 include/sbi/sbi_types.h                  |  1 +
 include/sbi_utils/sys/atcsmu.h           | 59 ++++++++++++++
 lib/sbi/sbi_hsm.c                        |  7 +-
 lib/utils/reset/Kconfig                  |  1 +
 lib/utils/reset/fdt_reset_atcwdt200.c    | 21 ++---
 lib/utils/sys/Kconfig                    |  4 +
 lib/utils/sys/atcsmu.c                   | 92 ++++++++++++++++++++++
 lib/utils/sys/objects.mk                 |  1 +
 platform/generic/Kconfig                 |  1 +
 platform/generic/andes/ae350.c           | 99 ++++++++++++++++++++++++
 platform/generic/andes/objects.mk        |  2 +-
 platform/generic/andes/sleep.S           | 70 +++++++++++++++++
 platform/generic/include/andes/andes45.h | 10 +++
 15 files changed, 357 insertions(+), 21 deletions(-)
 create mode 100644 include/sbi_utils/sys/atcsmu.h
 create mode 100644 lib/utils/sys/atcsmu.c
 create mode 100644 platform/generic/andes/sleep.S
 create mode 100644 platform/generic/include/andes/andes45.h
Signature · 1 line
2.34.1