Commit d17e3f8
PCI: xgene-msi: Make per-CPU interrupt setup robust
The way the per-CPU interrupts are dealt with in the XGene MSI
driver isn't great:
- the affinity is set after the interrupt is enabled
- nothing prevents userspace from moving the interrupt around
- the affinity setting code pointlessly allocates memory
- the driver checks for conditions that cannot possibly happen
Address all of this in one go, resulting in slightly simpler setup
code.
Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lore.kernel.org/r/20250708173404.1278635-6-maz@kernel.org1 parent fddf72e commit d17e3f8
1 file changed
Lines changed: 6 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
358 | | - | |
359 | 358 | | |
360 | 359 | | |
361 | 360 | | |
362 | 361 | | |
363 | 362 | | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | 363 | | |
370 | 364 | | |
371 | 365 | | |
372 | 366 | | |
373 | 367 | | |
374 | 368 | | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
| 369 | + | |
| 370 | + | |
387 | 371 | | |
388 | | - | |
389 | | - | |
| 372 | + | |
390 | 373 | | |
391 | 374 | | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
392 | 378 | | |
393 | 379 | | |
394 | 380 | | |
| |||
402 | 388 | | |
403 | 389 | | |
404 | 390 | | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | 391 | | |
409 | 392 | | |
410 | 393 | | |
| |||
0 commit comments