[RFC PATCH 00/10] SBI HSM suspend implementation

Anup Patel anup.patel at wdc.com
Sun Feb 21 03:53:11 EST 2021


This series extends OpenSBI HSM implemenation to include HSM suspend
function.

These patches can be found in hsm_suspend_v1 branch at
https://github.com/avpatel/opensbi

The proposed SBI HSM suspend definition can be found in hsm_suspend_v3
branch at https://github.com/avpatel/riscv-sbi-doc

Anup Patel (10):
  include: sbi: Simplify HSM state define names
  lib: sbi: Use SBI_HSM_STATE_xyz defines instead of SBI_STATE_xyz
    defines
  lib: sbi: Rename sbi_hsm_hart_started_mask() function
  lib: sbi: Remove redundant sbi_hsm_hart_started() function
  include: sbi: Add HSM suspend related defines
  lib: sbi: Add sbi_hart_reinit() function
  include: sbi: Add hart_suspend() platform callback
  lib: sbi: Implement SBI HSM suspend function
  include: sbi: Upgrade SBI implementation version to v0.3
  lib: Remove redundant sbi_platform_ipi_clear() calls

 include/sbi/sbi_ecall.h           |   2 +-
 include/sbi/sbi_ecall_interface.h |  27 ++-
 include/sbi/sbi_hart.h            |   1 +
 include/sbi/sbi_hsm.h             |  16 +-
 include/sbi/sbi_platform.h        |  30 ++++
 lib/sbi/sbi_ecall_hsm.c           |  13 +-
 lib/sbi/sbi_ecall_legacy.c        |   4 +-
 lib/sbi/sbi_hart.c                |  29 ++--
 lib/sbi/sbi_hsm.c                 | 268 +++++++++++++++++++++++-------
 lib/sbi/sbi_init.c                |  49 +++++-
 lib/sbi/sbi_ipi.c                 |   9 +-
 lib/sbi/sbi_system.c              |   2 +-
 12 files changed, 348 insertions(+), 102 deletions(-)

-- 
2.25.1




More information about the opensbi mailing list