Bugfix to commit 18dabf473e15850c0dbc8ff13ac1e2806d542c15
PATCH 1/1 Bugfix to commit 18dabf473e15850c0dbc8ff13ac1e2806d542c15
From: Grant Likely <[email protected]>
Fixup for commit 18dabf473e15850c0dbc8ff13ac1e2806d542c15. Changes to dma_map_sg where done in asm-x86/dma-mapping_32.h, but were not mirrored in include/asm-powerpc/dma-mapping.h
---
Linus, I cannot build an arch/powerpc kernel without this patch.
Cheers,
g.
include/asm-powerpc/dma-mapping.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
include/asm-powerpc/dma-mapping.h +2 -2
@@ -285,9 +285,9 @@ dma_map_sg(struct device *dev, struct scatterlist *sgl, int nents,BUG_ON (direction ==DMA_NONE );for_each_sg (sgl, sg, nents, i) { -BUG_ON (!sg->page); +BUG_ON (!sg_page (sg));__dma_sync_page (sg->page, sg->offset, sg->length, direction); - sg->dma_address =page_to_bus (sg->page) + sg->offset; + sg->dma_address =sg_phys (sg); }return nents;
Quoted 10 lines · On Tue, 23 Oct 2007 09:20:25 -0600 Grant Likely <[email protected]>…
From: Grant Likely <[email protected]>
Fixup for commit
18dabf473e15850c0dbc8ff13ac1e2806d542c15. Changes todma_map_sgwhere done inasm-x86/dma-mapping_32.h, but were not mirrored ininclude/asm-powerpc/dma-mapping.hSigned-off-by Grant Likely <[email protected]>---
Linus, I cannot build an
arch/powerpckernel without this patch.
Olof Johansson already sent a patch out for this that had some other fixes in it. I think Jens already applied it to his tree.
josh
Quoted 10 lines · Grant Likely
From: Grant Likely <[email protected]>
Fixup for commit
18dabf473e15850c0dbc8ff13ac1e2806d542c15. Changes todma_map_sgwhere done inasm-x86/dma-mapping_32.h, but were not mirrored ininclude/asm-powerpc/dma-mapping.hSigned-off-by Grant Likely <[email protected]>---
Linus, I cannot build an
arch/powerpckernel without this patch.
Oops, ignore this patch. It's doesn't change all the references, it uses the wrong method for calculating dma_address and 2 other people have already sent the fix for this.
/me puts on a paper bag
g.
Quoted 25 lines
Cheers,
g.include/asm-powerpc/dma-mapping.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)include/asm-powerpc/dma-mapping.h +2
-2@@ -285,9 +285,9 @@ dma_map_sg(struct device *dev, struct scatterlist *sgl, int nents,BUG_ON (direction ==DMA_NONE );for_each_sg (sgl, sg, nents, i) { -BUG_ON (!sg->page); +BUG_ON (!sg_page (sg));__dma_sync_page (sg->page, sg->offset, sg->length, direction); - sg->dma_address =page_to_bus (sg->page) + sg->offset; + sg->dma_address =sg_phys (sg); }return nents;
Signature · 4 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. [email protected] (403) 399-0195