Re: [PATCH v4 3/5] irqchip/gic: Restore CPU interface checking

From: Catalin Marinas
Date: Fri Apr 22 2016 - 09:34:07 EST


On Fri, Apr 22, 2016 at 12:25:33PM +0100, Suzuki K. Poulose wrote:
> From: Marc Zyngier <marc.zyngier@xxxxxxx>
>
> When introducing the whole CPU feature detection framework,
> we lost the capability to detect a mismatched GIC configuration
> (using the GICv2 MMIO interface, but having the system register
> interface enabled).
>
> In order to solve this, use the new this_cpu_has_cap() helper.
> Also move the check to the CPU interface path in order to catch
> systems where the first CPU has been correctly configured,
> but the secondaries are not.
>
> Signed-off-by: Marc Zyngier <marc.zyngier@xxxxxxx>
> Signed-off-by: Suzuki K Poulose <suzuki.poulose@xxxxxxx>

Acked-by: Catalin Marinas <catalin.marinas@xxxxxxx>