Repository navigation
Commit 9058a4e
Marc Zyngier
irqchip/gic-v4.1: Ensure mutual exclusion betwen invalidations on the same RD
The GICv4.1 spec says that it is CONTRAINED UNPREDICTABLE to write to
any of the GICR_INV{LPI,ALL}R registers if GICR_SYNCR.Busy == 1.
To deal with it, we must ensure that only a single invalidation can
happen at a time for a given redistributor. Add a per-RD lock to that
effect and take it around the invalidation/syncr-read to deal with this.
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Zenghui Yu <yuzenghui@huawei.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Link: https://lore.kernel.org/r/20200304203330.4967-6-maz@kernel.org1 parent b978c25 commit 9058a4e
3 files changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1373 | 1373 | | |
1374 | 1374 | | |
1375 | 1375 | | |
| 1376 | + | |
1376 | 1377 | | |
1377 | 1378 | | |
1378 | 1379 | | |
1379 | 1380 | | |
| 1381 | + | |
1380 | 1382 | | |
1381 | 1383 | | |
1382 | 1384 | | |
| |||
3662 | 3664 | | |
3663 | 3665 | | |
3664 | 3666 | | |
| 3667 | + | |
3665 | 3668 | | |
3666 | 3669 | | |
3667 | 3670 | | |
| 3671 | + | |
3668 | 3672 | | |
3669 | 3673 | | |
3670 | 3674 | | |
| |||
3825 | 3829 | | |
3826 | 3830 | | |
3827 | 3831 | | |
| 3832 | + | |
3828 | 3833 | | |
3829 | 3834 | | |
3830 | 3835 | | |
3831 | 3836 | | |
| 3837 | + | |
3832 | 3838 | | |
3833 | 3839 | | |
3834 | 3840 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
834 | 834 | | |
835 | 835 | | |
836 | 836 | | |
| 837 | + | |
837 | 838 | | |
838 | 839 | | |
839 | 840 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
652 | 652 | | |
653 | 653 | | |
654 | 654 | | |
| 655 | + | |
655 | 656 | | |
656 | 657 | | |
657 | 658 | | |
| |||
0 commit comments