Re: [PATCH 1/2] [media] vb2-memops: Fix over allocation of frame vectors

2016-03-04 Thread Jan Kara
On Thu 03-03-16 20:12:48, Ricardo Ribalda Delgado wrote: > On page unaligned frames, create_framevec forces get_vaddr_frames to > allocate an extra page at the end of the buffer. Under some > circumstances, this leads to -EINVAL on VIDIOC_QBUF. > > E.g: > We have vm_a that vm_area that goes from

Re: [PATCH 1/2] [media] vb2-memops: Fix over allocation of frame vectors

2016-03-04 Thread Jan Kara
On Thu 03-03-16 20:12:48, Ricardo Ribalda Delgado wrote: > On page unaligned frames, create_framevec forces get_vaddr_frames to > allocate an extra page at the end of the buffer. Under some > circumstances, this leads to -EINVAL on VIDIOC_QBUF. > > E.g: > We have vm_a that vm_area that goes from

Re: [PATCH 1/2] [media] vb2-memops: Fix over allocation of frame vectors

2016-03-04 Thread Marek Szyprowski
Hello, On 2016-03-03 20:12, Ricardo Ribalda Delgado wrote: On page unaligned frames, create_framevec forces get_vaddr_frames to allocate an extra page at the end of the buffer. Under some circumstances, this leads to -EINVAL on VIDIOC_QBUF. E.g: We have vm_a that vm_area that goes from 0x1000

Re: [PATCH 1/2] [media] vb2-memops: Fix over allocation of frame vectors

2016-03-04 Thread Marek Szyprowski
Hello, On 2016-03-03 20:12, Ricardo Ribalda Delgado wrote: On page unaligned frames, create_framevec forces get_vaddr_frames to allocate an extra page at the end of the buffer. Under some circumstances, this leads to -EINVAL on VIDIOC_QBUF. E.g: We have vm_a that vm_area that goes from 0x1000

[PATCH 1/2] [media] vb2-memops: Fix over allocation of frame vectors

2016-03-03 Thread Ricardo Ribalda Delgado
On page unaligned frames, create_framevec forces get_vaddr_frames to allocate an extra page at the end of the buffer. Under some circumstances, this leads to -EINVAL on VIDIOC_QBUF. E.g: We have vm_a that vm_area that goes from 0x1000 to 0x3000. And a frame that goes from 0x1800 to 0x2800, i.e. 2

[PATCH 1/2] [media] vb2-memops: Fix over allocation of frame vectors

2016-03-03 Thread Ricardo Ribalda Delgado
On page unaligned frames, create_framevec forces get_vaddr_frames to allocate an extra page at the end of the buffer. Under some circumstances, this leads to -EINVAL on VIDIOC_QBUF. E.g: We have vm_a that vm_area that goes from 0x1000 to 0x3000. And a frame that goes from 0x1800 to 0x2800, i.e. 2