]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(psci): tighten psci_power_down_wfi behaviour
authorHarrison Mutai <harrison.mutai@arm.com>
Wed, 11 Jan 2023 17:01:04 +0000 (17:01 +0000)
committerHarrison Mutai <harrison.mutai@arm.com>
Mon, 23 Jan 2023 17:25:40 +0000 (17:25 +0000)
commit695a48b5b4366d1005f8b9a0fc83726914668fb5
tree48876ec0cbf62ce89d1dcdfa293c1ef164f35e14
parent344e5e8149f98fcbb2360cabc1dfc99db210ef82
fix(psci): tighten psci_power_down_wfi behaviour

A processing element should never return from a wfi, however, due to a
hardware bug, certain CPUs may wake up because of an external event.
This patch tightens the behaviour of the common power down sequence, it
ensures the routine never returns by entering a wfi loop at its end. It
aligns with the behaviour of the platform implementations.

Change-Id: I36d8b0c64eccb71035bf164b4cd658d66ed7beb4
Signed-off-by: Harrison Mutai <harrison.mutai@arm.com>
lib/psci/aarch32/psci_helpers.S
lib/psci/aarch64/psci_helpers.S