Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99630
b: refs/heads/master
c: 8736197
h: refs/heads/master
v: v3
  • Loading branch information
Joerg Roedel authored and Ingo Molnar committed Jun 27, 2008
1 parent 63ad62c commit fcaa8b1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c6da992e16a9d261eb9dfeff14e9777c3e0468c5
refs/heads/master: 8736197ba8e40d030eec0ab7a9e9f2be41810c4e
16 changes: 16 additions & 0 deletions trunk/arch/x86/kernel/amd_iommu_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,16 @@ static int __init init_memory_definitions(struct acpi_table_header *table)
return 0;
}

static void __init enable_iommus(void)
{
struct amd_iommu *iommu;

list_for_each_entry(iommu, &amd_iommu_list, list) {
iommu_set_exclusion_range(iommu);
iommu_enable(iommu);
}
}

int __init amd_iommu_init(void)
{
int i, ret = 0;
Expand Down Expand Up @@ -731,6 +741,12 @@ int __init amd_iommu_init(void)
if (acpi_table_parse("IVRS", init_memory_definitions) != 0)
goto free;

ret = amd_iommu_init_dma_ops();
if (ret)
goto free;

enable_iommus();

printk(KERN_INFO "AMD IOMMU: aperture size is %d MB\n",
(1 << (amd_iommu_aperture_order-20)));

Expand Down

0 comments on commit fcaa8b1

Please sign in to comment.