diff options
author | Suresh Siddha <suresh.b.siddha@intel.com> | 2008-07-10 14:16:36 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-12 02:44:47 -0400 |
commit | c42d9f32443397aed2d37d37df161392e6a5862f (patch) | |
tree | 564126849bb2e31d2cfb719c3b03457a597733d2 /drivers/pci/intel-iommu.h | |
parent | e61d98d8dad0048619bb138b0ff996422ffae53b (diff) |
x64, x2apic/intr-remap: fix the need for sequential array allocation of iommus
Clean up the intel-iommu code related to deferred iommu flush logic. There is
no need to allocate all the iommu's as a sequential array.
This will be used later in the interrupt-remapping patch series to
allocate iommu much early and individually for each device remapping
hardware unit.
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: akpm@linux-foundation.org
Cc: arjan@linux.intel.com
Cc: andi@firstfloor.org
Cc: ebiederm@xmission.com
Cc: jbarnes@virtuousgeek.org
Cc: steiner@sgi.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'drivers/pci/intel-iommu.h')
-rw-r--r-- | drivers/pci/intel-iommu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/intel-iommu.h b/drivers/pci/intel-iommu.h index 9e5e98c76c05..75c63f65b3f5 100644 --- a/drivers/pci/intel-iommu.h +++ b/drivers/pci/intel-iommu.h | |||
@@ -182,6 +182,7 @@ struct intel_iommu { | |||
182 | int seg; | 182 | int seg; |
183 | u32 gcmd; /* Holds TE, EAFL. Don't need SRTP, SFL, WBF */ | 183 | u32 gcmd; /* Holds TE, EAFL. Don't need SRTP, SFL, WBF */ |
184 | spinlock_t register_lock; /* protect register handling */ | 184 | spinlock_t register_lock; /* protect register handling */ |
185 | int seq_id; /* sequence id of the iommu */ | ||
185 | 186 | ||
186 | #ifdef CONFIG_DMAR | 187 | #ifdef CONFIG_DMAR |
187 | unsigned long *domain_ids; /* bitmap of domains */ | 188 | unsigned long *domain_ids; /* bitmap of domains */ |
@@ -198,8 +199,7 @@ struct intel_iommu { | |||
198 | 199 | ||
199 | extern struct dmar_drhd_unit * dmar_find_matched_drhd_unit(struct pci_dev *dev); | 200 | extern struct dmar_drhd_unit * dmar_find_matched_drhd_unit(struct pci_dev *dev); |
200 | 201 | ||
201 | extern struct intel_iommu *alloc_iommu(struct intel_iommu *iommu, | 202 | extern struct intel_iommu *alloc_iommu(struct dmar_drhd_unit *drhd); |
202 | struct dmar_drhd_unit *drhd); | ||
203 | extern void free_iommu(struct intel_iommu *iommu); | 203 | extern void free_iommu(struct intel_iommu *iommu); |
204 | 204 | ||
205 | #endif | 205 | #endif |