[PATCH] swiotlb: support syncing DMA_BIDIRECTIONAL mappings
authorJohn W. Linville <linville@tuxdriver.com>
Thu, 29 Sep 2005 21:44:57 +0000 (14:44 -0700)
committerTony Luck <tony.luck@intel.com>
Thu, 29 Sep 2005 21:44:57 +0000 (14:44 -0700)
commitde69e0f0b38a467d881e138a302b005bf31c8400
treecce186614aafa090de860c65855c90600b300c56
parent878a97cfd7014b01285db09f52f9881ffe4cb608
[PATCH] swiotlb: support syncing DMA_BIDIRECTIONAL mappings

The current implementation of sync_single in swiotlb.c chokes on
DMA_BIDIRECTIONAL mappings. This patch adds the capability to sync
those mappings, and optimizes other syncs by accounting for the
sync target (i.e. cpu or device) in addition to the DMA direction of
the mapping.

Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
lib/swiotlb.c