Thread (42 messages) 42 messages, 5 authors, 2018-01-16

[PATCH 08/22] swiotlb: wire up ->dma_supported in swiotlb_dma_ops

From: robin.murphy@arm.com (Robin Murphy)
Date: 2018-01-10 12:16:21
Also in: linux-arch, linux-iommu, linux-mips, linuxppc-dev, lkml

On 10/01/18 08:09, Christoph Hellwig wrote:
To properly reject too small DMA masks based on the addressability of the
bounce buffer.
I reckon this is self-evident enough that it should simply be squashed 
into the previous patch.

Robin.
quoted hunk ↗ jump to hunk
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
  lib/swiotlb.c | 1 +
  1 file changed, 1 insertion(+)
diff --git a/lib/swiotlb.c b/lib/swiotlb.c
index 0fae2f45c3c0..539fd1099ba9 100644
--- a/lib/swiotlb.c
+++ b/lib/swiotlb.c
@@ -1128,5 +1128,6 @@ const struct dma_map_ops swiotlb_dma_ops = {
  	.unmap_sg		= swiotlb_unmap_sg_attrs,
  	.map_page		= swiotlb_map_page,
  	.unmap_page		= swiotlb_unmap_page,
+	.dma_supported		= swiotlb_dma_supported,
  };
  #endif /* CONFIG_DMA_DIRECT_OPS */
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help