powerpc: Fix DMA offset for non-coherent DMA

After Becky's work we can almost have different DMA offsets
between on-chip devices and PCI. Almost because there's a
problem with the non-coherent DMA code that basically ignores
the programmed offset to use the global one for everything.
This fixes it.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
此提交包含在:
Benjamin Herrenschmidt
2008-10-09 17:06:24 +00:00
父節點 1263965f29
當前提交 8aa2659009
共有 2 個檔案被更改,包括 7 行新增3 行删除

查看文件

@@ -203,7 +203,7 @@ __dma_alloc_coherent(size_t size, dma_addr_t *handle, gfp_t gfp)
/*
* Set the "dma handle"
*/
*handle = page_to_bus(page);
*handle = page_to_phys(page);
do {
BUG_ON(!pte_none(*pte));