Re: [PATCH v2] [media] media: change pipeline validation return error

2016-03-30 Thread Sakari Ailus
Hi Helen, On Tue, Mar 29, 2016 at 08:49:47PM -0300, Helen Mae Koike Fornazier wrote: > According to the V4L2 API, the VIDIOC_STREAMON ioctl should return EPIPE > if there is a format mismatch in the pipeline configuration. > > As the .vidioc_streamon in the v4l2_ioctl_ops usually forwards the err

[PATCH v2 1/7] mtd: nand: sunxi: move some ECC related operations to their own functions

2016-03-30 Thread Boris Brezillon
In order to support DMA operations in a clean way we need to extract some of the logic coded in sunxi_nfc_hw_ecc_read/write_page() into their own function. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/sunxi_nand.c | 163 -- 1 file changed, 108 inser

[PATCH v2 2/7] mtd: nand: sunxi: make OOB retrieval optional

2016-03-30 Thread Boris Brezillon
sunxi_nfc_hw_ecc_read_chunk() always retrieves the ECC and protected free bytes, no matter if the user really asked for it or not. This can take a non negligible amount of time, especially on NAND chips exposing large OOB areas (> 1KB). Make it optional. Signed-off-by: Boris Brezillon --- driver

[PATCH v2 3/7] mtd: nand: sunxi: make cur_off parameter optional in extra oob helpers

2016-03-30 Thread Boris Brezillon
Allow for NULL cur_offs values when the caller does not know where the NAND page register pointer point to. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/sunxi_nand.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/nand/sunxi_nand.c b/drivers/mtd/

[PATCH v2 6/7] mtd: nand: sunxi: add support for DMA assisted operations

2016-03-30 Thread Boris Brezillon
The sunxi NAND controller is able to pipeline ECC operations only when operated in DMA mode, which improves a lot NAND throughput while keeping CPU usage low. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/sunxi_nand.c | 324 +- 1 file changed, 320 in

[PATCH v2 5/7] mtd: provide helper to prepare buffers for DMA operations

2016-03-30 Thread Boris Brezillon
Some NAND controller drivers are making use of DMA to transfer data from the controller to the buffer passed by the MTD user. Provide a generic mtd_map/unmap_buf() implementation to avoid open coded (and sometime erroneous) implementations. Signed-off-by: Boris Brezillon --- drivers/mtd/mtdcore.

[PATCH v2 4/7] scatterlist: add sg_alloc_table_from_buf() helper

2016-03-30 Thread Boris Brezillon
sg_alloc_table_from_buf() provides an easy solution to create an sg_table from a virtual address pointer. This function takes care of dealing with vmallocated buffers, buffer alignment, or DMA engine limitations (maximum DMA transfer size). Signed-off-by: Boris Brezillon --- include/linux/scatte

[PATCH v2 7/7] mtd: nand: sunxi: update DT bindings

2016-03-30 Thread Boris Brezillon
Document dmas and dma-names properties. Signed-off-by: Boris Brezillon Acked-by: Rob Herring --- Documentation/devicetree/bindings/mtd/sunxi-nand.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/sunxi-nand.txt b/Documentation/devicetree/bindings

[PATCH v2 0/7] mtd: nand: sunxi: add support for DMA operations

2016-03-30 Thread Boris Brezillon
Hello, This patch series aims at adding support for DMA assisted operations to the sunxi_nand driver. The first 3 patches are just reworks in the existing driver preparing things for DMA ->read/write_page() operations. Those ones are mainly re-arranging existing functions, and moving some code in

Re: [PATCH v2 4/7] scatterlist: add sg_alloc_table_from_buf() helper

2016-03-30 Thread Mark Brown
On Wed, Mar 30, 2016 at 05:39:51PM +0200, Boris Brezillon wrote: > sg_alloc_table_from_buf() provides an easy solution to create an sg_table > from a virtual address pointer. This function takes care of dealing with > vmallocated buffers, buffer alignment, or DMA engine limitations (maximum > DMA t

Re: [PATCH v2 4/7] scatterlist: add sg_alloc_table_from_buf() helper

2016-03-30 Thread Boris Brezillon
On Wed, 30 Mar 2016 09:51:43 -0700 Mark Brown wrote: > On Wed, Mar 30, 2016 at 05:39:51PM +0200, Boris Brezillon wrote: > > sg_alloc_table_from_buf() provides an easy solution to create an sg_table > > from a virtual address pointer. This function takes care of dealing with > > vmallocated buffer

Re: [PATCH v2 4/7] scatterlist: add sg_alloc_table_from_buf() helper

2016-03-30 Thread Mark Brown
On Wed, Mar 30, 2016 at 08:18:31PM +0200, Boris Brezillon wrote: > BTW, do you see other things that should be added in sg_constraints? It looked to do everything SPI does which is everything I know about. signature.asc Description: PGP signature

[PATCH v3 2/2] [media] DocBook: update error code in videoc-streamon

2016-03-30 Thread Helen Mae Koike Fornazier
Add description of ENOLINK error Signed-off-by: Helen Mae Koike Fornazier --- The patch set is based on 'media/master' branch and available at https://github.com/helen-fornazier/opw-staging media/devel Changes since v2: * this is a new commit in the set Documentation/DocBook/m

[PATCH v3 1/2] [media] media: change pipeline validation return error

2016-03-30 Thread Helen Mae Koike Fornazier
According to the V4L2 API, the VIDIOC_STREAMON ioctl should return EPIPE if there is a format mismatch in the pipeline configuration. As the .vidioc_streamon in the v4l2_ioctl_ops usually forwards the error caused by the v4l2_subdev_link_validate_default (if it is in use), it should return -EPIPE

[PATCH v3 0/2] media: updating error codes on streamon

2016-03-30 Thread Helen Mae Koike Fornazier
Fix error code on streamon The patch set is based on 'media/master' branch and available at https://github.com/helen-fornazier/opw-staging media/devel Changes since v2: [media] media: change pipeline validation return error * Added Ack by Sakari Updated the DocBook in the co

Re: [PATCH v3 2/2] [media] DocBook: update error code in videoc-streamon

2016-03-30 Thread Sakari Ailus
Hi Helen, Helen Mae Koike Fornazier wrote: Add description of ENOLINK error Signed-off-by: Helen Mae Koike Fornazier --- The patch set is based on 'media/master' branch and available at https://github.com/helen-fornazier/opw-staging media/devel Changes since v2: * this is a

[PATCH v4 2/2] [media] DocBook: update error code in videoc-streamon

2016-03-30 Thread Helen Mae Koike Fornazier
Add description of ENOLINK error Signed-off-by: Helen Mae Koike Fornazier Acked-by: Sakari Ailus --- Changes since v3: * ..."pipeline configuration"... to ..."pipeline link configuration"... * Added Acked-by The patch is based on 'media/master' branch and available at h

[PATCH v4 0/2] media: updating error codes on streamon

2016-03-30 Thread Helen Mae Koike Fornazier
Fix error code on streamon Changes since v3: [media] media: change pipeline validation return error * Nothing has changed [media] DocBook: update error code in videoc-streamon * Added "link" word * Added Ack-by The patch set is bas

[PATCH v4 1/2] [media] media: change pipeline validation return error

2016-03-30 Thread Helen Mae Koike Fornazier
According to the V4L2 API, the VIDIOC_STREAMON ioctl should return EPIPE if there is a format mismatch in the pipeline configuration. As the .vidioc_streamon in the v4l2_ioctl_ops usually forwards the error caused by the v4l2_subdev_link_validate_default (if it is in use), it should return -EPIPE

cron job: media_tree daily build: ERRORS

2016-03-30 Thread Hans Verkuil
This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below. Results of the daily build of media_tree: date: Thu Mar 31 04:00:18 CEST 2016 git branch: test git hash: d3f5193019443ef8e556b64f3cd359773c4d377b gcc versi

Re: [v2,4/7] scatterlist: add sg_alloc_table_from_buf() helper

2016-03-30 Thread Vignesh R
Hi, On 03/30/2016 09:09 PM, Boris BREZILLON wrote: [...] > +int sg_alloc_table_from_buf(struct sg_table *sgt, const void *buf, size_t > len, > + const struct sg_constraints *constraints, > + gfp_t gfp_mask) > +{ > + struct sg_constraints cons