fvp: Disable SYSTEM_SUSPEND when ARM_BL31_IN_DRAM
authorAntonio Nino Diaz <antonio.ninodiaz@arm.com>
Wed, 22 Nov 2017 12:00:44 +0000 (12:00 +0000)
committerAntonio Nino Diaz <antonio.ninodiaz@arm.com>
Wed, 6 Dec 2017 09:52:01 +0000 (09:52 +0000)
commit7d44ac1efff956dc19a074fa02703c30bd8d3ca8
treec8dbaad6d97364dd627be00b5d8d8537a35391bd
parent2633dfebdbeb13b802b858a6a4a15c6e16551418
fvp: Disable SYSTEM_SUSPEND when ARM_BL31_IN_DRAM

After returning from SYSTEM_SUSPEND state, BL31 reconfigures the
TrustZone Controller during the boot sequence. If BL31 is placed in
TZC-secured DRAM, it will try to change the permissions of the memory it
is being executed from, causing an exception.

The solution is to disable SYSTEM_SUSPEND when the Trusted Firmware has
been compiled with ``ARM_BL31_IN_DRAM=1``.

Change-Id: I96dc50decaacd469327c6b591d07964726e58db4
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
plat/arm/board/fvp/fvp_pm.c