Commit 4188eac
Hyper-V: pci: arm64: Allow use arch-specific pci sysdata
Currently, if an architecture selects CONFIG_PCI_DOMAINS_GENERIC, the
'sysdata' in bus and bridge will be treated as struct pci_config_window,
which is created by generic ECAM using the data from of or acpi.
However, for a virtualized PCI bus, there might be no enough data in of
or acpi table to create a pci_config_window. This is similar to the case
where CONFIG_PCI_DOMAINS_GENERIC=n, IOW, architectures use their own
structure for sysdata, so no of or apci table lookup is required.
In order to enable Hyper-V's virtual PCI (which doesn't have acpi table
entry) on ARM64 (which selects CONFIG_PCI_DOMAINS_GENERIC), we introduce
arch-specific pci sysdata (similar to the one for x86) for ARM64, and
allow the core PCI code to detect the type of sysdata at the runtime.
The latter is achieved by adding a pci_ops::use_arch_sysdata field.
Signed-off-by: Sunil Muthuswamy <[email protected]>
Signed-off-by: Boqun Feng (Microsoft) <[email protected]>
Signed-off-by: Allen Pais <[email protected]>1 parent 0d0cc65 commit 4188eac
3 files changed
+47
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
25 | 36 | | |
26 | 37 | | |
27 | 38 | | |
| |||
31 | 42 | | |
32 | 43 | | |
33 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
34 | 48 | | |
35 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
36 | 68 | | |
37 | 69 | | |
38 | 70 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
79 | 88 | | |
80 | 89 | | |
81 | 90 | | |
82 | 91 | | |
83 | 92 | | |
84 | 93 | | |
85 | | - | |
| 94 | + | |
86 | 95 | | |
87 | 96 | | |
88 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
734 | 734 | | |
735 | 735 | | |
736 | 736 | | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
737 | 740 | | |
738 | 741 | | |
739 | 742 | | |
| |||
0 commit comments