Skip to content

Broadcom STB PM PSCI extensions

Florian Fainelli linux-arm-kernel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4firmware: psci: Export a couple of suspend symbolsdrivers/firmware/psci/psci.c include/linux/psci.h+10 -10 replies
2/4soc: bcm: brcmstb: Make legacy PM code depend on !ARM_PSCI_FWdrivers/soc/bcm/brcmstb/pm/Makefile+2 -00 replies
3/4soc: bcm: brcmstb: Added support for PSCI system suspend operationsdrivers/soc/bcm/brcmstb/Kconfig drivers/soc/bcm/brcmstb/pm/Makefile drivers/soc/bcm/brcmstb/pm/pm-psci.c +1 more+402 -22 replies
4/4Documentation: ABI: Document Broadcom STB PSCI firmware filesDocumentation/ABI/testing/sysfs-firmware-brcmstb+16 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/4] Broadcom STB PM PSCI extensions

Hi all,

This patch series contains the Broadcom STB PSCI extensions which adds some additional functions on top of the existing standard PSCI interface which is the reason for having the driver implement a custom suspend_ops.

These platforms have traditionally supported a mode that is akin to ACPI's S2 with the CPU in WFI and all of the chip being clock gated which is entered with "echo standby > /sys/power/state". Additional a true suspend to DRAM as defined in ACPI by S3 is implemented with "echo mem > /sys/power/state".

These platforms also may have an external Broadcom PMIC chip which can cause the SoC to be powercycled assuming that we communicate that intent via a vendor specific PSCI SYSTEM_RESET2.

Since it is desirable to get any new functionality added to the kernel to be loadable as a module as part of shipping said products in a Google Kernel Image (GKI) environment, we need to export a couple of symbols from drivers/firmware/psci/psci.c.

Thanks for your feedback.

Florian Fainelli (4):
firmware: psci: Export a couple of suspend symbols
soc: bcm: brcmstb: Make legacy PM code depend on !ARM_PSCI_FW
soc: bcm: brcmstb: Added support for PSCI system suspend operations
Documentation: ABI: Document Broadcom STB PSCI firmware files

 .../ABI/testing/sysfs-firmware-brcmstb        |  16 +
 drivers/firmware/psci/psci.c                  |   9 +-
 drivers/soc/bcm/brcmstb/Kconfig               |   4 +-
 drivers/soc/bcm/brcmstb/pm/Makefile           |   3 +
 drivers/soc/bcm/brcmstb/pm/pm-psci.c          | 315 ++++++++++++++++++
 include/linux/psci.h                          |   2 +
 include/linux/soc/brcmstb/brcmstb-smccc.h     |  84 +++++
 7 files changed, 430 insertions(+), 3 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-firmware-brcmstb
 create mode 100644 drivers/soc/bcm/brcmstb/pm/pm-psci.c
 create mode 100644 include/linux/soc/brcmstb/brcmstb-smccc.h
Signature · 1 line
2.25.1