GIC: Ensure SGIs and PPIs are Group0 before setup
Soby Mathew authored
The legacy GIC driver assumes that the SGIs and PPIs are Group0 during
initialization. This is true if the driver is the first one to initialize
the GIC hardware after reset. But in some cases, earlier BL stages could
have already initialized the GIC hardware which means that SGI and PPI
configuration are not the expected reset values causing assertion failure
in `gicd_set_ipriorityr()`. This patch explicitly resets the SGI and PPI
to Group0 prior to their initialization in the driver. The same patch is
not done in the GICv2-only driver because unlike in the legacy driver,
`gicd_set_ipriorityr()` of GICv2 driver doesn't enforce this policy and
the appropriate group is set irrespective of the initial value.

Fixes ARM-software/tf-issues#396

Change-Id: I521d35caa37470ce542c796c2ba99716e4763105
47c6876a
Name Last commit Last update
bl1 Merge pull request #636 from soby-mathew/sm/cpu_ctx_rem_aarch32_regs
bl2 Rename BL33_BASE option to PRELOADED_BL33_BASE
bl2u Remove all non-configurable dead loops
bl31 Add optional PSCI STAT residency & count functions
bl32/tsp Introduce some helper macros for exception vectors
common Merge pull request #650 from Xilinx/zynqmp-updates
docs Merge pull request #651 from Xilinx/zynqmp_uart
drivers GIC: Ensure SGIs and PPIs are Group0 before setup
fdts Remove support for legacy VE memory map in FVP
include Add optional PSCI STAT residency & count functions
lib Add Performance Measurement Framework(PMF)
make_helpers Merge pull request #651 from Xilinx/zynqmp_uart
plat Merge pull request #651 from Xilinx/zynqmp_uart
services Add optional PSCI STAT residency & count functions
tools Move stdlib header files to include/lib/stdlib
.checkpatch.conf Move checkpatch options in a configuration file
.gitignore Make:Allow for extension in tool names.
Makefile Add optional PSCI STAT residency & count functions
acknowledgements.md Add Xilinx to acknowledgements file
contributing.md Update `contributing.md` CLA instructions
license.md Update year in copyright text to 2014
readme.md Update `readme.md` for v1.2 release