[PATCH v1 1/1] iommu/amd: set iommu for early mapped ioapic/hpet

2014-09-01 Thread Su, Friendy
From: Su Friendy friendy...@sony.com.cn The early mapped ioapic/hpet specified by kernel boot parameter ivrs_ioapic[ID]/ivrs_hpet[ID] always override the ioapic/hpet with same ID reported by ACPI IVRS table. Therefore, the early mapped should be always controlled by iommu. Current driver did

Re: [PATCH 10/29] drivers: add DRIVER_HAS_OWN_IOMMU_MANAGER flag

2014-09-01 Thread Marek Szyprowski
Hello, On 2014-09-01 11:38, Arnd Bergmann wrote: On Monday 01 September 2014 09:53:29 Marek Szyprowski wrote: On 2014-09-01 09:07, Thierry Reding wrote: On Mon, Sep 01, 2014 at 07:22:32AM +0200, Marek Szyprowski wrote: Hi Greg, On 2014-08-05 12:47, Marek Szyprowski wrote: This patch adds a

Re: [PATCH 10/29] drivers: add DRIVER_HAS_OWN_IOMMU_MANAGER flag

2014-09-01 Thread Marek Szyprowski
Hello, On 2014-09-01 13:56, Arnd Bergmann wrote: On Monday 01 September 2014 12:47:08 Marek Szyprowski wrote: Who do you think needs to set this flag, and who needs to read it? In the proposed solution Exynos IOMMU driver creates a separate IO address space for every client device in a system

Re: [Linaro-mm-sig] [PATCH 10/29] drivers: add DRIVER_HAS_OWN_IOMMU_MANAGER flag

2014-09-01 Thread Arnd Bergmann
On Monday 01 September 2014 14:07:34 Marek Szyprowski wrote: On 2014-09-01 13:56, Arnd Bergmann wrote: On Monday 01 September 2014 12:47:08 Marek Szyprowski wrote: Who do you think needs to set this flag, and who needs to read it? In the proposed solution Exynos IOMMU driver creates a

Re: [PATCH] iommu/arm-smmu: Allow size of stage 1 output to max possible value for sateg 2 bypass

2014-09-01 Thread tirumalesh chalamarla
Hi Will, On Mon, Sep 1, 2014 at 4:42 AM, Will Deacon will.dea...@arm.com wrote: Hi Tirumalesh, On Wed, Aug 27, 2014 at 07:02:21PM +0100, c.tirumal...@gmail.com wrote: From: Tirumalesh Chalamarla tchalama...@cavium.com This patch modifes output_mask calculation logic for stage 1 and allow

Re: [RFC PATCH 2/7] dma-mapping: replace set_arch_dma_coherent_ops with arch_setup_dma_ops

2014-09-01 Thread Arnd Bergmann
On Friday 29 August 2014 16:54:25 Will Deacon wrote: set_arch_dma_coherent_ops is called from of_dma_configure in order to swizzle the architectural dma-mapping functions over to a cache-coherent implementation. This is currently implemented only for ARM. In anticipation of re-using this

Re: [RFC PATCH 1/7] iommu: provide early initialisation hook for IOMMU drivers

2014-09-01 Thread Arnd Bergmann
On Monday 01 September 2014 09:52:19 Thierry Reding wrote: I don't think this is the right direction. We've been preaching that using initcall ordering is a bad thing and people should be using deferred probe instead. Now we have a bunch of these OF tables that do the exact opposite. Note that

Re: [PATCH 0/7] iommu/arm-smmu: fixes for 3.17

2014-09-01 Thread Joerg Roedel
Hi Will, On Fri, Aug 29, 2014 at 03:47:38PM +0100, Will Deacon wrote: Hans Wennborg (1): iommu/arm-smmu: fix decimal printf format specifiers prefixed with 0x Mitchel Humpherys (1): iommu/arm-smmu: avoid calling request_irq in atomic context Olav Haugan (2): iommu/arm-smmu: Do not

Re: [RFC PATCH 3/7] iommu: add new iommu_ops callback for adding a device with a set of IDs

2014-09-01 Thread Arnd Bergmann
On Monday 01 September 2014 10:13:22 Thierry Reding wrote: On Fri, Aug 29, 2014 at 04:54:26PM +0100, Will Deacon wrote: This patch adds a new function to the iommu_ops structure to allow a device to be added to a specific IOMMU instance along with a set of opaque IDs that are used

Re: [RFC PATCH 4/7] iommu: provide helper function to configure an IOMMU for an of master

2014-09-01 Thread Arnd Bergmann
On Monday 01 September 2014 10:29:40 Thierry Reding wrote: I think this could use a bit more formalization. As I said in another reply earlier, there's very little standardization in the IOMMU API. That certainly gives us a lot of flexibility but it also has the downside that it's difficult

Re: [RFC PATCH 5/7] dma-mapping: detect and configure IOMMU in of_dma_configure

2014-09-01 Thread Arnd Bergmann
On Friday 29 August 2014 16:54:28 Will Deacon wrote: static void of_dma_configure(struct platform_device *pdev) { - u64 dma_addr, paddr, size; + u64 dma_addr, paddr, size, mask; int ret; - bool coherent; + bool coherent, iommu; unsigned long

Re: [PATCH 3/6] iommu/arm-smmu: add support for iova_to_phys through ATS1PR

2014-09-01 Thread Will Deacon
On Tue, Aug 26, 2014 at 02:54:51PM +0100, Will Deacon wrote: On Tue, Aug 19, 2014 at 07:12:41PM +0100, Mitchel Humpherys wrote: On Tue, Aug 19 2014 at 05:44:32 AM, Will Deacon will.dea...@arm.com wrote: @@ -2005,6 +2073,11 @@ int arm_smmu_device_cfg_probe(struct arm_smmu_device *smmu)

Re: [RFC PATCH 2/7] dma-mapping: replace set_arch_dma_coherent_ops with arch_setup_dma_ops

2014-09-01 Thread Will Deacon
On Mon, Sep 01, 2014 at 03:27:30PM +0100, Arnd Bergmann wrote: On Friday 29 August 2014 16:54:25 Will Deacon wrote: set_arch_dma_coherent_ops is called from of_dma_configure in order to swizzle the architectural dma-mapping functions over to a cache-coherent implementation. This is

Re: [RFC PATCH 3/7] iommu: add new iommu_ops callback for adding a device with a set of IDs

2014-09-01 Thread Will Deacon
On Mon, Sep 01, 2014 at 03:39:16PM +0100, Arnd Bergmann wrote: On Monday 01 September 2014 10:13:22 Thierry Reding wrote: On Fri, Aug 29, 2014 at 04:54:26PM +0100, Will Deacon wrote: diff --git a/include/linux/iommu.h b/include/linux/iommu.h index 20f9a527922a..3dd1b99c4542 100644 ---

Re: [RFC PATCH 4/7] iommu: provide helper function to configure an IOMMU for an of master

2014-09-01 Thread Will Deacon
On Mon, Sep 01, 2014 at 03:46:18PM +0100, Arnd Bergmann wrote: On Monday 01 September 2014 10:29:40 Thierry Reding wrote: I think this could use a bit more formalization. As I said in another reply earlier, there's very little standardization in the IOMMU API. That certainly gives us a

Re: [RFC PATCH 3/7] iommu: add new iommu_ops callback for adding a device with a set of IDs

2014-09-01 Thread Arnd Bergmann
On Monday 01 September 2014 17:34:00 Will Deacon wrote: On Mon, Sep 01, 2014 at 03:39:16PM +0100, Arnd Bergmann wrote: On Monday 01 September 2014 10:13:22 Thierry Reding wrote: On Fri, Aug 29, 2014 at 04:54:26PM +0100, Will Deacon wrote: diff --git a/include/linux/iommu.h

Re: [RFC PATCH 4/7] iommu: provide helper function to configure an IOMMU for an of master

2014-09-01 Thread Arnd Bergmann
On Monday 01 September 2014 17:40:00 Will Deacon wrote: On Mon, Sep 01, 2014 at 03:46:18PM +0100, Arnd Bergmann wrote: On Monday 01 September 2014 10:29:40 Thierry Reding wrote: I think this could use a bit more formalization. As I said in another reply earlier, there's very little