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.
> 
> Signed-off-by: Bart Van Assche <[email protected]>
> Cc: Greg Kroah-Hartman <[email protected]>
> Cc: Aurelien Jacquiot <[email protected]>
> Cc: Catalin Marinas <[email protected]>
> Cc: Chris Zankel <[email protected]>
> Cc: David Howells <[email protected]>
> Cc: David S. Miller <[email protected]>
> Cc: Fenghua Yu <[email protected]>
> Cc: Geert Uytterhoeven <[email protected]>
> Cc: Geoff Levand <[email protected]>
> Cc: H. Peter Anvin <[email protected]>
> Cc: Haavard Skinnemoen <[email protected]>
> Cc: Hans-Christian Egtvedt <[email protected]>
> Cc: Helge Deller <[email protected]>
> Cc: Ingo Molnar <[email protected]>
> Cc: James E.J. Bottomley <[email protected]>
> Cc: Jesper Nilsson <[email protected]>
> Cc: Joerg Roedel <[email protected]>
> Cc: Jon Mason <[email protected]>
> Cc: Jonas Bonn <[email protected]>
> Cc: Ley Foon Tan <[email protected]>
> Cc: Mark Salter <[email protected]>
> Cc: Max Filippov <[email protected]>
> Cc: Mikael Starvik <[email protected]>
> Cc: Muli Ben-Yehuda <[email protected]>
> Cc: Rich Felker <[email protected]>
> Cc: Russell King <[email protected]>
> Cc: Stafford Horne <[email protected]>
> Cc: Stefan Kristiansson <[email protected]>
> Cc: Thomas Gleixner <[email protected]>
> Cc: Tony Luck <[email protected]>
> Cc: Will Deacon <[email protected]>
> Cc: [email protected]
> Cc: Yoshinori Sato <[email protected]>
> Cc: [email protected]
> Cc: [email protected]
> Cc: [email protected]
> Cc: [email protected]
> Cc: [email protected]
> Cc: [email protected]
> Cc: [email protected]
> Cc: [email protected]
> Cc: [email protected]
> Cc: [email protected]
> Cc: [email protected]
> Cc: [email protected]
> Cc: [email protected]
> Cc: [email protected]
> Cc: [email protected]
> Cc: [email protected]
> Cc: [email protected]
> Cc: [email protected]
> Cc: [email protected]
> Cc: [email protected]
> Cc: [email protected]
> Cc: [email protected]
> Cc: [email protected]
> Cc: [email protected]

That's a crazy cc: list, you should break this up into smaller pieces,
otherwise it's going to bounce...

> diff --git a/include/linux/device.h b/include/linux/device.h
> index 491b4c0ca633..c7cb225d36b0 100644
> --- a/include/linux/device.h
> +++ b/include/linux/device.h
> @@ -885,6 +885,8 @@ struct dev_links_info {
>   * a higher-level representation of the device.
>   */
>  struct device {
> +     const struct dma_map_ops *dma_ops; /* See also get_dma_ops() */
> +
>       struct device           *parent;
>  
>       struct device_private   *p;

Why not put this new pointer down with the other dma fields in this
structure?  Any specific reason it needs to be first?

thanks,

greg k-h
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu

Reply via email to