Thread (27 messages) 27 messages, 3 authors, 2018-12-15

Re: [PATCH 3/5] dma-direct: refine dma_direct_alloc zone selection

From: Christoph Hellwig <hch@lst.de>
Date: 2018-09-27 15:30:32
Also in: linux-iommu, linuxppc-dev

On Thu, Sep 27, 2018 at 03:30:20PM +0100, Robin Murphy wrote:
quoted
  +static gfp_t __dma_direct_optimal_gfp_mask(struct device *dev, u64 
dma_mask,
+		u64 *phys_mask)
+{
+	if (force_dma_unencrypted())
+		*phys_mask = __dma_to_phys(dev, dma_mask);
+	else
+		*phys_mask = dma_to_phys(dev, dma_mask);
Maybe make phys_to_dma_direct() take u64 instead of phys_addr_t so we can 
reuse it here?
This is a dma_to_phys and not a phys_to_dma.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help