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

2015-04-13 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 v5 10/33] irq_remapping/vt-d: Clean up unsued code

2015-04-13 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 v5 12/33] irq_remapping: Clean up unused interfaces

2015-04-13 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 v5 09/33] irq_remapping: Clean up unsued code to support IOAPIC

2015-04-13 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 v5 13/33] x86/irq: Kill irq_cfg.irq_remapped

2015-04-13 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 v5 15/33] irq_remapping/amd: Move struct irq_2_irte into amd_iommu.c

2015-04-13 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 v5 11/33] irq_remapping/amd: Clean up unsued code

2015-04-13 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 v5 04/33] x86/irq: Kill x86_io_apic_ops.setup_entry and related interfaces

2015-04-13 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 v5 06/33] x86/irq: Kill x86_io_apic_ops.eoi_ioapic_pin and related interfaces

2015-04-13 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 v5 03/33] x86/irq: Kill x86_io_apic_ops.print_entries and related interfaces

2015-04-13 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 Part1 v8 19/37] iommu/vt-d: Refine the interfaces to create IRQ for DMAR unit

2015-04-13 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 v8 28/37] irq_remapping: Kill unused function irq_remapping_print_chip()

2015-04-13 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 v8 08/37] irq_remapping: Introduce new interfaces to support hierarchy irqdomain

2015-04-13 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 v8 07/37] x86/dmar: Use new irqdomain interfaces to allocate/free IRQ

2015-04-13 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 v8 11/37] irq_remapping/amd: Enhance AMD IR driver to support hierarchy irqdomain

2015-04-13 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 v8 13/37] x86/MSI: Use hierarchy irqdomain to manage MSI interrupts

2015-04-13 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 v8 15/37] irq_remapping/vt-d: Clean up unused MSI related code

2015-04-13 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 v8 16/37] irq_remapping/amd: Clean up unused MSI related code

2015-04-13 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

Re: [PATCH] iommu: rockchip: fix build without CONFIG_OF

2015-04-13 Thread Thierry Reding
On Fri, Apr 10, 2015 at 11:58:24PM +0200, Arnd Bergmann wrote: The rockchip iommu driver references its of_device_id table from the init function, which fails to build when the table is undefined: iommu/rockchip-iommu.c: In function 'rk_iommu_init': iommu/rockchip-iommu.c:1029:35: error:

Re: SMMU 2-stage support

2015-04-13 Thread Will Deacon
On Fri, Apr 03, 2015 at 10:55:02AM +0100, Baptiste Reynal wrote: We are eventually working on the vSMMU implementation. Relying on the talk Will Deacon gave at the Linux Plumbers IOMMU Microconference on October 2014 (http://linuxplumbersconf.org/2014/ocw/proposals/2019), I tried the vSMMU