Commit 4d79a12
drm/xe: Make irq enabled flag atomic
The irq.enabled flag was protected by a spin lock (irq.lock).
By making it atomic we no longer need to wait for the spin lock in
irq handlers. This will become especially useful for MSI-X irq
handlers to prevent lock contention between different interrupts.
Signed-off-by: Ilia Levi <ilia.levi@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241210173506.202150-1-ilia.levi@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>1 parent 3fcf68d commit 4d79a12
3 files changed
Lines changed: 9 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 56 | + | |
68 | 57 | | |
69 | 58 | | |
70 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
| 350 | + | |
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
351 | | - | |
352 | | - | |
353 | | - | |
| 351 | + | |
354 | 352 | | |
355 | | - | |
356 | | - | |
357 | 353 | | |
358 | 354 | | |
359 | 355 | | |
| |||
417 | 413 | | |
418 | 414 | | |
419 | 415 | | |
420 | | - | |
421 | | - | |
422 | | - | |
| 416 | + | |
423 | 417 | | |
424 | | - | |
425 | | - | |
426 | 418 | | |
427 | 419 | | |
428 | 420 | | |
| |||
644 | 636 | | |
645 | 637 | | |
646 | 638 | | |
647 | | - | |
648 | | - | |
649 | | - | |
| 639 | + | |
650 | 640 | | |
651 | | - | |
652 | | - | |
653 | 641 | | |
654 | 642 | | |
655 | 643 | | |
| |||
674 | 662 | | |
675 | 663 | | |
676 | 664 | | |
677 | | - | |
| 665 | + | |
678 | 666 | | |
679 | 667 | | |
680 | | - | |
681 | 668 | | |
682 | 669 | | |
683 | 670 | | |
| |||
724 | 711 | | |
725 | 712 | | |
726 | 713 | | |
727 | | - | |
| 714 | + | |
728 | 715 | | |
729 | 716 | | |
730 | 717 | | |
| |||
744 | 731 | | |
745 | 732 | | |
746 | 733 | | |
747 | | - | |
748 | | - | |
749 | | - | |
| 734 | + | |
750 | 735 | | |
751 | 736 | | |
752 | 737 | | |
| |||
762 | 747 | | |
763 | 748 | | |
764 | 749 | | |
765 | | - | |
| 750 | + | |
766 | 751 | | |
767 | 752 | | |
768 | 753 | | |
| |||
0 commit comments