[PATCHv8 5/6] dmaengine: rcar-dmac: group slave configuration

2016-06-07 Thread Niklas Söderlund
Group slave address and transfer size in own structs for source and destination. This is in preparation for hooking up the dma-mapping API to the slave addresses. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> Reviewed-by: Laurent Pinchart <laur

[PATCHv8 6/6] dmaengine: rcar-dmac: add iommu support for slave transfers

2016-06-07 Thread Niklas Söderlund
Enable slave transfers to a device behind a IPMMU by mapping the slave addresses using the dma-mapping API. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/dma/sh/rcar-dmac.c | 82 +- 1 file changed, 74 inse

[PATCHv8 1/6] dma-mapping: add {map,unmap}_resource to dma_map_ops

2016-06-07 Thread Niklas Söderlund
Add methods to handle mapping of device resources from a physical address. This is needed for example to be able to map MMIO FIFO registers to a IOMMU. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinch...@ideason

[PATCHv8 0/6] dmaengine: rcar-dmac: add iommu support for slave transfers

2016-06-07 Thread Niklas Söderlund
C - Switch to use the dma-mapping api instead of using the iommu_map() directly. Turns out the dma-mapper is much smarter then me... - Dropped the patch to expose domain->ops->pgsize_bitmap from within the iommu api. - Dropped the patch showing how I tested the RFC. Niklas Söderlund (6)

[PATCHv8 4/6] arm: dma-mapping: add {map,unmap}_resource for iommu ops

2016-06-07 Thread Niklas Söderlund
Add methods to map/unmap device resources addresses for dma_map_ops that are IOMMU aware. This is needed to map a device MMIO register from a physical address. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinch...@ideason

[PATCHv8 3/6] dma-mapping: add dma_{map,unmap}_resource

2016-06-07 Thread Niklas Söderlund
Map/Unmap a device MMIO resource from a physical address. If no dma_map_ops method is available the operation is a no-op. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- Documentation/DMA-API.txt | 22 +- include/linux/dma-mapping.

[PATCH 0/8] rcar-vin: Enable Gen3 support

2016-05-25 Thread Niklas Söderlund
From: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> Hi, This series enable Gen3 support for the rcar-vin driver. It is based on top of the media_tree: git://linuxtv.org/media_tree.git master And it depends on the first rcar-vin patch at which I hope soon will enter the medi

[PATCH 1/8] media: rcar-vin: pad-aware driver initialisation

2016-05-25 Thread Niklas Söderlund
ewrite] Signed-off-by: Ulrich Hecht <ulrich.hecht+rene...@gmail.com> Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/rcar-v4l2.c | 16 drivers/media/platform/rcar-vin/rcar-vin.h | 2 ++ 2 files changed, 18 inser

[PATCH 4/8] [media] rcar-vin: allow subdevices to be bound late

2016-05-25 Thread Niklas Söderlund
From: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> This is done to prepare for Gen3 support where there are more than one subdevice and the usage of them are complex. There is a need to be able to change which subdevices are involved in capturing during runtime (but not

[PATCH 7/8] [media] rcar-vin: enable Gen3

2016-05-25 Thread Niklas Söderlund
From: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/Kconfig | 2 +- drivers/media/platform/rcar-vin/rcar-core.c | 1 + 2 files changed, 2 insertions(+), 1 delet

[PATCH 2/8] media: rcar_vin: Use correct pad number in try_fmt

2016-05-25 Thread Niklas Söderlund
lor <rob.tay...@codethink.co.uk> Acked-by: Hans Verkuil <hans.verk...@cisco.com> [uli: adapted to rcar-vin rewrite] Signed-off-by: Ulrich Hecht <ulrich.hecht+rene...@gmail.com> Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vi

[PATCH 6/8] [media] rcar-vin: add shared subdevice groups

2016-05-25 Thread Niklas Söderlund
From: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> This is done to prepare for Gen3 support where there are more than one subdevice and the usage of them are complex and can be shared between multiple rcar-vin instances. There are a few trouble areas with Gen3 that needs to be

[PATCH 5/8] [media] rcar-vin: add Gen3 HW registers

2016-05-25 Thread Niklas Söderlund
From: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> Add the register needed to work with Gen3 hardware. This patch just adds the logic for how to work with the Gen3 hardware. More work is required to enable the subdevice structure needed to support capturing. Signed-off-by:

[PATCH 8/8] [media] rcar-vin: add Gen2 and Gen3 fallback compatibility strings

2016-05-25 Thread Niklas Söderlund
From: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> These are present in the soc-camera version of this driver and it's time to add them to this driver as well. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/rcar-vin/rca

[PATCH 3/8] media: rcar-vin: add DV timings support

2016-05-25 Thread Niklas Söderlund
From: Ulrich Hecht <ulrich.hecht+rene...@gmail.com> Adds ioctls DV_TIMINGS_CAP, ENUM_DV_TIMINGS, G_DV_TIMINGS, S_DV_TIMINGS, and QUERY_DV_TIMINGS. Signed-off-by: Ulrich Hecht <ulrich.hecht+rene...@gmail.com> Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.s

[PATCH 1/4] dma: rcar-dma: use result of updated get_residue in tx_status

2016-06-15 Thread Niklas Söderlund
Hamza Farooq <mfar...@visteon.com> Signed-off-by: Geert Uytterhoeven <geert+rene...@glider.be> [Niklas: add explanation in commit message] Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/dma/sh/rcar-dmac.c | 4 1 file changed, 4 i

[PATCH 3/4] dma: rcar-dma: Fixed active descriptor initializing

2016-06-15 Thread Niklas Söderlund
<geert+rene...@glider.be> Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/dma/sh/rcar-dmac.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/dma/sh/rcar-dmac.c b/drivers/dma/sh/rcar-dmac.c index 7f26576..59951fb 100644 --- a/drivers/dma/sh/rcar-

[PATCH 4/4] dmaengine: rcar-dmac: Fix residue reporting for pending descriptors

2016-06-15 Thread Niklas Söderlund
Geert Uytterhoeven <ge...@linux-m68k.org> Signed-off-by: Laurent Pinchart <laurent.pinchart+rene...@ideasonboard.com> [geert: Also check desc.active list] Signed-off-by: Geert Uytterhoeven <geert+rene...@glider.be> Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnat

[PATCH 0/4] Residue patches for rcar-dmac from renesas-drivers

2016-06-15 Thread Niklas Söderlund
tor initializing Niklas Söderlund (1): dmaengine: rcar-dmac: warn if transfer cannot start as TE = 1 drivers/dma/sh/rcar-dmac.c | 40 +--- 1 file changed, 37 insertions(+), 3 deletions(-) -- 2.8.3

[PATCH 2/4] dmaengine: rcar-dmac: warn if transfer cannot start as TE = 1

2016-06-15 Thread Niklas Söderlund
ed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/dma/sh/rcar-dmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/sh/rcar-dmac.c b/drivers/dma/sh/rcar-dmac.c index 791a064..7f26576 100644 --- a/drivers/dma/sh/rcar-dmac.c +++ b/drivers

Re: [PATCHv7 4/6] arm: dma-mapping: add {map, unmap}_resource for iommu ops

2016-06-02 Thread Niklas Söderlund
Hi Russell, Thanks for your feedback. On 2016-06-01 17:16:06 +0100, Russell King - ARM Linux wrote: > On Wed, Jun 01, 2016 at 05:22:27PM +0200, Niklas Söderlund wrote: > > +static dma_addr_t arm_iommu_map_resource(struct device *dev, > > + phys_addr_t phys_ad

Re: [PATCHv7 0/6] dmaengine: rcar-dmac: add iommu support for slave transfers

2016-06-02 Thread Niklas Söderlund
Hi Vinod, On 2016-06-01 23:36:11 +0530, Vinod Koul wrote: > On Wed, Jun 01, 2016 at 05:22:23PM +0200, Niklas Söderlund wrote: > > Hi, > > > > [In this v7 series I have tried to address the questions raised by > > Christoph > > Hellwig and I hope it can awnser y

[PATCHv7 3/6] dma-mapping: add dma_{map,unmap}_resource

2016-06-01 Thread Niklas Söderlund
Map/Unmap a device MMIO resource from a physical address. If no dma_map_ops method is available the operation is a no-op. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- Documentation/DMA-API.txt | 22 +- include/linux/dma-mapping.

[PATCHv7 0/6] dmaengine: rcar-dmac: add iommu support for slave transfers

2016-06-01 Thread Niklas Söderlund
p() directly. Turns out the dma-mapper is much smarter then me... - Dropped the patch to expose domain->ops->pgsize_bitmap from within the iommu api. - Dropped the patch showing how I tested the RFC. Niklas Söderlund (6): dma-mapping: add {map,unmap}_resource to dma_map_ops dma-debug: ad

[PATCHv7 4/6] arm: dma-mapping: add {map,unmap}_resource for iommu ops

2016-06-01 Thread Niklas Söderlund
Add methods to map/unmap device resources addresses for dma_map_ops that are IOMMU aware. This is needed to map a device MMIO register from a physical address. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinch...@ideason

[PATCHv7 1/6] dma-mapping: add {map,unmap}_resource to dma_map_ops

2016-06-01 Thread Niklas Söderlund
Add methods to handle mapping of device resources from a physical address. This is needed for example to be able to map MMIO FIFO registers to a IOMMU. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinch...@ideason

[PATCHv7 2/6] dma-debug: add support for resource mappings

2016-06-01 Thread Niklas Söderlund
A MMIO mapped resource can not be represented by a struct page so a new debug type is needed to handle this. This patch add such type and functionality to add/remove entries and how to translate them to a physical address. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech

[PATCHv7 6/6] dmaengine: rcar-dmac: add iommu support for slave transfers

2016-06-01 Thread Niklas Söderlund
Enable slave transfers to a device behind a IPMMU by mapping the slave addresses using the dma-mapping API. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/dma/sh/rcar-dmac.c | 82 +- 1 file changed, 74 inse

[PATCHv7 5/6] dmaengine: rcar-dmac: group slave configuration

2016-06-01 Thread Niklas Söderlund
Group slave address and transfer size in own structs for source and destination. This is in preparation for hooking up the dma-mapping API to the slave addresses. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> Reviewed-by: Laurent Pinchart <laur

[PATCH 0/2] move s_stream from v4l2_subdev_video_ops to move s_stream from v4l2_subdev_pad_ops

2016-06-21 Thread Niklas Söderlund
); @@ expression e1, e2; symbol video, pad, s_stream; @@ -cx25840_call(e1, video, s_stream, e2); +cx25840_call(e1, pad, s_stream, 0, e2); >>>>cut<<<< Niklas Söderlund (2): [media] v4l: vsp1: Split pad operations between rpf and wpf [media] v4l: subdev: move s_stream from

[PATCH 1/2] [media] v4l: vsp1: Split pad operations between rpf and wpf

2016-06-21 Thread Niklas Söderlund
ed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/media/platform/vsp1/vsp1_rpf.c | 12 +- drivers/media/platform/vsp1/vsp1_rwpf.c | 40 + drivers/media/platform/vsp1/vsp1_rwpf.h | 20 + drivers/media/p

[RFC 0/2] [media] i2c: adv7482: add adv7482 driver

2016-06-27 Thread Niklas Söderlund
: entity: Add has_route entity operation Niklas Söderlund (1): [media] i2c: adv7482: add adv7482 driver .../devicetree/bindings/media/i2c/adv7482.txt | 62 + drivers/media/i2c/Kconfig | 10 + drivers/media/i2c/Makefile |1 + drivers

[PATCH] [media] rcar-csi2: add Renesas R-Car MIPI CSI-2 driver

2016-06-27 Thread Niklas Söderlund
A V4L2 driver for Renesas R-Car MIPI CSI-2 interface. The driver supports the rcar-vin driver on R-Car Gen3 SoCs where a separate driver is needed to receive CSI-2. Driver is based on a prototype by Koji Matsuoka in the Renesas BSP. Signed-off-by: Niklas Söderlund <niklas.soderlund+r

[PATCH] [media] rcar-csi2: add Renesas R-Car MIPI CSI-2 driver

2016-06-27 Thread Niklas Söderlund
to grab video (rcar-vin for Gen3, rcar-cis2 and adv7482). https://git.ragnatech.se/linux rcar-vin-gen3 Niklas Söderlund (1): [media] rcar-csi2: add Renesas R-Car MIPI CSI-2 driver .../devicetree/bindings/media/rcar-csi2.txt| 79 +++ drivers/media/platform/rcar-vin/Kconfig

[RFC 2/2] [media] i2c: adv7482: add adv7482 driver

2016-06-27 Thread Niklas Söderlund
This patch adds basic support for the ADV7482. It can output the HDMI source on the TXA sink and any AIN source on the TXB sink. Driver is based on a prototype by Koji Matsuoka in the Renesas BSP. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- .../devi

[RFC 1/2] media: entity: Add has_route entity operation

2016-06-27 Thread Niklas Söderlund
com> Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- include/media/media-entity.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/media/media-entity.h b/include/media/media-entity.h index cbb266f..c4b2dca 100644 --- a/include/media/media-entity.h +

Re: [PATCHv8 0/6] dmaengine: rcar-dmac: add iommu support for slave transfers

2016-06-16 Thread Niklas Söderlund
Hi Russell, I was wondering if you have time to look at this series? Especially patch 4/6 which you had some good review comments on in v7. On 2016-06-07 09:54:07 +0200, Niklas Söderlund wrote: > Hi, > > This series tries to solve the problem with DMA with device registers > (MM

[PATCH v3 5/8] dmaengine: rcar-dmac: group slave configuration

2016-02-09 Thread Niklas Söderlund
Group slave address and transfer size in own structs for source and destination. This is in preparation for hooking up the dma-mapping API to the slave addresses. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/dma/sh/rcar-dmac.

[PATCH v3 6/8] dmaengine: rcar-dmac: add iommu support for slave transfers

2016-02-09 Thread Niklas Söderlund
Enable slave transfers to devices behind IPMMU:s by mapping the slave addresses using the dma-mapping API. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/dma/sh/rcar-dmac.c | 57 ++ 1 file changed, 52 inse

[PATCH v3 7/8] ARM: dts: r8a7790: add iommus to dmac0 and dmac1

2016-02-09 Thread Niklas Söderlund
Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- arch/arm/boot/dts/r8a7790.dtsi | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 7dfd393..048bbf8 100644 ---

[PATCH v3 4/8] arm: dma-mapping: add {map,unmap}_resource for iommu ops

2016-02-09 Thread Niklas Söderlund
Add methods to map/unmap device resources addresses for dma_map_ops that are IOMMU aware. This is needed to map a device MMIO register from a physical address. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- arch/arm/mm/dma-mapping.

[PATCH v3 8/8] ARM: dts: r8a7791: add iommus to dmac0 and dmac1

2016-02-09 Thread Niklas Söderlund
Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- arch/arm/boot/dts/r8a7791.dtsi | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 2a369dd..6dff061 100644 ---

[PATCH v3 1/8] iommu: Add MMIO mapping type

2016-02-09 Thread Niklas Söderlund
From: Robin Murphy On some platforms, MMIO regions might need slightly different treatment compared to mapping regular memory; add the notion of MMIO mappings to the IOMMU API's memory type flags, so that callers can let the IOMMU drivers know to do the right thing.

Re: [RFC/PATCH] [media] rcar-vin: add Renesas R-Car VIN IP core

2016-02-22 Thread Niklas Söderlund
On 2016-02-22 14:31:29 +0100, Ulrich Hecht wrote: > On Sun, Feb 14, 2016 at 5:55 PM, Niklas Söderlund > <niklas.soderlund+rene...@ragnatech.se> wrote: > > Also I > > could only get frames if the video signal on the composite IN was NTSC, > > but this also applied to t

[PATCHv2] [media] rcar-vin: add Renesas R-Car VIN driver

2016-02-23 Thread Niklas Söderlund
A V4L2 driver for Renesas R-Car VIN driver that do not depend on soc_camera. The driver is heavily based on its predecessor and aims to replace it. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- The driver is tested on Koelsch and can do streaming using

Re: [PATCHv2] [media] rcar-vin: add Renesas R-Car VIN driver

2016-02-27 Thread Niklas Söderlund
Hi Hans, On 2016-02-27 12:32:14 +0100, Hans Verkuil wrote: > On 02/24/2016 03:58 AM, Niklas Söderlund wrote: > > A V4L2 driver for Renesas R-Car VIN driver that do not depend on > > soc_camera. The driver is heavily based on its predecessor and aims to > > replace it

[PATCH v2 3/5] dmaengine: rcar-dmac: add iommu support for slave transfers

2016-01-21 Thread Niklas Söderlund
Enable slave transfers to devices behind IPMMU:s by mapping the slave addresses using the dma-mapping API. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/dma/sh/rcar-dmac.c | 59 ++ 1 file changed, 54 inse

[PATCH v2 0/5] dmaengine: rcar-dmac: add iommu support for slave transfers

2016-01-21 Thread Niklas Söderlund
domain->ops->pgsize_bitmap from within the iommu api. - Dropped the patch showing how I tested the RFC. Niklas Söderlund (5): dma-mapping: add dma_{map,unmap}_page_attrs dmaengine: rcar-dmac: group slave configuration dmaengine: rcar-dmac: add iommu support for slave transfers AR

[PATCH v2 4/5] ARM: dts: r8a7790: add iommus to dmac0 and dmac1

2016-01-21 Thread Niklas Söderlund
Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- arch/arm/boot/dts/r8a7790.dtsi | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index e07ae5d..23af349 100644 ---

[PATCH v2 5/5] ARM: dts: r8a7791: add iommus to dmac0 and dmac1

2016-01-21 Thread Niklas Söderlund
Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- arch/arm/boot/dts/r8a7791.dtsi | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 328f48b..bf3702d 100644 ---

Re: [PATCH v3 1/8] iommu: Add MMIO mapping type

2016-02-16 Thread Niklas Söderlund
Pinchart wrote: > >Hi Niklas, > > > >Thank you for the patch. > > > >On Wednesday 10 February 2016 01:57:51 Niklas Söderlund wrote: > >>From: Robin Murphy <robin.mur...@arm.com> > >> > >>On some platforms, MMIO regions might need

Re: [PATCH v3 1/8] iommu: Add MMIO mapping type

2016-02-16 Thread Niklas Söderlund
* Robin Murphy <robin.mur...@arm.com> [2016-02-16 12:43:40 +]: > On 16/02/16 12:06, Niklas Söderlund wrote: > >Hi Robin, > > > >Thanks for your update patch I will include it in my next version. But > >I'm sorry I do not understand, is your modification

[PATCH v4 7/8] ARM: dts: r8a7790: add iommus to dmac0 and dmac1

2016-02-16 Thread Niklas Söderlund
A unconfirmed hardware bug prevents channel 0 and 15 to be used by the DMAC together with the IPMMU. The DMAC driver will disable the channels reducing the effective number of channels to 14 per DMAC. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> Acked-by: L

[PATCH v4 1/8] iommu: Add MMIO mapping type

2016-02-16 Thread Niklas Söderlund
Signed-off-by: Robin Murphy <robin.mur...@arm.com> Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- drivers/iommu/io-pgtable-arm.c | 9 +++-- include/linux/iommu.h | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/iomm

Re: [PATCH] dmaengine: use phys_addr_t for slave configuration

2016-02-16 Thread Niklas Söderlund
On 2016-02-15 23:00:53 +0530, Vinod Koul wrote: > On Tue, Feb 09, 2016 at 11:57:24PM +0100, Wolfram Sang wrote: > > > > > This is a dependency for adding iommu support to the rcar-dmac driver, > > > cfr. > > > "[PATCH v2 0/5] dmaengine: rcar-dmac: add iommu support for slave > > > transfers". >

[PATCH v4 6/8] dmaengine: rcar-dmac: add iommu support for slave transfers

2016-02-16 Thread Niklas Söderlund
Enable slave transfers to devices behind IPMMU:s by mapping the slave addresses using the dma-mapping API. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinch...@ideasonboard.com> --- drivers/dma/sh/rcar

[PATCH v4 5/8] dmaengine: rcar-dmac: group slave configuration

2016-02-16 Thread Niklas Söderlund
Group slave address and transfer size in own structs for source and destination. This is in preparation for hooking up the dma-mapping API to the slave addresses. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> Reviewed-by: Laurent Pinchart <laur

[PATCH v4 4/8] arm: dma-mapping: add {map,unmap}_resource for iommu ops

2016-02-16 Thread Niklas Söderlund
Add methods to map/unmap device resources addresses for dma_map_ops that are IOMMU aware. This is needed to map a device MMIO register from a physical address. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinch...@ideason

[PATCH v4 3/8] dma-mapping: add dma_{map,unmap}_resource

2016-02-16 Thread Niklas Söderlund
Map/Unmap a device resource from a physical address. If no dma_map_ops method is available the operation is a no-op. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- include/linux/dma-mapping.h | 32 1 file changed, 32 inse

[PATCH v4 8/8] ARM: dts: r8a7791: add iommus to dmac0 and dmac1

2016-02-16 Thread Niklas Söderlund
A unconfirmed hardware bug prevents channel 0 and 15 to be used by the DMAC together with the IPMMU. The DMAC driver will disable the channels reducing the effective number of channels to 14 per DMAC. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> Acked-by: L

[PATCH v4 2/8] dma-mapping: add {map,unmap}_resource to dma_map_ops

2016-02-16 Thread Niklas Söderlund
Add methods to handle mapping of device resources from a physical address. This is needed for example to be able to map MMIO FIFO registers to a IOMMU. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinch...@ideason

[PATCH v4 0/8] dmaengine: rcar-dmac: add iommu support for slave transfers

2016-02-16 Thread Niklas Söderlund
since RFC - Switch to use the dma-mapping api instead of using the iommu_map() directly. Turns out the dma-mapper is much smarter then me... - Dropped the patch to expose domain->ops->pgsize_bitmap from within the iommu api. - Dropped the patch showing how I tested the RFC. Niklas Söd

Re: [RFC/PATCH] [media] rcar-vin: add Renesas R-Car VIN IP core

2016-02-17 Thread Niklas Söderlund
Hi Hans, Thanks for your comments. On 2016-02-15 10:28:11 +0100, Hans Verkuil wrote: > On 02/14/2016 05:55 PM, Niklas Söderlund wrote: > > A V4L2 driver for Renesas R-Car VIN IP cores that do not depend on > > soc_camera. The driver is heavily based on its predecessor and aims

Re: [RFC/PATCH] [media] rcar-vin: add Renesas R-Car VIN IP core

2016-02-17 Thread Niklas Söderlund
Hi Ulrich, Thanks for testing. On 2016-02-15 12:40:12 +0100, Ulrich Hecht wrote: > On Sun, Feb 14, 2016 at 5:55 PM, Niklas Söderlund > <niklas.soderlund+rene...@ragnatech.se> wrote: > > A V4L2 driver for Renesas R-Car VIN IP cores that do not depend on > > soc_camera. The

Re: [PATCH] [RFC/RFT] ARM: shmobile: emev2: Add CPU hotplug ops

2016-02-19 Thread Niklas Söderlund
obile_smp_cpu_can_disable, > + .cpu_die = shmobile_smp_scu_cpu_die, > + .cpu_kill = shmobile_smp_scu_cpu_kill, > +#endif > }; > -- > 1.9.1 > -- Regards, Niklas Söderlund

[RFC/PATCH] [media] rcar-vin: add Renesas R-Car VIN IP core

2016-02-14 Thread Niklas Söderlund
A V4L2 driver for Renesas R-Car VIN IP cores that do not depend on soc_camera. The driver is heavily based on its predecessor and aims to replace the soc_camera driver. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- The driver is tested on Koelsch and can grab

Re: [PATCH v3 7/8] ARM: dts: r8a7790: add iommus to dmac0 and dmac1

2016-02-10 Thread Niklas Söderlund
Hi Simon, * Simon Horman [2016-02-10 18:55:59 +0100]: > Hi Niklas, > > I am deferring accepting this and the similar patch for the r8a7791 pending > acceptance of the driver changes earlier in this series. Please let me know > if you prefer a different course of action.

Re: [PATCH][CFT]: dmaengine: make slave address physical

2016-02-22 Thread Niklas Söderlund
uired mapping. Thanks! I have tested this patch with my IOMMU series and it works nicely. > > Original-patch-by: Linus Walleij <linus.wall...@linaro.org> > Signed-off-by: Vinod Koul <vinod.k...@intel.com> Tested-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se&g

[PATCH 04/30] ARM: dts: r8a7790: Reference both DMA controllers in SCIF nodes

2016-03-10 Thread Niklas Söderlund
R-Car Gen2 have two DMA controllers, which are equivalent. Add references to both dmac0 and dmac1 so the driver can fallback to the later if the first one is unavailable. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- arch/arm/boot/dts/r8a7790.dtsi | 10 ++-

[PATCH 06/30] ARM: dts: r8a7790: Reference both DMA controllers in QSPI node

2016-03-10 Thread Niklas Söderlund
R-Car Gen2 have two DMA controllers, which are equivalent. Add references to both dmac0 and dmac1 so the driver can fallback to the later if the first one is unavailable. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- arch/arm/boot/dts/r8a7790.dtsi | 5 +++--

[PATCH 29/30] ARM: dts: r8a7794: Reference both DMA controllers in SDHI nodes

2016-03-10 Thread Niklas Söderlund
R-Car Gen2 have two DMA controllers, which are equivalent. Add references to both dmac0 and dmac1 so the driver can fallback to the later if the first one is unavailable. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- arch/arm/boot/dts/r8a7794.dtsi | 9 ++

[PATCH 19/30] ARM: dts: r8a7793: Reference both DMA controllers in SCIFA nodes

2016-03-10 Thread Niklas Söderlund
R-Car Gen2 have two DMA controllers, which are equivalent. Add references to both dmac0 and dmac1 so the driver can fallback to the later if the first one is unavailable. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- arch/arm/boot/dts/r8a7793.dts

[PATCH 21/30] ARM: dts: r8a7793: Reference both DMA controllers in HSCIF nodes

2016-03-10 Thread Niklas Söderlund
R-Car Gen2 have two DMA controllers, which are equivalent. Add references to both dmac0 and dmac1 so the driver can fallback to the later if the first one is unavailable. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- arch/arm/boot/dts/r8a7793.dts

[PATCH 28/30] ARM: dts: r8a7794: Reference both DMA controllers in QSPI node

2016-03-10 Thread Niklas Söderlund
R-Car Gen2 have two DMA controllers, which are equivalent. Add references to both dmac0 and dmac1 so the driver can fallback to the later if the first one is unavailable. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- arch/arm/boot/dts/r8a7794.dtsi | 5 +++--

[PATCH 24/30] ARM: dts: r8a7794: Reference both DMA controllers in SCIFA nodes

2016-03-10 Thread Niklas Söderlund
R-Car Gen2 have two DMA controllers, which are equivalent. Add references to both dmac0 and dmac1 so the driver can fallback to the later if the first one is unavailable. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- arch/arm/boot/dts/r8a7794.dts

[PATCH 27/30] ARM: dts: r8a7794: Reference both DMA controllers in SCIF nodes

2016-03-10 Thread Niklas Söderlund
R-Car Gen2 have two DMA controllers, which are equivalent. Add references to both dmac0 and dmac1 so the driver can fallback to the later if the first one is unavailable. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- arch/arm/boot/dts/r8a7794.dts

[PATCH 05/30] ARM: dts: r8a7790: Reference both DMA controllers in MSIOF nodes

2016-03-10 Thread Niklas Söderlund
R-Car Gen2 have two DMA controllers, which are equivalent. Add references to both dmac0 and dmac1 so the driver can fallback to the later if the first one is unavailable. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- arch/arm/boot/dts/r8a7790.dts

[PATCH 20/30] ARM: dts: r8a7793: Reference both DMA controllers in SCIFB nodes

2016-03-10 Thread Niklas Söderlund
R-Car Gen2 have two DMA controllers, which are equivalent. Add references to both dmac0 and dmac1 so the driver can fallback to the later if the first one is unavailable. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- arch/arm/boot/dts/r8a7793.dts

[PATCH 12/30] ARM: dts: r8a7791: Reference both DMA controllers in HSCIF nodes

2016-03-10 Thread Niklas Söderlund
R-Car Gen2 have two DMA controllers, which are equivalent. Add references to both dmac0 and dmac1 so the driver can fallback to the later if the first one is unavailable. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- arch/arm/boot/dts/r8a7791.dts

[PATCH 09/30] ARM: dts: r8a7790: Reference both DMA controllers in MMCIF nodes

2016-03-10 Thread Niklas Söderlund
R-Car Gen2 have two DMA controllers, which are equivalent. Add references to both dmac0 and dmac1 so the driver can fallback to the later if the first one is unavailable. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- arch/arm/boot/dts/r8a7790.dtsi | 10 ++-

[PATCH 13/30] ARM: dts: r8a7791: Reference both DMA controllers in SCIF nodes

2016-03-10 Thread Niklas Söderlund
R-Car Gen2 have two DMA controllers, which are equivalent. Add references to both dmac0 and dmac1 so the driver can fallback to the later if the first one is unavailable. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- arch/arm/boot/dts/r8a7791.dts

[PATCH 02/30] ARM: dts: r8a7790: Reference both DMA controllers in SCIFB nodes

2016-03-10 Thread Niklas Söderlund
R-Car Gen2 have two DMA controllers, which are equivalent. Add references to both dmac0 and dmac1 so the driver can fallback to the later if the first one is unavailable. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- arch/arm/boot/dts/r8a7790.dts

[PATCH 00/30] ARM: dts: r8a779[0-4]: Reference both DMA controllers

2016-03-10 Thread Niklas Söderlund
for r8a7794 which according to the datasheet should work but I have not access to HW to verify. Tested on Koelsch (r8a7791) by altering the compatible value of either dmac0 or dmac1 and verifying that the DMA slaves pick the DMA controller that is instantiated. Niklas Söderlund (30): ARM: dts

[PATCH 15/30] ARM: dts: r8a7791: Reference both DMA controllers in QSPI node

2016-03-10 Thread Niklas Söderlund
R-Car Gen2 have two DMA controllers, which are equivalent. Add references to both dmac0 and dmac1 so the driver can fallback to the later if the first one is unavailable. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- arch/arm/boot/dts/r8a7791.dtsi | 5 +++--

[PATCH 23/30] ARM: dts: r8a7793: Reference both DMA controllers in QSPI node

2016-03-10 Thread Niklas Söderlund
R-Car Gen2 have two DMA controllers, which are equivalent. Add references to both dmac0 and dmac1 so the driver can fallback to the later if the first one is unavailable. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- arch/arm/boot/dts/r8a7793.dtsi | 5 +++--

[PATCH 17/30] ARM: dts: r8a7791: Reference both DMA controllers in SDHI nodes

2016-03-10 Thread Niklas Söderlund
R-Car Gen2 have two DMA controllers, which are equivalent. Add references to both dmac0 and dmac1 so the driver can fallback to the later if the first one is unavailable. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- arch/arm/boot/dts/r8a7791.dts

[PATCH 30/30] ARM: dts: r8a7794: Reference both DMA controllers in QSPI node

2016-03-10 Thread Niklas Söderlund
R-Car Gen2 have two DMA controllers, which are equivalent. Add references to both dmac0 and dmac1 so the driver can fallback to the later if the first one is unavailable. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- arch/arm/boot/dts/r8a7794.dtsi | 5 +++--

[PATCH 14/30] ARM: dts: r8a7791: Reference both DMA controllers in MSIOF nodes

2016-03-10 Thread Niklas Söderlund
R-Car Gen2 have two DMA controllers, which are equivalent. Add references to both dmac0 and dmac1 so the driver can fallback to the later if the first one is unavailable. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- arch/arm/boot/dts/r8a7791.dts

[PATCH 22/30] ARM: dts: r8a7793: Reference both DMA controllers in SCIF nodes

2016-03-10 Thread Niklas Söderlund
R-Car Gen2 have two DMA controllers, which are equivalent. Add references to both dmac0 and dmac1 so the driver can fallback to the later if the first one is unavailable. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- arch/arm/boot/dts/r8a7793.dts

[PATCH 26/30] ARM: dts: r8a7794: Reference both DMA controllers in HSCIF nodes

2016-03-10 Thread Niklas Söderlund
R-Car Gen2 have two DMA controllers, which are equivalent. Add references to both dmac0 and dmac1 so the driver can fallback to the later if the first one is unavailable. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- arch/arm/boot/dts/r8a7794.dts

[PATCH 25/30] ARM: dts: r8a7794: Reference both DMA controllers in SCIFB nodes

2016-03-10 Thread Niklas Söderlund
R-Car Gen2 have two DMA controllers, which are equivalent. Add references to both dmac0 and dmac1 so the driver can fallback to the later if the first one is unavailable. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- arch/arm/boot/dts/r8a7794.dts

[PATCH 18/30] ARM: dts: r8a7791: Reference both DMA controllers in MMCIF node

2016-03-10 Thread Niklas Söderlund
R-Car Gen2 have two DMA controllers, which are equivalent. Add references to both dmac0 and dmac1 so the driver can fallback to the later if the first one is unavailable. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- arch/arm/boot/dts/r8a7791.dtsi | 5 +++--

[PATCH 08/30] ARM: dts: r8a7790: Reference both DMA controllers in SDHI nodes

2016-03-10 Thread Niklas Söderlund
R-Car Gen2 have two DMA controllers, which are equivalent. Add references to both dmac0 and dmac1 so the driver can fallback to the later if the first one is unavailable. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> --- arch/arm/boot/dts/r8a7790.dts

Re: [PATCH 30/30] ARM: dts: r8a7794: Reference both DMA controllers in QSPI node

2016-03-10 Thread Niklas Söderlund
On 2016-03-10 13:08:56 +0100, Geert Uytterhoeven wrote: > Hi Niklas, > > On Thu, Mar 10, 2016 at 12:36 PM, Niklas Söderlund > <niklas.soderlund+rene...@ragnatech.se> wrote: > > R-Car Gen2 have two DMA controllers, which are equivalent. Add > > references to both dma

Re: [PATCH 00/30] ARM: dts: r8a779[0-4]: Reference both DMA controllers

2016-03-10 Thread Niklas Söderlund
Hi Geert, On 2016-03-10 13:20:56 +0100, Geert Uytterhoeven wrote: > Hi Niklas, > > On Thu, Mar 10, 2016 at 12:35 PM, Niklas Söderlund > <niklas.soderlund+rene...@ragnatech.se> wrote: > > R-Car Gen2 have two DMA controllers, which are equivalent. However DMA > > sla

Re: [PATCH 00/30] ARM: dts: r8a779[0-4]: Reference both DMA controllers

2016-03-10 Thread Niklas Söderlund
On 2016-03-11 08:38:56 +0900, Simon Horman wrote: > On Thu, Mar 10, 2016 at 02:43:25PM +0100, Niklas Söderlund wrote: > > Hi Geert, > > > > On 2016-03-10 13:20:56 +0100, Geert Uytterhoeven wrote: > > > Hi Niklas, > > > > > > On

Re: [PATCHv2] [media] rcar-vin: add Renesas R-Car VIN driver

2016-03-11 Thread Niklas Söderlund
On 2016-03-11 12:16:30 +0100, Hans Verkuil wrote: > On 03/11/2016 12:03 PM, Niklas Söderlund wrote: > > Hi Hans, > > > > On 2016-03-11 09:26:48 +0100, Hans Verkuil wrote: > >> Hi Niklas, > >> > >> On 02/29/2016 10:52 AM, Hans Verkuil wrote: > >

Re: [PATCHv2] [media] rcar-vin: add Renesas R-Car VIN driver

2016-03-11 Thread Niklas Söderlund
On 2016-03-11 22:04:17 +0100, Hans Verkuil wrote: > On 03/11/2016 09:55 PM, Niklas Söderlund wrote: > > On 2016-03-11 12:16:30 +0100, Hans Verkuil wrote: > >> On 03/11/2016 12:03 PM, Niklas Söderlund wrote: > >>> Hi Hans, > >>> > >>> On 20

[PATCHv2 29/31] ARM: dts: r8a7794: Reference both DMA controllers in QSPI node

2016-03-15 Thread Niklas Söderlund
R-Car Gen2 have two DMA controllers, which are equivalent. Add references to both dmac0 and dmac1 so the driver can fallback to the later if the first one is unavailable. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> Acked-by: Geert Uytterhoeven <geert+rene...@

[PATCHv2 23/31] ARM: dts: r8a7793: Reference both DMA controllers in QSPI node

2016-03-15 Thread Niklas Söderlund
R-Car Gen2 have two DMA controllers, which are equivalent. Add references to both dmac0 and dmac1 so the driver can fallback to the later if the first one is unavailable. Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> Acked-by: Geert Uytterhoeven <geert+rene...@

  1   2   3   4   5   6   7   8   9   10   >