Re: [PATCH v2] dmaengine: care sd_dma_address/len indmaengine_prep_slave_single()

From: Russell King - ARM Linux
Date: Wed Feb 01 2012 - 13:22:21 EST

On Mon, Jan 30, 2012 at 05:13:30PM -0800, Kuninori Morimoto wrote:
> + sg_init_table(&sg, 1);
> + sg_set_page(&sg, pfn_to_page(PFN_DOWN(buf)),
> + len, offset_in_page(buf));

There's not much point setting this - the page/virtual address should
not be used by DMA engines as that may not reflect what's being requested
(especially if there's an IOMMU in the way.)
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at