Thread (9 messages) flat view 9 messages, 2 authors, 2017-01-12

Re: [PATCH 2/9] Move dma_ops from archdata into struct device

From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date: 2017-01-11 06:47:44
Also in: linux-alpha, linux-iommu, linux-mips, linux-rdma

On Tue, Jan 10, 2017 at 04:56:41PM -0800, Bart Van Assche wrote:
Several RDMA drivers, e.g. drivers/infiniband/hw/qib, use the CPU to
transfer data between memory and PCIe adapter. Because of performance
reasons it is important that the CPU cache is not flushed when such
drivers transfer data. Make this possible by allowing these drivers to
override the dma_map_ops pointer. Additionally, introduce the function
set_dma_ops() that will be used by a later patch in this series.
When you say things like "additionally", that's a huge flag that this
needs to be split up into multiple patches.  No need to add
set_dma_ops() here in this patch.

And I'd argue that it should be dma_ops_set(), and dma_ops_get(), just
to keep the namespace sane, but that's probably a different set of
patches...

thanks,

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help