Re: [PATCH] media: videobuf2-dc: set properly dma_max_segment_size

2015-06-03 Thread Marek Szyprowski
Hello, On 2015-06-03 03:22, Laurent Pinchart wrote: On Monday 01 June 2015 14:14:17 Marek Szyprowski wrote: If device has no DMA max_seg_size set, we assume that there is no limit and it is safe to force it to use DMA_BIT_MASK(32) as max_seg_size to let DMA-mapping API always create contiguous

Re: [PATCH] media: videobuf2-dc: set properly dma_max_segment_size

2015-06-02 Thread Laurent Pinchart
Hi Marek, Thank you for the patch. On Monday 01 June 2015 14:14:17 Marek Szyprowski wrote: If device has no DMA max_seg_size set, we assume that there is no limit and it is safe to force it to use DMA_BIT_MASK(32) as max_seg_size to let DMA-mapping API always create contiguous mappings in DMA

Re: [PATCH] media: videobuf2-dc: set properly dma_max_segment_size

2015-06-02 Thread Laurent Pinchart
Hi Marek, Thank you for the patch. On Monday 01 June 2015 14:14:17 Marek Szyprowski wrote: If device has no DMA max_seg_size set, we assume that there is no limit and it is safe to force it to use DMA_BIT_MASK(32) as max_seg_size to let DMA-mapping API always create contiguous mappings in DMA

[PATCH] media: videobuf2-dc: set properly dma_max_segment_size

2015-06-01 Thread Marek Szyprowski
If device has no DMA max_seg_size set, we assume that there is no limit and it is safe to force it to use DMA_BIT_MASK(32) as max_seg_size to let DMA-mapping API always create contiguous mappings in DMA address space. This is essential for all devices, which use dma-contig videobuf2 memory