xtensa: support DMA to high memory
authorMax Filippov <jcmvbkbc@gmail.com>
Thu, 8 Oct 2015 23:44:23 +0000 (02:44 +0300)
committerMax Filippov <jcmvbkbc@gmail.com>
Sun, 8 Nov 2015 22:25:37 +0000 (01:25 +0300)
commitc7ca9fe17b84719ef2edbe854e1b0cac04a91e2f
treeaf1d9766ac0e0c5749cae43412245cf0e918ae31
parente2b31f75406ed4ae700f5d954603f8119d9e94ca
xtensa: support DMA to high memory

- don't bugcheck if high memory page is passed to xtensa_map_page;
- turn empty dcache flush macros into functions so that they could be
  passed as function parameters;
- use kmap_atomic to map high memory pages for cache invalidation/
  flushing performed by xtensa_sync_single_for_{cpu,device}.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/include/asm/cacheflush.h
arch/xtensa/kernel/pci-dma.c