Commit 0f2ab6a
committed
drm/i915/irq: move i915->irq_lock to display->irq.lock
Observe that i915->irq_lock is no longer used to protect anything
outside of display. Make it a display thing.
This allows us to remove the ugly #define irq_lock irq.lock hack from xe
compat header.
Note that this is slightly more subtle than it first looks. For i915,
there's no functional change here. The lock is moved. However, for xe,
we'll now have *two* locks, xe->irq.lock and display->irq.lock. These
should protect different things, though. Indeed, nesting in the past
would've lead to a deadlock because they were the same lock.
With the i915 references gone, we can make a handful more files
independent of i915_drv.h.
Reviewed-by: Gustavo Sousa <[email protected]>
Link: https://lore.kernel.org/r/6d8d2ce0f34a9c7361a5e2fcf96bb32a34c57e76.1746536745.git.jani.nikula@intel.com
[Jani: Fixed a comment while applying.]
Signed-off-by: Jani Nikula <[email protected]>1 parent 9536d60 commit 0f2ab6a
File tree
15 files changed
+169
-259
lines changed- drivers/gpu/drm
- i915
- display
- xe/compat-i915-headers
15 files changed
+169
-259
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | | - | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
631 | 632 | | |
632 | 633 | | |
633 | 634 | | |
634 | | - | |
635 | 635 | | |
636 | 636 | | |
637 | | - | |
| 637 | + | |
638 | 638 | | |
639 | | - | |
| 639 | + | |
640 | 640 | | |
641 | 641 | | |
642 | 642 | | |
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
646 | | - | |
647 | 646 | | |
648 | 647 | | |
649 | | - | |
| 648 | + | |
650 | 649 | | |
651 | | - | |
| 650 | + | |
652 | 651 | | |
653 | 652 | | |
654 | 653 | | |
655 | 654 | | |
656 | 655 | | |
657 | 656 | | |
658 | | - | |
659 | 657 | | |
660 | | - | |
| 658 | + | |
661 | 659 | | |
662 | | - | |
| 660 | + | |
663 | 661 | | |
664 | 662 | | |
665 | 663 | | |
666 | 664 | | |
667 | 665 | | |
668 | 666 | | |
669 | | - | |
670 | 667 | | |
671 | | - | |
| 668 | + | |
672 | 669 | | |
673 | | - | |
| 670 | + | |
674 | 671 | | |
675 | 672 | | |
676 | 673 | | |
677 | 674 | | |
678 | 675 | | |
679 | 676 | | |
680 | | - | |
681 | 677 | | |
682 | | - | |
| 678 | + | |
683 | 679 | | |
684 | | - | |
| 680 | + | |
685 | 681 | | |
686 | 682 | | |
687 | 683 | | |
688 | 684 | | |
689 | 685 | | |
690 | 686 | | |
691 | | - | |
692 | 687 | | |
693 | | - | |
| 688 | + | |
694 | 689 | | |
695 | | - | |
| 690 | + | |
696 | 691 | | |
697 | 692 | | |
698 | 693 | | |
699 | 694 | | |
700 | 695 | | |
701 | 696 | | |
702 | | - | |
703 | 697 | | |
704 | 698 | | |
705 | | - | |
| 699 | + | |
706 | 700 | | |
707 | | - | |
| 701 | + | |
708 | 702 | | |
709 | 703 | | |
710 | 704 | | |
711 | 705 | | |
712 | 706 | | |
713 | 707 | | |
714 | | - | |
715 | 708 | | |
716 | 709 | | |
717 | | - | |
| 710 | + | |
718 | 711 | | |
719 | | - | |
| 712 | + | |
720 | 713 | | |
721 | 714 | | |
722 | 715 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
| 182 | + | |
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| |||
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
459 | 462 | | |
460 | 463 | | |
461 | 464 | | |
| |||
0 commit comments