Repository navigation
Commit f3a0592
Marc Zyngier
irqchip/gic-v4.1: Ensure mutual exclusion between vPE affinity change and RD access
Before GICv4.1, all operations would be serialized with the affinity
changes by virtue of using the same ITS command queue. With v4.1, things
change, as invalidations (and a number of other operations) are issued
using the redistributor MMIO frame.
We must thus make sure that these redistributor accesses cannot race
against aginst the affinity change, or we may end-up talking to the
wrong redistributor.
To ensure this, we expand the irq_to_cpuid() helper to take a spinlock
when the LPI is mapped to a vLPI (a new per-VPE lock) on each operation
that requires mutual exclusion.
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Zenghui Yu <yuzenghui@huawei.com>
Link: https://lore.kernel.org/r/20200304203330.4967-4-maz@kernel.org1 parent 28d160d commit f3a0592
2 files changed
Lines changed: 53 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
243 | 254 | | |
244 | | - | |
245 | 255 | | |
| 256 | + | |
246 | 257 | | |
247 | | - | |
248 | | - | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
249 | 267 | | |
250 | | - | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
251 | 277 | | |
252 | 278 | | |
253 | 279 | | |
| |||
1329 | 1355 | | |
1330 | 1356 | | |
1331 | 1357 | | |
| 1358 | + | |
1332 | 1359 | | |
| 1360 | + | |
1333 | 1361 | | |
1334 | 1362 | | |
1335 | 1363 | | |
| |||
1344 | 1372 | | |
1345 | 1373 | | |
1346 | 1374 | | |
1347 | | - | |
| 1375 | + | |
| 1376 | + | |
1348 | 1377 | | |
1349 | 1378 | | |
1350 | 1379 | | |
| 1380 | + | |
1351 | 1381 | | |
1352 | 1382 | | |
1353 | 1383 | | |
| |||
3486 | 3516 | | |
3487 | 3517 | | |
3488 | 3518 | | |
| 3519 | + | |
3489 | 3520 | | |
3490 | 3521 | | |
3491 | 3522 | | |
3492 | 3523 | | |
3493 | 3524 | | |
3494 | 3525 | | |
| 3526 | + | |
| 3527 | + | |
| 3528 | + | |
| 3529 | + | |
| 3530 | + | |
| 3531 | + | |
| 3532 | + | |
3495 | 3533 | | |
3496 | | - | |
| 3534 | + | |
| 3535 | + | |
3497 | 3536 | | |
3498 | 3537 | | |
3499 | | - | |
3500 | 3538 | | |
3501 | 3539 | | |
3502 | 3540 | | |
| |||
3512 | 3550 | | |
3513 | 3551 | | |
3514 | 3552 | | |
| 3553 | + | |
3515 | 3554 | | |
3516 | 3555 | | |
3517 | 3556 | | |
| |||
3855 | 3894 | | |
3856 | 3895 | | |
3857 | 3896 | | |
| 3897 | + | |
3858 | 3898 | | |
3859 | 3899 | | |
3860 | 3900 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
56 | 61 | | |
57 | 62 | | |
58 | 63 | | |
| |||
0 commit comments