]> git.karo-electronics.de Git - mv-sheeva.git/commit
swiotlb: add support for systems with highmem
authorBecky Bruce <beckyb@kernel.crashing.org>
Mon, 22 Dec 2008 18:26:09 +0000 (10:26 -0800)
committerIngo Molnar <mingo@elte.hu>
Sun, 28 Dec 2008 09:06:47 +0000 (10:06 +0100)
commitfb05a37929e0cd99016b4f5e5a5ef077fb10a947
tree154b9d0d3b984a03480f54d00f82f56fb3407d2f
parentbc40ac66988a7721f2a244b6df65f8c13d16479c
swiotlb: add support for systems with highmem

Impact: extend code for highmem - existing users unaffected

On highmem systems, the original dma buffer might not
have a virtual mapping - we need to kmap it in to perform
the bounce.  Extract the code that does the actual
copy into a function that does the kmap if highmem
is enabled, and default to the normal swiotlb memcpy
if not.

[ ported by Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> ]

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