OSDN Git Service

irqchip/gic-v4.1: VPE table (aka GICR_VPROPBASER) allocation
authorMarc Zyngier <maz@kernel.org>
Tue, 24 Dec 2019 11:10:28 +0000 (11:10 +0000)
committerMarc Zyngier <maz@kernel.org>
Wed, 22 Jan 2020 14:22:19 +0000 (14:22 +0000)
commit5e5168461c22c8738d31d4ee12a5cbc2ab0aa440
tree1bce63dc769e715e017ef483ecf04b8414d4b947
parentf2d834092ee276610ccb6637e5109b61fc79ab89
irqchip/gic-v4.1: VPE table (aka GICR_VPROPBASER) allocation

GICv4.1 defines a new VPE table that is potentially shared between
both the ITSs and the redistributors, following complicated affinity
rules.

To make things more confusing, the programming of this table at
the redistributor level is reusing the GICv4.0 GICR_VPROPBASER register
for something completely different.

The code flow is somewhat complexified by the need to respect the
affinities required by the HW, meaning that tables can either be
inherited from a previously discovered ITS or redistributor.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Zenghui Yu <yuzenghui@huawei.com>
Link: https://lore.kernel.org/r/20191224111055.11836-6-maz@kernel.org
arch/arm/include/asm/arch_gicv3.h
arch/arm64/include/asm/arch_gicv3.h
drivers/irqchip/irq-gic-v3-its.c
include/linux/irqchip/arm-gic-v3.h