Skip to content

Commit

Permalink
Merge branch 'amd-iommu/fixes' of git://git.kernel.org/pub/scm/linux/…
Browse files Browse the repository at this point in the history
…kernel/git/joro/linux-2.6-iommu into x86/urgent
  • Loading branch information
Ingo Molnar committed Jul 3, 2009
2 parents c7210e1 + 1bc6f83 commit 22a26e6
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions arch/x86/kernel/amd_iommu_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,8 @@ static u8 * __init alloc_event_buffer(struct amd_iommu *iommu)
if (iommu->evt_buf == NULL)
return NULL;

iommu->evt_buf_size = EVT_BUFFER_SIZE;

return iommu->evt_buf;
}

Expand Down Expand Up @@ -691,6 +693,7 @@ static void __init init_iommu_from_acpi(struct amd_iommu *iommu,

devid = e->devid;
devid_to = e->ext >> 8;
set_dev_entry_from_acpi(iommu, devid , e->flags, 0);
set_dev_entry_from_acpi(iommu, devid_to, e->flags, 0);
amd_iommu_alias_table[devid] = devid_to;
break;
Expand Down Expand Up @@ -749,11 +752,13 @@ static void __init init_iommu_from_acpi(struct amd_iommu *iommu,

devid = e->devid;
for (dev_i = devid_start; dev_i <= devid; ++dev_i) {
if (alias)
if (alias) {
amd_iommu_alias_table[dev_i] = devid_to;
set_dev_entry_from_acpi(iommu,
amd_iommu_alias_table[dev_i],
flags, ext_flags);
set_dev_entry_from_acpi(iommu,
devid_to, flags, ext_flags);
}
set_dev_entry_from_acpi(iommu, dev_i,
flags, ext_flags);
}
break;
default:
Expand Down

0 comments on commit 22a26e6

Please sign in to comment.