linux-stable/kernel/dma
Christoph Hellwig 4a54d16f61 dma-mapping: truncate dma masks to what dma_addr_t can hold
The dma masks in struct device are always 64-bits wide.  But for builds
using a 32-bit dma_addr_t we need to ensure we don't store an
unsupportable value.  Before Linux 5.0 this was handled at least by
the ARM dma mapping code by never allowing to set a larger dma_mask,
but these days we allow the driver to just set the largest supported
value and never fall back to a smaller one.  Ensure this always works
by truncating the value.

Fixes: 9eb9e96e97 ("Documentation/DMA-API-HOWTO: update dma_mask sections")
Signed-off-by: Christoph Hellwig <hch@lst.de>
2019-06-25 07:54:06 +02:00
..
coherent.c dma-mapping: remove the DMA_MEMORY_EXCLUSIVE flag 2019-02-20 07:27:00 -07:00
contiguous.c dma-contiguous: use fallback alloc_pages for single pages 2019-06-03 16:00:07 +02:00
debug.c dma/debug: Simplify stracktrace retrieval 2019-04-29 12:37:50 +02:00
direct.c dma-direct: provide generic support for uncached kernel segments 2019-06-03 16:00:08 +02:00
dummy.c dma-mapping: factor out dummy DMA ops 2018-12-13 21:06:12 +01:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile dma-mapping: improve selection of dma_declare_coherent availability 2019-02-20 07:26:35 -07:00
mapping.c dma-mapping: truncate dma masks to what dma_addr_t can hold 2019-06-25 07:54:06 +02:00
remap.c dma-remap: Avoid de-referencing NULL atomic_pool 2019-06-14 14:30:21 +02:00
swiotlb.c treewide: Add SPDX license identifier for missed files 2019-05-21 10:50:45 +02:00
virt.c dma-mapping: zero memory returned from dma_alloc_* 2018-12-20 08:13:52 +01:00