Skip to content

psci: add support for SYSTEM_RESET2 and PSCI_FEATURES

Igor Opaniuk u-boot 5 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest5 patches 0 repliesNew
  2. v3 posting 2/25 patches 0 repliesSuperseded
  3. v3 posting 1/24 patches 0 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 RFC4 patches0 repliesSuperseded
v1 RFC3 patches0 repliesSuperseded

Changes in v4 from the cover letter

- Fix htmldoc build issue

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5psci: add v1.0/v1.1 definitions from Linuxinclude/linux/psci.h+28 -01 reply
2/5psci: add features/reset2 supportdrivers/firmware/psci.c include/linux/psci.h+71 -02 replies
3/5sysreset: psci: use psci driver exported functionsdrivers/sysreset/sysreset_psci.c+2 -61 reply
4/5sysreset: provide type of reset in do_reset cmdcmd/boot.c drivers/sysreset/sysreset-uclass.c+11 -21 reply
5/5doc: usage: add usage details for reset cmddoc/usage/index.rst doc/usage/reset.rst+27 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/5] psci: add support for SYSTEM_RESET2 and PSCI_FEATURES

From: Igor Opaniuk <[email protected]>

1. Adds support for:
* PSCI_FEATURES, introduced in PSCI 1.0. This provides API that allows discovering whether a specific PSCI function is implemented and its features.
* SYSTEM_RESET2, introduced in PSCI 1.1, which extends existing SYSTEM_RESET. It provides support for vendor-specific resets, providing reset_type as an additional param.

2. PSCI sysreset driver is refactored to use new API.
3. do_reset cmd is extended, optional param added for providing type of reset

CI: https://dev.azure.com/igoropaniuk/u-boot/_build/results?buildId=23&view=results

Changes in v4:
- Fix htmldoc build issue

Changes in v3:
- Drop RFC tag
- Add usage doc for reset cmd
- Reimplement param handling for reset cmd
- Droped updates in reset usage string

Changes in v2:
- do_reset cmd updates

Igor Opaniuk (5):
psci: add v1.0/v1.1 definitions from Linux
psci: add features/reset2 support
sysreset: psci: use psci driver exported functions
sysreset: provide type of reset in do_reset cmd
doc: usage: add usage details for reset cmd

 cmd/boot.c                         |  2 +-
 doc/usage/index.rst                |  1 +
 doc/usage/reset.rst                | 26 ++++++++++++
 drivers/firmware/psci.c            | 68 ++++++++++++++++++++++++++++++
 drivers/sysreset/sysreset-uclass.c | 11 ++++-
 drivers/sysreset/sysreset_psci.c   |  8 +---
 include/linux/psci.h               | 31 ++++++++++++++
 7 files changed, 139 insertions(+), 8 deletions(-)
 create mode 100644 doc/usage/reset.rst
Signature · 1 line
2.25.1