diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2012-06-15 10:53:51 -0400 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2012-09-28 11:30:03 -0400 |
commit | 05152a0494449f60031da683e6d4cd60d0882214 (patch) | |
tree | 610e4df7df61da02c2cc3ccc24aeb38896f7509e /drivers/iommu/amd_iommu.c | |
parent | 6efed63bec36e260204a50cfe6878cd36b710ade (diff) |
iommu/amd: Add slab-cache for irq remapping tables
The irq remapping tables for the AMD IOMMU need to be
aligned on a 128 byte boundary. Create a seperate slab-cache
to guarantee this alignment.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'drivers/iommu/amd_iommu.c')
-rw-r--r-- | drivers/iommu/amd_iommu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index 6f514831af1f..b6a8079ff7bb 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c | |||
@@ -95,6 +95,8 @@ struct iommu_cmd { | |||
95 | u32 data[4]; | 95 | u32 data[4]; |
96 | }; | 96 | }; |
97 | 97 | ||
98 | struct kmem_cache *amd_iommu_irq_cache; | ||
99 | |||
98 | static void update_domain(struct protection_domain *domain); | 100 | static void update_domain(struct protection_domain *domain); |
99 | static int __init alloc_passthrough_domain(void); | 101 | static int __init alloc_passthrough_domain(void); |
100 | 102 | ||