Skip to content

arm/arm64: Unify PSCI client support

Hanjun Guo linux-arm-kernel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest0 of 12 patches 0 repliesNew
  2. v27 of 12 patches 0 repliesSuperseded

Patches in v3 No applies recorded yet

None of the 12 patches the cover letter announces are in this archive.

Reviews trailers per patch

PatchHanjun Guo
SeriesT-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCHv3 00/12] arm/arm64: Unify PSCI client support
Quoted 23 lines · Mark Rutland

This series unifies the 32-bit and 64-bit PSCI client code, moving the bulk of the FW invocation and probing out to a common location in drivers/firmware. As part of this, the remaining edge cases for PSCI 0.2 (Trusted OSs rejecting CPU_OFF) are accounted for, making both 32-bit adn 64-bit clients more robust.

This results in a reasonable saving in terms of lines of code, and will allow for PSCI 1.0 support to be unified form the beginning, avoiding further duplication.

The series is based on the arm64 for-next/cpu-init branch [3] due to conflicts with that series.

Since v1 [1]:
* Fix build when PSCI isn't selected
* Don't indirect migrate_info_up_cpu
* Fix ver to u32 in psci_get_version

Since v2: [2]:
* Rebase atop of Lorenzo's cpu init cleanup series [3]
* Use the correct native function IDs
* Fix cpu_disable return values
* Report invalid MIGRATE_INFO_UP_CPU return values

Quoted 3 lines

Many thanks to those who have reviewed and tested so far! Unfortunately, due to the volume of changes in the rebase I've dropped all Tested-by tags. I've locally tested 32-bit and 64-bit kernels with DT.

I tested this patch set on ARM64 kernel with ACPI as I did in previous version, compile this patch set ok with CONFIG_ACPI=y/n, and CPU hotplug works with PSCI (CPU_ON/OFF),

Thanks
Hanjun