css: Ensure PSCI system off/reset is not interrupted
authordp-arm <dimitris.papastamos@arm.com>
Tue, 11 Apr 2017 10:48:49 +0000 (11:48 +0100)
committerdp-arm <dimitris.papastamos@arm.com>
Thu, 20 Apr 2017 14:05:21 +0000 (15:05 +0100)
commit0498343ac0d0b03c0389ce358bcb2f17096949dd
tree30cb7cd10deefce1b2d2e2eb106123ea1938101a
parent3d21c9452d4d5e17f545848bc4641274cdd6aa26
css: Ensure PSCI system off/reset is not interrupted

If there is a pending interrupt, it is possible for the AP to come out
of the final WFI before SCP has a chance to act on it.  Prevent this
by disabling the GIC CPU interface before issuing a WFI.

Previously, SCP would not wait on WFI before taking an action but
would shut down the core or system regardless.

Change-Id: Ib0bcf69a515d540ed4f73c11e40ec7c863e39c92
Signed-off-by: dp-arm <dimitris.papastamos@arm.com>
plat/arm/css/drivers/scp/css_pm_scpi.c