Commit a43b08e8 authored by Andre Przywara's avatar Andre Przywara Committed by Will Deacon
Browse files

arm/gic: avoid GICv2m MMIO frame overlap



Currently we accidentally overlap the GICv2m MMIO frame with the CPU
interface region. Fix this by moving the v2m frame below the CPUI region.

Signed-off-by: Andre Przywara's avatarAndre Przywara <andre.przywara@arm.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent a5d36dd1
...@@ -224,7 +224,7 @@ int gic__create(struct kvm *kvm, enum irqchip_type type) ...@@ -224,7 +224,7 @@ int gic__create(struct kvm *kvm, enum irqchip_type type)
switch (type) { switch (type) {
case IRQCHIP_GICV2M: case IRQCHIP_GICV2M:
gic_msi_size = KVM_VGIC_V2M_SIZE; gic_msi_size = KVM_VGIC_V2M_SIZE;
gic_msi_base = ARM_GIC_DIST_BASE - gic_msi_size; gic_msi_base = ARM_GIC_CPUI_BASE - gic_msi_size;
break; break;
case IRQCHIP_GICV2: case IRQCHIP_GICV2:
break; break;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment