Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 138906
b: refs/heads/master
c: dfb805e
h: refs/heads/master
v: v3
  • Loading branch information
FUJITA Tomonori authored and Ingo Molnar committed Jan 29, 2009
1 parent 248d151 commit d8e95e9
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: 97d9800de9df9c6e71b00c0a26239c7d7f6a46c4
refs/heads/master: dfb805e831cc5306b14eacd64e0b36d0d973ee0d
6 changes: 0 additions & 6 deletions trunk/arch/ia64/kernel/pci-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,6 @@ int iommu_dma_supported(struct device *dev, u64 mask)
}
EXPORT_SYMBOL(iommu_dma_supported);

static int vtd_dma_mapping_error(struct device *dev, dma_addr_t dma_addr)
{
return 0;
}

void __init pci_iommu_alloc(void)
{
dma_ops = &intel_dma_ops;
Expand All @@ -113,7 +108,6 @@ void __init pci_iommu_alloc(void)
dma_ops->sync_single_for_device = machvec_dma_sync_single;
dma_ops->sync_sg_for_device = machvec_dma_sync_sg;
dma_ops->dma_supported = iommu_dma_supported;
dma_ops->mapping_error = vtd_dma_mapping_error;

/*
* The order of these functions is important for
Expand Down
6 changes: 6 additions & 0 deletions trunk/drivers/pci/intel-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2581,13 +2581,19 @@ int intel_map_sg(struct device *hwdev, struct scatterlist *sglist, int nelems,
return nelems;
}

static int intel_mapping_error(struct device *dev, dma_addr_t dma_addr)
{
return !dma_addr;
}

struct dma_map_ops intel_dma_ops = {
.alloc_coherent = intel_alloc_coherent,
.free_coherent = intel_free_coherent,
.map_sg = intel_map_sg,
.unmap_sg = intel_unmap_sg,
.map_page = intel_map_page,
.unmap_page = intel_unmap_page,
.mapping_error = intel_mapping_error,
};

static inline int iommu_domain_cache_init(void)
Expand Down

0 comments on commit d8e95e9

Please sign in to comment.