Re: IOMMU DMA-mapping API for arm64 ?

2014-02-26 Thread Ritesh Harjani
Hi Everyone, I was going through some iommu code in arch/arm and of some other archs code. I have some doubts on this for refactoring and may need some suggestions from you guys. 1. So, looking at other arch code, looks like they have their different way of implementation of iova management and b

Re: [PATCHv2 03/16] Documentation: dt: add OMAP iommu bindings

2014-02-26 Thread Suman Anna
Hi Laurent, > On Wednesday 26 February 2014 16:28:08 Suman Anna wrote: On 02/26/2014 04:18 PM, Suman Anna wrote: On 02/26/2014 02:36 PM, Laurent Pinchart wrote: On Wednesday 26 February 2014 14:23:03 Suman Anna wrote: On Wednesday 26 February 2014 11:02:24 Suman Anna wrote: On 02/25/2014 08

Re: [PATCHv2 03/16] Documentation: dt: add OMAP iommu bindings

2014-02-26 Thread Laurent Pinchart
Hi Suman, On Wednesday 26 February 2014 16:28:08 Suman Anna wrote: > On 02/26/2014 04:18 PM, Suman Anna wrote: > > On 02/26/2014 02:36 PM, Laurent Pinchart wrote: > >> On Wednesday 26 February 2014 14:23:03 Suman Anna wrote: > On Wednesday 26 February 2014 11:02:24 Suman Anna wrote: > > O

Re: [PATCHv2 03/16] Documentation: dt: add OMAP iommu bindings

2014-02-26 Thread Suman Anna
On 02/26/2014 04:18 PM, Suman Anna wrote: Hi Laurent, On 02/26/2014 02:36 PM, Laurent Pinchart wrote: Hi Suman, On Wednesday 26 February 2014 14:23:03 Suman Anna wrote: On Wednesday 26 February 2014 11:02:24 Suman Anna wrote: On 02/25/2014 08:13 PM, Laurent Pinchart wrote: On Tuesday 25 Feb

Re: [PATCHv2 03/16] Documentation: dt: add OMAP iommu bindings

2014-02-26 Thread Suman Anna
Hi Laurent, On 02/26/2014 02:36 PM, Laurent Pinchart wrote: Hi Suman, On Wednesday 26 February 2014 14:23:03 Suman Anna wrote: On Wednesday 26 February 2014 11:02:24 Suman Anna wrote: On 02/25/2014 08:13 PM, Laurent Pinchart wrote: On Tuesday 25 February 2014 17:02:35 Suman Anna wrote: On 0

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

2014-02-26 Thread Suman Anna
Hi Laurent, On 02/26/2014 03:05 PM, Laurent Pinchart wrote: Hi Suman, Thank you for the patch. On Thursday 13 February 2014 12:22:55 Suman Anna wrote: From: Florian Vaussard Add the IOMMU nodes for the DSP and IPU subsystems. The external address space for DSP starts at 0x2000 in OMAP4

[PATCH 1/1] iommu/amd: Fix PASID format in INVALIDATE_IOTLB_PAGES command

2014-02-26 Thread suravee.suthikulpanit
From: Jay Cornwall This patch corrects the PASID format in the INVALIDATE_IOTLB_PAGES command, which was caused by incorrect information in the AMD IOMMU Architectural Specification v2.01 document. Incorrect format: cmd->data[0][16:23] = PASID[7:0] cmd->data[1][16:27] = PAS

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

2014-02-26 Thread Laurent Pinchart
Hi Suman, Thank you for the patch. On Thursday 13 February 2014 12:22:55 Suman Anna wrote: > From: Florian Vaussard > > Add the IOMMU nodes for the DSP and IPU subsystems. The external > address space for DSP starts at 0x2000 in OMAP4 compared to > 0x1100 in OMAP3, and the addresses bey

Re: [PATCHv2 03/16] Documentation: dt: add OMAP iommu bindings

2014-02-26 Thread Laurent Pinchart
Hi Suman, On Wednesday 26 February 2014 14:23:03 Suman Anna wrote: > > On Wednesday 26 February 2014 11:02:24 Suman Anna wrote: > >> On 02/25/2014 08:13 PM, Laurent Pinchart wrote: > >>> On Tuesday 25 February 2014 17:02:35 Suman Anna wrote: > On 02/25/2014 03:26 PM, Laurent Pinchart wrote: >

Re: [PATCHv2 03/16] Documentation: dt: add OMAP iommu bindings

2014-02-26 Thread Suman Anna
Hi Laurent, On Wednesday 26 February 2014 11:02:24 Suman Anna wrote: On 02/25/2014 08:13 PM, Laurent Pinchart wrote: On Tuesday 25 February 2014 17:02:35 Suman Anna wrote: On 02/25/2014 03:26 PM, Laurent Pinchart wrote: On Thursday 13 February 2014 12:15:34 Suman Anna wrote: From: Florian

Re: [PATCHv2 03/16] Documentation: dt: add OMAP iommu bindings

2014-02-26 Thread Laurent Pinchart
Hi Suman, On Wednesday 26 February 2014 11:02:24 Suman Anna wrote: > On 02/25/2014 08:13 PM, Laurent Pinchart wrote: > > On Tuesday 25 February 2014 17:02:35 Suman Anna wrote: > >> On 02/25/2014 03:26 PM, Laurent Pinchart wrote: > >>> On Thursday 13 February 2014 12:15:34 Suman Anna wrote: >

Re: [PATCHv2 04/16] iommu/omap: add devicetree support

2014-02-26 Thread Tony Lindgren
* Suman Anna [140213 10:19]: > From: Florian Vaussard > > As OMAP2+ is moving to a full DT boot for all SoC families, commit > 7ce93f3 "ARM: OMAP2+: Fix more missing data for omap3.dtsi file" > adds basic DT bits for OMAP3. But the driver is not yet converted, > so this will not work and driver

Re: [PATCHv2 10/16] ARM: OMAP2+: use pdata quirks for iommu reset lines

2014-02-26 Thread Suman Anna
Hi Tony, On 02/26/2014 11:17 AM, Tony Lindgren wrote: * Suman Anna [140213 10:19]: The OMAP iommu driver performs the reset management for the iommu instances in processor sub-systems using the omap_device API which are currently supplied as platform data ops. Use pdata quirks to maintain the

Re: [PATCHv2 14/16] ARM: OMAP3: hwmod data: cleanup data for IOMMUs

2014-02-26 Thread Suman Anna
Tony, On 02/26/2014 11:18 AM, Tony Lindgren wrote: * Suman Anna [140213 10:19]: From: Florian Vaussard The irq numbers, ocp address space and device attribute data have all been cleaned up for OMAP3 IOMMUs. All this data is populated via the corresponding dt node. Signed-off-by: Florian Vau

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

2014-02-26 Thread Tony Lindgren
* Laurent Pinchart [140225 13:18]: > On Thursday 13 February 2014 12:15:39 Suman Anna wrote: > > From: Florian Vaussard > > > > 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 node d

Re: [PATCHv2 14/16] ARM: OMAP3: hwmod data: cleanup data for IOMMUs

2014-02-26 Thread Tony Lindgren
* Suman Anna [140213 10:19]: > From: Florian Vaussard > > The irq numbers, ocp address space and device attribute data > have all been cleaned up for OMAP3 IOMMUs. All this data is > populated via the corresponding dt node. > > Signed-off-by: Florian Vaussard > Signed-off-by: Suman Anna This

Re: [PATCHv2 10/16] ARM: OMAP2+: use pdata quirks for iommu reset lines

2014-02-26 Thread Tony Lindgren
* Suman Anna [140213 10:19]: > The OMAP iommu driver performs the reset management for the > iommu instances in processor sub-systems using the omap_device > API which are currently supplied as platform data ops. Use pdata > quirks to maintain the functionality as the OMAP iommu driver > gets conv

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

2014-02-26 Thread Tony Lindgren
* Laurent Pinchart [140225 13:18]: > On Thursday 13 February 2014 12:15:39 Suman Anna wrote: > > From: Florian Vaussard > > > > 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 node d

Re: [PATCHv2 03/16] Documentation: dt: add OMAP iommu bindings

2014-02-26 Thread Suman Anna
Hi Laurent, On 02/25/2014 08:13 PM, Laurent Pinchart wrote: Hi Suman, On Tuesday 25 February 2014 17:02:35 Suman Anna wrote: On 02/25/2014 03:26 PM, Laurent Pinchart wrote: On Thursday 13 February 2014 12:15:34 Suman Anna wrote: From: Florian Vaussard This patch adds the iommu bindings for

Re: [PATCHv2 02/16] iommu/omap: omap_iommu_attach() should return ENODEV, not NULL

2014-02-26 Thread Suman Anna
Hi Laurent, On Tuesday 25 February 2014 16:32:03 Suman Anna wrote: On 02/25/2014 03:13 PM, Laurent Pinchart wrote: On Thursday 13 February 2014 12:15:33 Suman Anna wrote: From: Florian Vaussard omap_iommu_attach() returns NULL or ERR_PTR in case of error, but omap_iommu_attach_dev() only ch

RE: your mail

2014-02-26 Thread Varun Sethi
From: srikanth TS [mailto:srikantht.shivan...@gmail.com] Sent: Wednesday, February 26, 2014 1:53 PM To: Sethi Varun-B16395 Cc: sungjinn.ch...@samsung.com; linux-ker...@vger.kernel.org; Will Deacon; iommu@lists.linux-foundation.org; ts.srika...@samsung.com Subject: RE: your mail On Feb 25, 2014

RE: your mail

2014-02-26 Thread srikanth TS
On Feb 25, 2014 8:28 PM, "Varun Sethi" wrote: > > > > > -Original Message- > > From: iommu-boun...@lists.linux-foundation.org [mailto:iommu- > > boun...@lists.linux-foundation.org] On Behalf Of Will Deacon > > Sent: Monday, February 24, 2014 10:59 PM > > To: srikanth TS > > Cc: iommu@lists