diff options
author | Christoph Hellwig <[email protected]> | 2018-04-09 11:15:17 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2018-04-09 18:20:09 +0200 |
commit | 66bdb1478fd1a66d5b8b81e4e28e0ed3df63ed37 (patch) | |
tree | 1e561dbd5fc4f7c4cfa12786328fc8dbbffac236 /scripts/gcc-plugins/gcc-generate-rtl-pass.h | |
parent | 9a3b7e5e65c4b4d332df5f607c0838c3fb918673 (diff) |
swiotlb: Use dma_direct_supported() for swiotlb_ops
swiotlb_alloc() calls dma_direct_alloc(), which can satisfy lower than 32-bit
DMA mask requests using GFP_DMA if the architecture supports it. Various
x86 drivers rely on that, so we need to support that. At the same time
the whole kernel expects a 32-bit DMA mask to just work, so the other magic
in swiotlb_dma_supported() isn't actually needed either.
Reported-by: Dominik Brodowski <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Fixes: 6e4bf5867783 ("x86/dma: Use generic swiotlb_ops")
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-rtl-pass.h')
0 files changed, 0 insertions, 0 deletions