Skip to content

Commit b978c25

Browse files
Zenghui YuMarc Zyngier
authored andcommitted
irqchip/gic-v4.1: Wait for completion of redistributor's INVALL operation
In GICv4.1, we emulate a guest-issued INVALL command by a direct write to GICR_INVALLR. Before we finish the emulation and go back to guest, let's make sure the physical invalidate operation is actually completed and no stale data will be left in redistributor. Per the specification, this can be achieved by polling the GICR_SYNCR.Busy bit (to zero). Signed-off-by: Zenghui Yu <yuzenghui@huawei.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Reviewed-by: Eric Auger <eric.auger@redhat.com> Link: https://lore.kernel.org/r/20200302092145.899-1-yuzenghui@huawei.com Link: https://lore.kernel.org/r/20200304203330.4967-5-maz@kernel.org
1 parent f3a0592 commit b978c25

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/irqchip/irq-gic-v3-its.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3827,6 +3827,8 @@ static void its_vpe_4_1_invall(struct its_vpe *vpe)
38273827
/* Target the redistributor this vPE is currently known on */
38283828
rdbase = per_cpu_ptr(gic_rdists->rdist, vpe->col_idx)->rd_base;
38293829
gic_write_lpir(val, rdbase + GICR_INVALLR);
3830+
3831+
wait_for_syncr(rdbase);
38303832
}
38313833

38323834
static int its_vpe_4_1_set_vcpu_affinity(struct irq_data *d, void *vcpu_info)

0 commit comments

Comments
 (0)