]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
swiotlb: store phys address in io_tlb_orig_addr array
authorBecky Bruce <beckyb@kernel.crashing.org>
Mon, 22 Dec 2008 18:26:08 +0000 (10:26 -0800)
committerIngo Molnar <mingo@elte.hu>
Sun, 28 Dec 2008 09:03:12 +0000 (10:03 +0100)
commitbc40ac66988a7721f2a244b6df65f8c13d16479c
tree581396233451acf0b372df0ba75b3d9014e991e9
parent70a7d3cc1308a55104fbe505d76f2aca8a4cf53e
swiotlb: store phys address in io_tlb_orig_addr array

Impact: refactor code, cleanup

When we enable swiotlb for platforms that support HIGHMEM, we
can no longer store the virtual address of the original dma
buffer, because that buffer might not have a permament mapping.

Change the swiotlb code to instead store the physical address of
the original buffer.

Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
lib/swiotlb.c