File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,7 @@ dmar_alloc_pci_notify_info(struct pci_dev *dev, unsigned long event)
155
155
if (event == BUS_NOTIFY_ADD_DEVICE ) {
156
156
for (tmp = dev ; tmp ; tmp = tmp -> bus -> self ) {
157
157
level -- ;
158
+ info -> path [level ].bus = tmp -> bus -> number ;
158
159
info -> path [level ].device = PCI_SLOT (tmp -> devfn );
159
160
info -> path [level ].function = PCI_FUNC (tmp -> devfn );
160
161
if (pci_is_root_bus (tmp -> bus ))
Original file line number Diff line number Diff line change @@ -56,13 +56,19 @@ struct dmar_drhd_unit {
56
56
struct intel_iommu * iommu ;
57
57
};
58
58
59
+ struct dmar_pci_path {
60
+ u8 bus ;
61
+ u8 device ;
62
+ u8 function ;
63
+ };
64
+
59
65
struct dmar_pci_notify_info {
60
66
struct pci_dev * dev ;
61
67
unsigned long event ;
62
68
int bus ;
63
69
u16 seg ;
64
70
u16 level ;
65
- struct acpi_dmar_pci_path path [];
71
+ struct dmar_pci_path path [];
66
72
} __attribute__((packed ));
67
73
68
74
extern struct rw_semaphore dmar_global_lock ;
You can’t perform that action at this time.
0 commit comments