diff --git a/[refs] b/[refs] index 653a7eaa4f48..d42b1adbd62b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9d5f49283b85d925f17fa07af5e4879465e179d6 +refs/heads/master: 110f95c9f082709c5a28a64c00bae819916e8578 diff --git a/trunk/arch/powerpc/platforms/cell/iommu.c b/trunk/arch/powerpc/platforms/cell/iommu.c index bceb5e13da5c..9682b63dfc78 100644 --- a/trunk/arch/powerpc/platforms/cell/iommu.c +++ b/trunk/arch/powerpc/platforms/cell/iommu.c @@ -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 @@ -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);