]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: el2_setup: Make sure ICC_SRE_EL2.SRE sticks before using GICv3 sysregs
authorMarc Zyngier <marc.zyngier@arm.com>
Wed, 30 Sep 2015 10:39:59 +0000 (11:39 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 9 Oct 2015 21:16:51 +0000 (22:16 +0100)
commitc9c58b94c14e466da853787a2ea529c040e11c01
tree4696526bf1052982df10938f3bbb4bf5bd302d53
parenta219fd2dd9de941818e6f6b8e6fb81abc33f8404
arm64: el2_setup: Make sure ICC_SRE_EL2.SRE sticks before using GICv3 sysregs

Contrary to what was originally expected, EL3 firmware can (for whatever
reason) disable GICv3 system register access. In this case, the kernel
explodes very early.

Work around this by testing if the SRE bit sticks or not. If it doesn't,
abort the GICv3 setup, and pray that the firmware has passed a DT that
doesn't contain a GICv3 node.

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/kernel/head.S