On 09/17/2015 02:42 AM, Sagi Grimberg wrote:
+static int
+mlx5_alloc_priv_descs(struct ib_device *device,
+ struct mlx5_ib_mr *mr,
+ int ndescs,
+ int desc_size)
+{
+ int size = ndescs * desc_size;
+
+ mr->descs = dma_alloc_coherent(device->dma_device, size,
+ &mr->desc_map, GFP_KERNEL);
+ if (!mr->descs)
+ return -ENOMEM;
+
+ return 0;
+}
Would it be possible to clarify the choice for coherent memory ? Would
performance be better if non-coherent memory would be used and if
memory would be synced after initialization of desc_map has finished ?
Bart.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html