Thread (25 messages) 25 messages, 2 authors, 2021-05-18

Re: [PATCH v6 05/15] swiotlb: Add a new get_io_tlb_mem getter

From: Christoph Hellwig <hch@lst.de>
Date: 2021-05-10 15:06:02
Also in: intel-gfx, linux-devicetree, linux-iommu, linux-pci, lkml, nouveau, xen-devel

quoted hunk ↗ jump to hunk
+static inline struct io_tlb_mem *get_io_tlb_mem(struct device *dev)
+{
+#ifdef CONFIG_DMA_RESTRICTED_POOL
+	if (dev && dev->dma_io_tlb_mem)
+		return dev->dma_io_tlb_mem;
+#endif /* CONFIG_DMA_RESTRICTED_POOL */
+
+	return io_tlb_default_mem;
Given that we're also looking into a not addressing restricted pool
I'd rather always assign the active pool to dev->dma_io_tlb_mem and
do away with this helper.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help