[GIT PULL] iommu/arm-smmu: updates for 3.15

2014-02-28 Thread Will Deacon
Hi Joerg, Please can you pull the following arm-smmu changes for 3.15? The main changes are for accessing the buggy Calxeda SMMU, which is wired as secure despite being non-secure. Unfortunately, the apparent demise of Calxeda means that Andreas is no longer working on this, so I had to extract

[PATCH 0/2] Renesas VMSA-compatible IPMMU driver

2014-02-28 Thread Laurent Pinchart
Hello, This patch set adds a new driver for the Renesas IOMMU found in the R-Car H2 (r8a7790) and R-Car M2 (r8a7791) SoCs. Despite being called IPMMU like the IOMMU present in older ARM Sh Mobile SoCs, the hardware has nothing in common with the previous versions and thus requires a separate

[PATCH 2/2] [TEST] ARM: shmobile: koelsch-reference: Instantiate IPMMU-MX

2014-02-28 Thread Laurent Pinchart
Not-Signed-off-by: Laurent Pinchart laurent.pinchart+rene...@ideasonboard.com --- arch/arm/mach-shmobile/board-koelsch-reference.c | 30 1 file changed, 30 insertions(+) diff --git a/arch/arm/mach-shmobile/board-koelsch-reference.c

[PATCH 1/2] iommu/arm-smmu: Replace list walk with platform driver data

2014-02-28 Thread Laurent Pinchart
Instead of walking the list of registered SMMU devices at remove time to locate the device being removed, set platform driver data at probe time to point to the SMMU and retrieve the pointer at remove time. Signed-off-by: Laurent Pinchart laurent.pinchart+rene...@ideasonboard.com ---

[PATCH 2/2] iommu/arm-smmu: Return 0 on unmap failure

2014-02-28 Thread Laurent Pinchart
The IOMMU core expects the unmap operation to return the number of bytes that have been unmapped or 0 on failure, a negative return value being treated like a number of bytes. Signed-off-by: Laurent Pinchart laurent.pinchart+rene...@ideasonboard.com --- drivers/iommu/arm-smmu.c | 2 +- 1 file

Re: [PATCH 3/5] documentation/iommu: update description of ARM System MMU binding

2014-02-28 Thread Timur Tabi
On Fri, Feb 21, 2014 at 11:16 AM, Will Deacon will.dea...@arm.com wrote: +- calxeda,smmu-secure-config-access : Enable proper handling of buggy + implementations that always use secure access to + SMMU configuration registers. In this case non-secure +

Re: [PATCH 3/5] documentation/iommu: update description of ARM System MMU binding

2014-02-28 Thread Will Deacon
On Fri, Feb 28, 2014 at 04:17:43PM +, Timur Tabi wrote: On Fri, Feb 21, 2014 at 11:16 AM, Will Deacon will.dea...@arm.com wrote: +- calxeda,smmu-secure-config-access : Enable proper handling of buggy + implementations that always use secure access to +

Re: [PATCH 1/2] iommu/arm-smmu: Replace list walk with platform driver data

2014-02-28 Thread Will Deacon
Hi Laurent, On Fri, Feb 28, 2014 at 03:37:09PM +, Laurent Pinchart wrote: Instead of walking the list of registered SMMU devices at remove time to locate the device being removed, set platform driver data at probe time to point to the SMMU and retrieve the pointer at remove time. What

Re: [PATCH 2/2] iommu/arm-smmu: Return 0 on unmap failure

2014-02-28 Thread Will Deacon
On Fri, Feb 28, 2014 at 03:37:10PM +, Laurent Pinchart wrote: The IOMMU core expects the unmap operation to return the number of bytes that have been unmapped or 0 on failure, a negative return value being treated like a number of bytes. Makes sense, thanks. It's a pity we can't propagate

Re: [PATCH 1/2] iommu: Add driver for Renesas VMSA-compatible IPMMU

2014-02-28 Thread Geert Uytterhoeven
On Fri, Feb 28, 2014 at 4:24 PM, Laurent Pinchart laurent.pinchart+rene...@ideasonboard.com wrote: +/* + * VMSA that states in section B3.6.3 Control of Secure or Non-secure memory VMSA states + * access, Long-descriptor format that the NStable bit being set in a table + * descriptor will

Re: [PATCHv2 08/16] ARM: OMAP3: remove deprecated CONFIG_OMAP_IOMMU_IVA2

2014-02-28 Thread Suman Anna
Paul, On 02/28/2014 01:58 PM, Paul Walmsley wrote: On Thu, 13 Feb 2014, Suman Anna wrote: From: Florian Vaussard florian.vauss...@epfl.ch CONFIG_OMAP_IOMMU_IVA2 was defined originally to avoid conflicting usage by tidspbridge and other iommu users. The same can be achieved by marking the DT

[PATCHv3 01/13] iommu/omap: convert to devm_* interfaces

2014-02-28 Thread Suman Anna
Use the various devm_ interfaces to simplify the cleanup in probe and remove functions. Signed-off-by: Florian Vaussard florian.vauss...@epfl.ch Signed-off-by: Suman Anna s-a...@ti.com Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- drivers/iommu/omap-iommu.c | 52

[PATCHv3 07/13] iommu/omap: allocate archdata on the fly for DT-based devices

2014-02-28 Thread Suman Anna
From: Laurent Pinchart laurent.pinch...@ideasonboard.com The OMAP IOMMU driver locates the IOMMU associated to a device using the IOMMU name stored in the device archdata iommu field. That field is expected to be populated by platform code and is left unset for DT-based devices. This results in a

[PATCHv3 06/13] iommu/omap: enable bus-error back on supported iommus

2014-02-28 Thread Suman Anna
The remoteproc MMUs in OMAP4+ SoCs have some additional debug registers that can give out the PC value in addition to the MMU fault address. The PC value can be extracted properly only on the DSP cores, and is not available on the ARM processors within the IPU sub-systems. Instead, the MMUs have

[PATCHv3 13/13] ARM: OMAP2+: extend iommu pdata-quirks to OMAP5

2014-02-28 Thread Suman Anna
OMAP5 has the same iommus as OMAP4, so extend the OMAP4 iommu pdata quirks for OMAP5 as well. Signed-off-by: Suman Anna s-a...@ti.com --- arch/arm/mach-omap2/pdata-quirks.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-omap2/pdata-quirks.c

[PATCHv2 3/4] ARM: dts: OMAP4: Add IOMMU nodes

2014-02-28 Thread Suman Anna
From: Florian Vaussard florian.vauss...@epfl.ch Add the IOMMU nodes for the DSP and IPU subsystems. The MMU within the IPU sub-system also supports a bus error back capability, not available on the DSP MMU. Signed-off-by: Florian Vaussard florian.vauss...@epfl.ch [s-a...@ti.com: IPU bus error

[PATCHv2 4/4] ARM: dts: OMAP5: Add IOMMU nodes

2014-02-28 Thread Suman Anna
The IOMMU DT nodes have been added for the DSP and IPU subsystems. The MMUs in OMAP5 are identical to those in OMAP4, including the bus error back capability on IPU. Signed-off-by: Suman Anna s-a...@ti.com --- arch/arm/boot/dts/omap5.dtsi | 15 +++ 1 file changed, 15 insertions(+)