Re: [PATCH v4 5/5] dma-buf: Clarify that dma-buf sg lists are page aligned

2020-10-15 Thread Christian König
Am 15.10.20 um 18:03 schrieb Daniel Vetter: On Wed, Oct 14, 2020 at 09:16:01AM -0700, Jianxin Xiong wrote: The dma-buf API have been used under the assumption that the sg lists returned from dma_buf_map_attachment() are fully page aligned. Lots of stuff can break otherwise all over the place.

Re: [PATCH v4 5/5] dma-buf: Clarify that dma-buf sg lists are page aligned

2020-10-15 Thread Daniel Vetter
On Wed, Oct 14, 2020 at 09:16:01AM -0700, Jianxin Xiong wrote: > The dma-buf API have been used under the assumption that the sg lists > returned from dma_buf_map_attachment() are fully page aligned. Lots of > stuff can break otherwise all over the place. Clarify this in the > documentation and

[PATCH v4 5/5] dma-buf: Clarify that dma-buf sg lists are page aligned

2020-10-14 Thread Jianxin Xiong
The dma-buf API have been used under the assumption that the sg lists returned from dma_buf_map_attachment() are fully page aligned. Lots of stuff can break otherwise all over the place. Clarify this in the documentation and add a check when DMA API debug is enabled. Signed-off-by: Jianxin Xiong