Commit b37b609
PCI: vmd: Switch to pci_bus_find_emul_domain_nr()
The new common domain number allocator can replace the custom allocator
in VMD.
Beyond some code reuse benefits it does close a potential race whereby
vmd_find_free_domain() collides with new PCI buses coming online with a
conflicting domain number. Such a race has not been observed in practice,
hence not tagging this change as a fix.
As VMD uses pci_create_root_bus() rather than pci_alloc_host_bridge() +
pci_scan_root_bus_bridge() it has no chance to set ->domain_nr in the
bridge so needs to manage freeing the domain number on its own.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Szymon Durawa <szymon.durawa@linux.intel.com>
Cc: Nirmal Patel <nirmal.patel@linux.intel.com>
Link: https://patch.msgid.link/20251024224622.1470555-3-dan.j.williams@intel.com1 parent bcce8c7 commit b37b609
1 file changed
Lines changed: 17 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
565 | 565 | | |
566 | 566 | | |
567 | 567 | | |
568 | | - | |
569 | | - | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | 568 | | |
585 | 569 | | |
586 | 570 | | |
| |||
865 | 849 | | |
866 | 850 | | |
867 | 851 | | |
868 | | - | |
869 | | - | |
870 | | - | |
871 | | - | |
872 | | - | |
873 | | - | |
874 | | - | |
875 | 852 | | |
876 | 853 | | |
877 | 854 | | |
| |||
897 | 874 | | |
898 | 875 | | |
899 | 876 | | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
900 | 891 | | |
901 | 892 | | |
902 | 893 | | |
| 894 | + | |
903 | 895 | | |
904 | 896 | | |
905 | 897 | | |
| |||
992 | 984 | | |
993 | 985 | | |
994 | 986 | | |
| 987 | + | |
995 | 988 | | |
996 | 989 | | |
997 | 990 | | |
| |||
1057 | 1050 | | |
1058 | 1051 | | |
1059 | 1052 | | |
| 1053 | + | |
1060 | 1054 | | |
1061 | 1055 | | |
1062 | 1056 | | |
| |||
0 commit comments