swiotlb: remove dma_mark_clean
authorChristoph Hellwig <hch@lst.de>
Thu, 6 Dec 2018 15:06:04 +0000 (07:06 -0800)
committerChristoph Hellwig <hch@lst.de>
Thu, 13 Dec 2018 20:06:14 +0000 (21:06 +0100)
commit68c608345cc569bcfa1c1b2add4c00c343ecf933
tree87bded168f1a45c71ac669f5a316663ac5ce3ed8
parentb907e20508d02462a50c2841da0a5e3883fdab39
swiotlb: remove dma_mark_clean

Instead of providing a special dma_mark_clean hook just for ia64, switch
ia64 to use the normal arch_sync_dma_for_cpu hooks instead.

This means that we now also set the PG_arch_1 bit for pages in the
swiotlb buffer, which isn't stricly needed as we will never execute code
out of the swiotlb buffer, but otherwise harmless.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Tested-by: Jesper Dangaard Brouer <brouer@redhat.com>
Tested-by: Tony Luck <tony.luck@intel.com>
arch/ia64/Kconfig
arch/ia64/kernel/dma-mapping.c
arch/ia64/mm/init.c
drivers/xen/swiotlb-xen.c
include/linux/dma-direct.h
kernel/dma/swiotlb.c