Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311735
b: refs/heads/master
c: ac1534a
h: refs/heads/master
i:
  311733: 1618255
  311731: f2662fd
  311727: 2495d2d
v: v3
  • Loading branch information
Joerg Roedel committed Jun 25, 2012
1 parent 8d7b3dc commit db1cc27
Show file tree
Hide file tree
Showing 2 changed files with 10 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: f2f12b6fc032c7b1419fd6db84e2868b5f05a878
refs/heads/master: ac1534a55d1e87d59a21c09c570605933b551480
9 changes: 9 additions & 0 deletions trunk/drivers/iommu/amd_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ static struct iommu_ops amd_iommu_ops;
static ATOMIC_NOTIFIER_HEAD(ppr_notifier);
int amd_iommu_max_glx_val = -1;

static struct dma_map_ops amd_iommu_dma_ops;

/*
* general struct to manage commands send to an IOMMU
*/
Expand Down Expand Up @@ -2267,6 +2269,13 @@ static int device_change_notifier(struct notifier_block *nb,
list_add_tail(&dma_domain->list, &iommu_pd_list);
spin_unlock_irqrestore(&iommu_pd_list_lock, flags);

dev_data = get_dev_data(dev);

if (!dev_data->passthrough)
dev->archdata.dma_ops = &amd_iommu_dma_ops;
else
dev->archdata.dma_ops = &nommu_dma_ops;

break;
case BUS_NOTIFY_DEL_DEVICE:

Expand Down

0 comments on commit db1cc27

Please sign in to comment.