Re: RDMA Read: Local protection error
From: Sagi Grimberg <hidden>
Date: 2016-05-29 08:13:50
quoted
Really? It's used all over the stack... So the suggestion is to restrict the allocation does not cross the page boundary (which can easily be done with making MLX4_MR_PAGES_ALIGN be PAGE_SIZE or larger than PAGE_SIZE/2)?We could simply switch to alloc_pages, e.g. something like the patch below:
Patch below? :)
But I have to admit I really like the coherent dma mapping version, for all sane architectures that works much better, although it sucks for some architetures where dma coherent mappings cause a bit of overhead.
But this is specific to mlx4 which supports up 511 pages per MR, mlx5 will need a coherent allocation anyways right (it supports up to 64K pages per MR)? -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html