OSDN Git Service

dma-mapping: add an arch_dma_supported hook
authorChristoph Hellwig <hch@lst.de>
Sat, 23 Dec 2017 10:01:41 +0000 (11:01 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 15 Jan 2018 08:34:59 +0000 (09:34 +0100)
commitcea9d03c822cf1b8e90cc4fc51be6d248fb5d776
treebb10e17d163c6acca0b72d24abb7e79686a58f64
parent57bf5a8963f80fb3828c46c3e3a5b2dd790e09a7
dma-mapping: add an arch_dma_supported hook

To implement the x86 forbid_dac and iommu_sac_force we want an arch hook
so that it can apply the global options across all dma_map_ops
implementations.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/include/asm/dma-mapping.h
arch/x86/kernel/pci-dma.c
include/linux/dma-mapping.h