Skip to content

ARM: Do not mess with CCI if booted from HYP

Lorenzo Pieralisi linux-arm-kernel 1 version New

Get series with b4
b4 am 20160923102907.GB31120@red-moon

Versions newest first

  1. v1 Latest0 of 2 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 2 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] ARM: Do not mess with CCI if booted from HYP

Hi Marc,

Quoted 5 lines · Marc Zyngier

Some systems (such as the VExpress TC2) are built around a CCI-400, which is only accessible from secure mode. This obviously breaks if the system is booted in non-secure mode. Detecting non-secure is pretty hard to do, unless the system is booted from HYP.

Quoted 7 lines

This small patch series makes sure that:
- The CCI ports are not accessed when the kernel is booted from HYP
- MCPM (which depends on CCI) is not enabled on VExpress if booted from HYP.

This allows a multi_v7_defconfig kernel to be booted on a TC2 booting from HYP, instead of miserably dying very early on.

As discussed I came up with a different set of patches that detect CCI ports status as reported by DT and prevent enabling MCPM if the CCI ports are not under kernel control (eg they are reported as "disabled" by DT since we booted in HYP).

I will post patches for review and test shortly.

Thanks for fixing it anyway,
Lorenzo

Quoted 12 lines

Marc Zyngier (2):
ARM: vexpress: Do not enable MCPM if booted from HYP
arm-cci: Do not probe the CCI ports if booted from HYP

 arch/arm/mach-vexpress/platsmp.c |  8 ++++++--
 drivers/bus/arm-cci.c            | 11 +++++++++++
 2 files changed, 17 insertions(+), 2 deletions(-)
Signature · 1 line
2.1.4