Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331524
b: refs/heads/master
c: 33f28c5
h: refs/heads/master
v: v3
  • Loading branch information
Joerg Roedel committed Sep 28, 2012
1 parent 72ed3df commit 1b503bc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 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: eb1eb7ae65a9d32f6c16a90419caf01221f94734
refs/heads/master: 33f28c59e18d83fd2aeef258d211be66b9b80eb3
19 changes: 18 additions & 1 deletion trunk/drivers/iommu/amd_iommu_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1381,7 +1381,7 @@ static int __init init_memory_definitions(struct acpi_table_header *table)
* Init the device table to not allow DMA access for devices and
* suppress all page faults
*/
static void init_device_table(void)
static void init_device_table_dma(void)
{
u32 devid;

Expand All @@ -1391,6 +1391,17 @@ static void init_device_table(void)
}
}

static void init_device_table(void)
{
u32 devid;

if (!amd_iommu_irq_remap)
return;

for (devid = 0; devid <= amd_iommu_last_bdf; ++devid)
set_dev_entry_bit(devid, DEV_ENTRY_IRQ_TBL_EN);
}

static void iommu_init_flags(struct amd_iommu *iommu)
{
iommu->acpi_flags & IVHD_FLAG_HT_TUN_EN_MASK ?
Expand Down Expand Up @@ -1781,8 +1792,14 @@ static bool detect_ivrs(void)

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 Down

0 comments on commit 1b503bc

Please sign in to comment.