[Patch Part1 v7 19/38] iommu/vt-d: Refine the interfaces to create IRQ for DMAR unit

2015-01-19 Thread Jiang Liu
Refine the interfaces to create IRQ for DMAR unit. It's a preparation for converting DMAR IRQ to hierarchy irqdomain on x86. It also moves dmar_alloc_hwirq()/dmar_free_hwirq() from irq_remapping.h to dmar.h. They are not irq_remapping specific. Signed-off-by: Jiang Liu jiang@linux.intel.com

[Patch Part1 v7 28/38] irq_remapping: Kill unused function irq_remapping_print_chip()

2015-01-19 Thread Jiang Liu
Now there's no user of irq_remapping_print_chip(), so kill it. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/include/asm/irq_remapping.h |2 -- drivers/iommu/irq_remapping.c| 13 - 2 files changed, 15 deletions(-) diff --git

[Patch Part1 v7 09/38] irq_remapping/vt-d: Change prototypes to prepare for enabling hierarchy irqdomain

2015-01-19 Thread Jiang Liu
Prepare for support hierarchy irqdomain by changing function prototypes, should be no function changes. Signed-off-by: Jiang Liu jiang@linux.intel.com Acked-by: Joerg Roedel jroe...@suse.de Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Tony Luck tony.l...@intel.com Cc: Greg

[Patch Part1 v7 11/38] irq_remapping/amd: Enhance AMD IR driver to suppport hierarchy irqdomain

2015-01-19 Thread Jiang Liu
Enhance AMD interrupt remapping driver to support hierarchy irqdomain, it will simplify the code eventually. Signed-off-by: Jiang Liu jiang@linux.intel.com Acked-by: Joerg Roedel jroe...@suse.de Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Tony Luck tony.l...@intel.com Cc: Greg

[Patch Part1 v7 08/38] irq_remapping: Introduce new interfaces to support hierarchy irqdomain

2015-01-19 Thread Jiang Liu
Introduce new interfaces for interrupt remapping drivers to support hierarchy irqdomain: 1) irq_remapping_get_ir_irq_domain(): get irqdomain associated with an interrupt remapping unit. IOAPIC/HPET drivers use this interface to get parent interrupt remapping irqdomain. 2)

[Patch Part1 v7 07/38] x86/dmar: Use new irqdomain interfaces to allocate/free IRQ

2015-01-19 Thread Jiang Liu
Use new irqdomain interfaces to allocate/free IRQ for DMAR and interrupt remapping, so we could kill GENERIC_IRQ_LEGACY_ALLOC_HWIRQ later. The private definition of irq_alloc_hwirqs()/irq_free_hwirqs() are temporary solution, it will be removed once we have converted interrupt remapping driver to

[Patch Part1 v7 13/38] x86/MSI: Use hierarchy irqdomain to manage MSI interrupts

2015-01-19 Thread Jiang Liu
Enhance MSI code to support hierarchy irqdomain, it helps to make the architecture more clear. Signed-off-by: Jiang Liu jiang@linux.intel.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Tony Luck tony.l...@intel.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc:

[Patch Part1 v7 17/38] irq_remapping: Clean up unused MSI related code

2015-01-19 Thread Jiang Liu
Now MSI interrupt has been converted to new hierarchy irqdomain interfaces, so kill legacy MSI related code and interfaces. Signed-off-by: Jiang Liu jiang@linux.intel.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Tony Luck tony.l...@intel.com Cc: Greg Kroah-Hartman

[Patch Part1 v7 10/38] irq_remapping/vt-d: Enhance Intel IR driver to suppport hierarchy irqdomain

2015-01-19 Thread Jiang Liu
Enhance Intel interrupt remapping driver to support hierarchy irqdomain, it will simplify the code eventually. It also implements intel_ir_chip to support stacked irq_chip. Signed-off-by: Jiang Liu jiang@linux.intel.com Acked-by: Joerg Roedel jroe...@suse.de Cc: Konrad Rzeszutek Wilk

[Patch Part1 v7 15/38] irq_remapping/vt-d: Clean up unused MSI related code

2015-01-19 Thread Jiang Liu
Now MSI interrupt has been converted to new hierarchy irqdomain interfaces, so kill legacy MSI related code. Signed-off-by: Jiang Liu jiang@linux.intel.com Acked-by: Joerg Roedel jroe...@suse.de Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Tony Luck tony.l...@intel.com Cc: Greg

[Patch Part1 v7 16/38] irq_remapping/amd: Clean up unused MSI related code

2015-01-19 Thread Jiang Liu
Now MSI interrupt has been converted to new hierarchy irqdomain interfaces, so kill legacy MSI related code. Signed-off-by: Jiang Liu jiang@linux.intel.com Acked-by: Joerg Roedel jroe...@suse.de Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Tony Luck tony.l...@intel.com Cc: Greg

[Patch Part2 v4 06/33] x86/irq: Kill x86_io_apic_ops.eoi_ioapic_pin and related interfaces

2015-01-19 Thread Jiang Liu
Now there is no user of x86_io_apic_ops.eoi_ioapic_pin anymore, so kill it. Signed-off-by: Jiang Liu jiang@linux.intel.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Tony Luck tony.l...@intel.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc: iommu@lists.linux-foundation.org

[Patch Part2 v4 03/33] x86/irq: Kill x86_io_apic_ops.print_entries and related interfaces

2015-01-19 Thread Jiang Liu
Now there is no user of x86_io_apic_ops.print_entries anymore, so kill it. Signed-off-by: Jiang Liu jiang@linux.intel.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Tony Luck tony.l...@intel.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc: iommu@lists.linux-foundation.org

[Patch Part2 v4 04/33] x86/irq: Kill x86_io_apic_ops.setup_entry and related interfaces

2015-01-19 Thread Jiang Liu
Now there is no user of x86_io_apic_ops.setup_entry anymore, so kill it. Signed-off-by: Jiang Liu jiang@linux.intel.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Tony Luck tony.l...@intel.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc: iommu@lists.linux-foundation.org Cc:

[Patch Part2 v4 05/33] x86/irq: Kill x86_io_apic_ops.set_affinity and related interfaces

2015-01-19 Thread Jiang Liu
Now there is no user of x86_io_apic_ops.set_affinity anymore, so kill it. Signed-off-by: Jiang Liu jiang@linux.intel.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Tony Luck tony.l...@intel.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc: iommu@lists.linux-foundation.org

[Patch Part2 v4 09/33] irq_remapping: Clean up unsued code to support IOAPIC

2015-01-19 Thread Jiang Liu
Now we have converted to hierarchy irqdomain, so clean up unused code. Signed-off-by: Jiang Liu jiang@linux.intel.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Tony Luck tony.l...@intel.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc: iommu@lists.linux-foundation.org Cc:

[Patch Part2 v4 11/33] irq_remapping/amd: Clean up unsued code

2015-01-19 Thread Jiang Liu
Now we have converted to hierarchy irqdomain, so clean up unused code. Signed-off-by: Jiang Liu jiang@linux.intel.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Tony Luck tony.l...@intel.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc: iommu@lists.linux-foundation.org Cc:

[Patch Part2 v4 12/33] irq_remapping: Clean up unused interfaces

2015-01-19 Thread Jiang Liu
Now we have converted to hierarchy irqdomain, so clean up unused interfaces. Signed-off-by: Jiang Liu jiang@linux.intel.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Tony Luck tony.l...@intel.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc: iommu@lists.linux-foundation.org

[Patch Part2 v4 13/33] x86/irq: Kill irq_cfg.irq_remapped

2015-01-19 Thread Jiang Liu
Now there is no user of irq_cfg.irq_remapped, so kill it. Signed-off-by: Jiang Liu jiang@linux.intel.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Tony Luck tony.l...@intel.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas

[Patch Part2 v4 10/33] irq_remapping/vt-d: Clean up unsued code

2015-01-19 Thread Jiang Liu
Now we have converted to hierarchy irqdomain, so clean up unused code. Signed-off-by: Jiang Liu jiang@linux.intel.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Tony Luck tony.l...@intel.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc: iommu@lists.linux-foundation.org Cc:

[Patch Part2 v4 15/33] irq_remapping/amd: Move struct irq_2_irte into amd_iommu.c

2015-01-19 Thread Jiang Liu
Now only amd_iommu.c access irq_2_irte, so move it from hw_irq.h into amd_iommu.c. Signed-off-by: Jiang Liu jiang@linux.intel.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Tony Luck tony.l...@intel.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc:

[Patch Part2 v4 14/33] irq_remapping/vt-d: Move struct irq_2_iommu into intel_irq_remapping.c

2015-01-19 Thread Jiang Liu
Now only intel_irq_remapping.c access irq_2_iommu, so move it from hw_irq.h into intel_irq_remapping.c. Signed-off-by: Jiang Liu jiang@linux.intel.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Tony Luck tony.l...@intel.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc:

[Patch Part2 v4 25/33] x86/irq: Move check of cfg-move_in_progress into send_cleanup_vector()

2015-01-19 Thread Jiang Liu
Move check of cfg-move_in_progress into send_cleanup_vector() to prepare for simplifying struct irq_cfg. Signed-off-by: Jiang Liu jiang@linux.intel.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Tony Luck tony.l...@intel.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc:

Re: [PATCH v2 0/5] Generic IOMMU page table framework

2015-01-19 Thread Laurent Pinchart
Hi Will, On Monday 19 January 2015 13:18:43 Will Deacon wrote: On Mon, Jan 19, 2015 at 01:09:41PM +, j...@8bytes.org wrote: On Fri, Jan 16, 2015 at 02:01:31PM +, Will Deacon wrote: I've not received any feedback on this revision of the series, but it's working well for me and

Re: [PATCH 2/2] iommu/arm-smmu: remove homebrew PCI dma alias parsing

2015-01-19 Thread Will Deacon
On Mon, Jan 19, 2015 at 01:43:51PM +, Varun Sethi wrote: Hi Will, Hey Varun, /* * Assume Stream ID == Requester ID for now. * We need a way to describe the ID mappings in FDT. */ - pci_for_each_dma_alias(pdev,

Re: [PATCH] iommu: fix trace_unmap() to report original iova

2015-01-19 Thread Joerg Roedel
On Mon, Jan 19, 2015 at 03:04:00PM +0100, Joerg Roedel wrote: Instead of adding another variable I think it is better to just move the trace_unmap call before the unmap loop. It can actually replace the pr_debug there. Okay, forget this. I just noticed that your follow-on patch requires the

Re: [PATCH v2 0/5] Generic IOMMU page table framework

2015-01-19 Thread j...@8bytes.org
Hi Will, On Fri, Jan 16, 2015 at 02:01:31PM +, Will Deacon wrote: I've not received any feedback on this revision of the series, but it's working well for me and Laurent showed that it works with his IOMMU too. Joerg -- can I include this in my pull request for 3.20, or is there

Re: [PATCH v2 0/5] Generic IOMMU page table framework

2015-01-19 Thread j...@8bytes.org
On Mon, Jan 19, 2015 at 03:56:42PM +0200, Laurent Pinchart wrote: Yes, and I've rebased them (or actually it, it's a single patch) on v2. I haven't had time to test the result yet, I'll try to do so later tonight or tomorrow. Great! Would be good if this can go upstream with more than one

Re: [PATCH] iommu: fix trace_unmap() to report original iova

2015-01-19 Thread Joerg Roedel
On Fri, Jan 16, 2015 at 04:47:19PM -0700, Shuah Khan wrote: iommu_unmap() calls trace_unmap() with changed iova and original size. trace_unmap() should report original iova instead. Change iommu_unmap() to call trace_unmap() with original iova. Signed-off-by: Shuah Khan

Re: [PATCH v6 8/8] arm: dma-mapping: plumb our iommu mapping ops into arch_setup_dma_ops

2015-01-19 Thread Will Deacon
On Mon, Jan 19, 2015 at 12:43:06PM +, Thierry Reding wrote: On Sun, Jan 18, 2015 at 01:18:51PM +0200, Laurent Pinchart wrote: On Sunday 18 January 2015 15:54:34 Alexandre Courbot wrote: On 01/16/2015 08:18 AM, Laurent Pinchart wrote: [...] The second way is to implement a mechanism

Re: [PATCH v2 0/5] Generic IOMMU page table framework

2015-01-19 Thread Will Deacon
Hi Joerg, Thanks for the reply. On Mon, Jan 19, 2015 at 01:09:41PM +, j...@8bytes.org wrote: On Fri, Jan 16, 2015 at 02:01:31PM +, Will Deacon wrote: I've not received any feedback on this revision of the series, but it's working well for me and Laurent showed that it works with his

Re: [PATCH v10] iopoll: Introduce memory-mapped IO polling macros

2015-01-19 Thread Joerg Roedel
On Thu, Jan 15, 2015 at 10:25:11AM +, Will Deacon wrote: If you get an Ack from any of Arnd/Joerg/akpm then I'm happy to take it via the arm-smmu pull (along with the patch making use of it). Joerg, would you be ok with that? I am ok with that, but like to have another Ack for it.

Re: [PATCH v6 8/8] arm: dma-mapping: plumb our iommu mapping ops into arch_setup_dma_ops

2015-01-19 Thread Thierry Reding
On Sun, Jan 18, 2015 at 01:18:51PM +0200, Laurent Pinchart wrote: Hi Alexandre, On Sunday 18 January 2015 15:54:34 Alexandre Courbot wrote: On 01/16/2015 08:18 AM, Laurent Pinchart wrote: [...] The second way is to implement a mechanism to let drivers signal that they want to handle

Re: [PATCH v6 8/8] arm: dma-mapping: plumb our iommu mapping ops into arch_setup_dma_ops

2015-01-19 Thread Thierry Reding
On Fri, Jan 16, 2015 at 01:18:21AM +0200, Laurent Pinchart wrote: [...] The second way is to implement a mechanism to let drivers signal that they want to handle DMA mappings themselves. As the mappings need in the general case to be created before the probe function is called we can't signal

Re: [PATCH v6 8/8] arm: dma-mapping: plumb our iommu mapping ops into arch_setup_dma_ops

2015-01-19 Thread Thierry Reding
On Mon, Jan 19, 2015 at 12:50:52PM +, Will Deacon wrote: On Mon, Jan 19, 2015 at 12:43:06PM +, Thierry Reding wrote: On Sun, Jan 18, 2015 at 01:18:51PM +0200, Laurent Pinchart wrote: On Sunday 18 January 2015 15:54:34 Alexandre Courbot wrote: On 01/16/2015 08:18 AM, Laurent

RE: [PATCH 2/2] iommu/arm-smmu: remove homebrew PCI dma alias parsing

2015-01-19 Thread Varun Sethi
Hi Will, Please find my query inline. Regards Varun -Original Message- From: iommu-boun...@lists.linux-foundation.org [mailto:iommu- boun...@lists.linux-foundation.org] On Behalf Of Will Deacon Sent: Friday, January 16, 2015 10:29 PM To: alex.william...@redhat.com Cc:

Re: [PATCH 0/4] Genericise the IOVA allocator

2015-01-19 Thread Joerg Roedel
On Mon, Jan 12, 2015 at 05:51:12PM +, Robin Murphy wrote: Robin Murphy (4): iommu: allow building iova.c independently iommu: consolidate IOVA allocator code iommu: make IOVA domain low limit flexible iommu: make IOVA domain page size explicit Applied to core, thanks Robin.

Re: [PATCH v4 18/18] iommu: exynos: add callback for initializing devices from device tree

2015-01-19 Thread Javier Martinez Canillas
Hello Marek, I wanted to test your IOMMU series on an Exynos5420 Peach Pit but the kernel hangs with your series + dependencies on top of 3.19-rc5. Bisecting I found that $subject is the offending commit. I've pushed my test branch [0] in case I missed something. On Fri, Jan 16, 2015 at 10:13

Re: [PATCH v6 8/8] arm: dma-mapping: plumb our iommu mapping ops into arch_setup_dma_ops

2015-01-19 Thread Arnd Bergmann
On Monday 19 January 2015 13:36:24 Thierry Reding wrote: On Fri, Jan 16, 2015 at 01:18:21AM +0200, Laurent Pinchart wrote: On Thursday 15 January 2015 11:12:17 Will Deacon wrote: On Thu, Jan 15, 2015 at 08:28:44AM +, Thierry Reding wrote: On Wed, Jan 14, 2015 at 10:46:10AM +,

Re: [PATCH v6 8/8] arm: dma-mapping: plumb our iommu mapping ops into arch_setup_dma_ops

2015-01-19 Thread Arnd Bergmann
On Sunday 18 January 2015 13:18:51 Laurent Pinchart wrote: On Sunday 18 January 2015 15:54:34 Alexandre Courbot wrote: On 01/16/2015 08:18 AM, Laurent Pinchart wrote: On Thursday 15 January 2015 11:12:17 Will Deacon wrote: On Thu, Jan 15, 2015 at 08:28:44AM +, Thierry Reding wrote:

Re: [PATCH v10] iopoll: Introduce memory-mapped IO polling macros

2015-01-19 Thread Will Deacon
On Mon, Jan 19, 2015 at 12:43:48PM +, Joerg Roedel wrote: On Thu, Jan 15, 2015 at 10:25:11AM +, Will Deacon wrote: If you get an Ack from any of Arnd/Joerg/akpm then I'm happy to take it via the arm-smmu pull (along with the patch making use of it). Joerg, would you be ok with

Re: [RFC PATCH v4 0/8] Introduce automatic DMA configuration for IOMMU masters

2015-01-19 Thread Will Deacon
(resurrecting an old thread) On Fri, Nov 14, 2014 at 08:01:56PM +, Arnd Bergmann wrote: On Friday 14 November 2014 19:27:54 Will Deacon wrote: At the moment, iommu_ops is a structure that can get used for any number of iommus of the same type, but by putting per-device private data

Re: [PATCH v10] iopoll: Introduce memory-mapped IO polling macros

2015-01-19 Thread Arnd Bergmann
On Monday 19 January 2015 14:40:28 Will Deacon wrote: On Mon, Jan 19, 2015 at 12:43:48PM +, Joerg Roedel wrote: On Thu, Jan 15, 2015 at 10:25:11AM +, Will Deacon wrote: If you get an Ack from any of Arnd/Joerg/akpm then I'm happy to take it via the arm-smmu pull (along with

Re: [PATCH v6 8/8] arm: dma-mapping: plumb our iommu mapping ops into arch_setup_dma_ops

2015-01-19 Thread Thierry Reding
On Mon, Jan 19, 2015 at 04:52:41PM +0100, Arnd Bergmann wrote: On Monday 19 January 2015 13:36:24 Thierry Reding wrote: On Fri, Jan 16, 2015 at 01:18:21AM +0200, Laurent Pinchart wrote: On Thursday 15 January 2015 11:12:17 Will Deacon wrote: On Thu, Jan 15, 2015 at 08:28:44AM +,

Re: [PATCH v11 00/20] VFIO support for platform and ARM AMBA devices

2015-01-19 Thread Eric Auger
Hi Baptiste, sorry I was off on Friday. you're right I missed the masked field was reset on init. Nethertheless with current QEMU VFIO code, IRQ runs on the first run and not on the second one. I investigate on my side ... Best Regards Eric On 01/16/2015 02:25 PM, Baptiste Reynal wrote:

Re: [PATCH 1/2] iommu: return dma alias from iommu_group_get_for_pci_dev()

2015-01-19 Thread Will Deacon
On Fri, Jan 16, 2015 at 09:11:03PM +, Alex Williamson wrote: On Fri, 2015-01-16 at 20:33 +, Will Deacon wrote: On Fri, Jan 16, 2015 at 05:41:51PM +, Alex Williamson wrote: On Fri, 2015-01-16 at 16:58 +, Will Deacon wrote: Some IOMMU drivers (e.g. the ARM SMMU) require not

Re: [PATCH v11 00/20] VFIO support for platform and ARM AMBA devices

2015-01-19 Thread Eric Auger
Hi Baptiste, I think what happens on the second qemu run is: an IRQ hits immediatly after request_irq automasked handler sets masked = true in vfio_set_trigger following condition becomes true if (irq-masked) disable_irq_nosync(irq-hwirq); IRQ is disabled twice, in

Re: [PATCH v6 8/8] arm: dma-mapping: plumb our iommu mapping ops into arch_setup_dma_ops

2015-01-19 Thread Thierry Reding
On Mon, Jan 19, 2015 at 01:34:24PM +0200, Laurent Pinchart wrote: Hi Will, On Monday 19 January 2015 11:12:02 Will Deacon wrote: On Sun, Jan 18, 2015 at 11:18:51AM +, Laurent Pinchart wrote: On Sunday 18 January 2015 15:54:34 Alexandre Courbot wrote: On 01/16/2015 08:18 AM, Laurent

Re: [PATCH v6 8/8] arm: dma-mapping: plumb our iommu mapping ops into arch_setup_dma_ops

2015-01-19 Thread Will Deacon
On Sun, Jan 18, 2015 at 11:18:51AM +, Laurent Pinchart wrote: On Sunday 18 January 2015 15:54:34 Alexandre Courbot wrote: On 01/16/2015 08:18 AM, Laurent Pinchart wrote: On Thursday 15 January 2015 11:12:17 Will Deacon wrote: On Thu, Jan 15, 2015 at 08:28:44AM +, Thierry Reding

Re: [PATCH v6 8/8] arm: dma-mapping: plumb our iommu mapping ops into arch_setup_dma_ops

2015-01-19 Thread Thierry Reding
On Fri, Jan 16, 2015 at 01:18:21AM +0200, Laurent Pinchart wrote: On Thursday 15 January 2015 11:12:17 Will Deacon wrote: On Thu, Jan 15, 2015 at 08:28:44AM +, Thierry Reding wrote: On Wed, Jan 14, 2015 at 10:46:10AM +, Will Deacon wrote: On Wed, Jan 14, 2015 at 09:00:24AM +,

Re: [PATCH v4 17/18] iommu: exynos: init from dt-specific callback instead of initcall

2015-01-19 Thread Will Deacon
On Mon, Jan 19, 2015 at 01:11:07AM +, Laurent Pinchart wrote: On Friday 16 January 2015 10:13:11 Marek Szyprowski wrote: This patch introduces IOMMU_OF_DECLARE-based initialization to the driver, which replaces subsys_initcall-based procedure. exynos_iommu_of_setup ensures that each

Re: [PATCH v6 8/8] arm: dma-mapping: plumb our iommu mapping ops into arch_setup_dma_ops

2015-01-19 Thread Laurent Pinchart
Hi Will, On Monday 19 January 2015 11:12:02 Will Deacon wrote: On Sun, Jan 18, 2015 at 11:18:51AM +, Laurent Pinchart wrote: On Sunday 18 January 2015 15:54:34 Alexandre Courbot wrote: On 01/16/2015 08:18 AM, Laurent Pinchart wrote: On Thursday 15 January 2015 11:12:17 Will Deacon

Re: [PATCH] iommu: fix trace_map() to report original iova and original size

2015-01-19 Thread Shuah Khan
On 01/15/2015 07:29 PM, Shuah Khan wrote: iommu_map() calls trace_map() with iova and size. trace_map() should report original iova and original size as opposed to iova and size after they get changed during mapping. size is always zero at the end of mapping which is useless to report and

Re: [PATCH v11 00/20] VFIO support for platform and ARM AMBA devices

2015-01-19 Thread Baptiste Reynal
Hi Eric, Thanks for taking time about this issue. I agree with you, there is a problem here. While I think on a better fix and to be sure the problem is here, may you try this patch and tell me if the problem is solved ? (This should work as the automasked_irq_handler doesn't do anything if the

Re: [PATCH v6 8/8] arm: dma-mapping: plumb our iommu mapping ops into arch_setup_dma_ops

2015-01-19 Thread Arnd Bergmann
On Monday 19 January 2015 17:21:14 Thierry Reding wrote: On Mon, Jan 19, 2015 at 04:52:41PM +0100, Arnd Bergmann wrote: On Monday 19 January 2015 13:36:24 Thierry Reding wrote: On Fri, Jan 16, 2015 at 01:18:21AM +0200, Laurent Pinchart wrote: On Thursday 15 January 2015 11:12:17 Will

Re: [PATCH v11 00/20] VFIO support for platform and ARM AMBA devices

2015-01-19 Thread Eric Auger
Hi Baptiste, yes it fixes the issue in my use case. Best Regards Eric On 01/19/2015 06:00 PM, Baptiste Reynal wrote: Hi Eric, Thanks for taking time about this issue. I agree with you, there is a problem here. While I think on a better fix and to be sure the problem is here, may you try

Re: [PATCH v11 00/20] VFIO support for platform and ARM AMBA devices

2015-01-19 Thread Alex Williamson
On Tue, 2015-01-06 at 11:48 +0100, Antonios Motakis wrote: This patch series aims to implement VFIO support for platform devices that reside behind an IOMMU. Examples of such devices are devices behind an ARM SMMU, or behind a Samsung Exynos System MMU. The API used is based on the existing