Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 358846
b: refs/heads/master
c: f528d98
h: refs/heads/master
v: v3
  • Loading branch information
Joerg Roedel committed Feb 7, 2013
1 parent 8ae15b6 commit a7ca070
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 37a407101e08e444a193837a1e1d4f6f66c8dad4
refs/heads/master: f528d980c17b8714aedc918ba86e058af914d66b
10 changes: 5 additions & 5 deletions trunk/drivers/iommu/amd_iommu_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1876,11 +1876,6 @@ static int amd_iommu_init_dma(void)
struct amd_iommu *iommu;
int ret;

init_device_table_dma();

for_each_iommu(iommu)
iommu_flush_all_caches(iommu);

if (iommu_pass_through)
ret = amd_iommu_init_passthrough();
else
Expand All @@ -1889,6 +1884,11 @@ static int amd_iommu_init_dma(void)
if (ret)
return ret;

init_device_table_dma();

for_each_iommu(iommu)
iommu_flush_all_caches(iommu);

amd_iommu_init_api();

amd_iommu_init_notifier();
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/iommu/dmar.c
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@ int dmar_enable_qi(struct intel_iommu *iommu)

qi->desc = page_address(desc_page);

qi->desc_status = kzalloc(QI_LENGTH * sizeof(int), GFP_ATOMIC);
qi->desc_status = kmalloc(QI_LENGTH * sizeof(int), GFP_ATOMIC);
if (!qi->desc_status) {
free_page((unsigned long) qi->desc);
kfree(qi);
Expand Down

0 comments on commit a7ca070

Please sign in to comment.