Home
last modified time | relevance | path

Searched hist:"01959 a1656a08dacd1d036d0441165d52bf7563e" (Results 1 – 2 of 2) sorted by relevance

/rk3399_ARM-atf/plat/arm/common/
H A Darm_pm.c71d4e03444f689210803323b437ee15d537fc6ea Fri Jan 31 16:26:08 UTC 2025 Boyan Karatotev <boyan.karatotev@arm.com> fix(psci): check if a core is the last one in a requested power level

PSCI OS initiated is usually implemented with the extended state id
format, however this does not have to be the case. When this is the
case, the original format will carry the requested power level in
the PowerLevel field. To validate that the requested power state is
valid we must save it so that later when we call
psci_is_last_cpu_to_idle_at_pwrlvl() it checks the right level (instead
of a default 0).

This came up when testing 01959a1656a08dacd1d036d0441165d52bf7563e for
all configurations.

Change-Id: Iaab88c1910467282ae524861446283acddd9d977
Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>
/rk3399_ARM-atf/lib/psci/
H A Dpsci_common.c01959a1656a08dacd1d036d0441165d52bf7563e Tue Oct 17 18:17:58 UTC 2023 Charlie Bareham <charlie.bareham@arm.com> fix(psci): fix parent parsing in psci_is_last_cpu_to_idle_at_pwrlvl

The function always checks the first parent of the current core
instead parse the tree topology to find the parent at parent level
of the CPU. It is because the current loop has no effect as it uses
a fixed parameter 'my_idx' and returns the FIRST parent of CPU.
Also, it looks for the parent nodes in the array of CPU nodes, but
actually they are in a separate array.

This update allows to parse the PSCI topology tree to find
the parent at parent level of the CPU identified by my_idx.

Fixes: 606b7430077c ("feat(psci): add support for OS-initiated mode")
Change-Id: I96fb5ecc154a76b16adca5b5055217b8626c9e66
Signed-off-by: Charlie Bareham <charlie.bareham@arm.com>