Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81344
b: refs/heads/master
c: 110f95c
h: refs/heads/master
v: v3
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Jan 25, 2008
1 parent 7430505 commit ab2ab6b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: 9d5f49283b85d925f17fa07af5e4879465e179d6
refs/heads/master: 110f95c9f082709c5a28a64c00bae819916e8578
8 changes: 6 additions & 2 deletions trunk/arch/powerpc/platforms/cell/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -496,9 +496,10 @@ static void cell_dma_dev_setup(struct device *dev)
struct cbe_iommu *iommu;
struct dev_archdata *archdata = &dev->archdata;

/* If we run without iommu, no need to do anything */
if (get_pci_dma_ops() == &dma_direct_ops)
if (get_pci_dma_ops() == &dma_direct_ops) {
archdata->dma_data = (void *)dma_direct_offset;
return;
}

/* Current implementation uses the first window available in that
* node's iommu. We -might- do something smarter later though it may
Expand Down Expand Up @@ -690,6 +691,9 @@ static int __init cell_iommu_init_disabled(void)

dma_direct_offset += base;

if (dma_direct_offset != 0)
ppc_md.pci_dma_dev_setup = cell_pci_dma_dev_setup;

printk("iommu: disabled, direct DMA offset is 0x%lx\n",
dma_direct_offset);

Expand Down

0 comments on commit ab2ab6b

Please sign in to comment.