Re: How to ensure that different peripherals getting different IOVA address in kernel?

2015-09-22 Thread Jiang Liu
On 2015/9/23 9:55, chenfeng wrote: > Hi all, > > In IOMMU architecture , how to make two different peripherals share the same > page table ? > > In other words , is there a mechanism or structure to make two peripherals > get completely different address. > > eg: > > peri-A、peri-B and peri-C

[Debug Patch] Collect more information about the regression

2015-07-30 Thread Jiang Liu
g multiple-MSI at hand. So may I remotely access your system from Intel internal network? That will definitely speed up fix. Thanks! Gerry Signed-off-by: Jiang Liu --- drivers/iommu/amd_iommu.c | 15 +-- drivers/iommu/intel_irq_remapping.c |4 2 files changed, 17

Re: [Bugfix]

2015-07-30 Thread Jiang Liu
Hi all, Sorry, send email too quick. Will resend with correct title. Thanks! Gerry On 2015/7/31 0:44, Jiang Liu wrote: > Hi Alexander, Mark, Alex, > Could you please help to apply the debug patch and send me back > the dmesg? Please also help to turn kernel paramemter &q

[Bugfix]

2015-07-30 Thread Jiang Liu
g multiple-MSI at hand. So may I remotely access your system from Intel internal network? That will definitely speed up fix. Thanks! Gerry Signed-off-by: Jiang Liu --- drivers/iommu/amd_iommu.c | 15 +-- drivers/iommu/intel_irq_remapping.c |4 2 files changed, 17

Re: Panic when cpu hot-remove

2015-06-25 Thread Jiang Liu
On 2015/6/18 15:54, fandongdong wrote: > > > 在 2015/6/18 15:27, fandongdong 写道: >> >> >> 在 2015/6/18 13:40, Jiang Liu 写道: >>> On 2015/6/17 22:36, Alex Williamson wrote: >>>> On Wed, 2015-06-17 at 13:52 +0200, Joerg Roedeljoro wrote: >>&

Re: Panic when cpu hot-remove

2015-06-17 Thread Jiang Liu
On 2015/6/17 22:36, Alex Williamson wrote: > On Wed, 2015-06-17 at 13:52 +0200, Joerg Roedeljoro wrote: >> On Wed, Jun 17, 2015 at 10:42:49AM +, 范冬冬 wrote: >>> Hi maintainer, >>> >>> We found a problem that a panic happen when cpu was hot-removed. We also >>> trace the problem according to the

Re: [PATCH] intel_irq_remapping: fix a comment error

2015-06-03 Thread Jiang Liu
On 2015/6/3 16:20, xiaofeng.yan wrote: > change tabke to take. > > Signed-off-by: xiaofeng.yan > --- > drivers/iommu/intel_irq_remapping.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/iommu/intel_irq_remapping.c > b/drivers/iommu/intel_irq_remapping.c > in

[Patch 1/2] irq_remapping/vt-d: Fix regression caused by commit b106ee63abcc

2015-05-03 Thread Jiang Liu
and commit message is written by Jiang. Signed-off-by: Thomas Gleixner Signed-off-by: Jiang Liu --- Hi Thomas, I missed this patch when rebasing my patch set. It may be fold into commit b106ee63abcc ("irq_remapping/vt-d: Enhance Intel IR driver to support hierarchical irqdomains&q

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

2015-04-13 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 Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafae

[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 Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J

[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 Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy

[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 Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap 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 Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc: Yinghai Lu Cc

[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 Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap 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 Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap 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 Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc

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

2015-04-13 Thread Jiang Liu
Now there is no user of x86_io_apic_ops.set_affinity anymore, so kill it. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap 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 Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap 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 Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc

[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 Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc

[Patch Part1 v8 28/37] irq_remapping: Kill unused function irq_remapping_print_chip()

2015-04-12 Thread Jiang Liu
Now there's no user of irq_remapping_print_chip(), so kill it. Signed-off-by: Jiang Liu --- arch/x86/include/asm/irq_remapping.h |2 -- drivers/iommu/irq_remapping.c| 13 - 2 files changed, 15 deletions(-) diff --git a/arch/x86/include/asm/irq_remapping.h b/arc

[Patch Part1 v8 17/37] irq_remapping: Clean up unused MSI related code

2015-04-12 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 Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin

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

2015-04-12 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 Cc: Konrad Rzeszutek

[Patch Part1 v8 16/37] irq_remapping/amd: Clean up unused MSI related code

2015-04-12 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 Acked-by: Joerg Roedel Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin

[Patch Part1 v8 13/37] x86/MSI: Use hierarchy irqdomain to manage MSI interrupts

2015-04-12 Thread Jiang Liu
Enhance MSI code to support hierarchy irqdomain, it helps to make the architecture more clear. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc

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

2015-04-12 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 Acked-by: Joerg Roedel Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin

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

2015-04-12 Thread Jiang Liu
Prepare for support hierarchy irqdomain by changing function prototypes, should be no function changes. Signed-off-by: Jiang Liu Acked-by: Joerg Roedel Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin

[Patch Part1 v8 11/37] irq_remapping/amd: Enhance AMD IR driver to support hierarchy irqdomain

2015-04-12 Thread Jiang Liu
Enhance AMD interrupt remapping driver to support hierarchy irqdomain, it will simplify the code eventually. Signed-off-by: Jiang Liu Acked-by: Joerg Roedel Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin

[Patch Part1 v8 10/37] irq_remapping/vt-d: Enhance Intel IR driver to support hierarchy irqdomain

2015-04-12 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 Acked-by: Joerg Roedel Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc

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

2015-04-12 Thread Jiang Liu
use irqdomain framework. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc: Yinghai Lu Cc: Borislav Petkov Cc: Joerg Roedel

[Patch Part1 v8 08/37] irq_remapping: Introduce new interfaces to support hierarchy irqdomain

2015-04-12 Thread Jiang Liu
, compose_remapped_msi_msg, setup_hpet_msi_remapped, setup_remapped_irq. 3) Simplify x86_io_apic_ops and x86_msi. We could achieve a much more clear architecture with all these changes applied. Signed-off-by: Jiang Liu Acked-by: Joerg Roedel Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman

[RFC Patch V1] iommu/vt-d: Fix build failure caused by incorrect Kconfig

2015-02-01 Thread Jiang Liu
&& ACPI && (X86 || IA64_GENERIC)) warning: (IA64) selects PM which has unmet direct dependencies (PM_SLEEP || PM_RUNTIME) warning: (IA64_DIG_VTD) selects INTEL_IOMMU which has unmet direct dependencies (IOMMU_SUPPORT && PCI_MSI && ACPI && (X86 || IA64_GENERIC)) S

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

2015-01-27 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 Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap 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 Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafae

[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 Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J

[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 Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy

[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 Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc: Yinghai Lu 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 Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc

[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 Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap 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 Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc

[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 Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc

[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 Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc

[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 Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap 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 Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc

[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 Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc

[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 --- arch/x86/include/asm/irq_remapping.h |2 -- drivers/iommu/irq_remapping.c| 13 - 2 files changed, 15 deletions(-) diff --git a/arch/x86/include/asm/irq_remapping.h b/arc

[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 Cc: Konrad Rzeszutek

[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 Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin

[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 Acked-by: Joerg Roedel Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin

[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 Acked-by: Joerg Roedel Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin

[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 Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc

[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 Acked-by: Joerg Roedel Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc

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

2015-01-19 Thread Jiang Liu
, compose_remapped_msi_msg, setup_hpet_msi_remapped, setup_remapped_irq. 3) Simplify x86_io_apic_ops and x86_msi. We could achieve a much more clear architecture with all these changes applied. Signed-off-by: Jiang Liu Acked-by: Joerg Roedel Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman

[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 Acked-by: Joerg Roedel Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin

[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 Acked-by: Joerg Roedel Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin

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

2015-01-19 Thread Jiang Liu
use irqdomain framework. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: iommu@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc: Yinghai Lu Cc: Borislav Petkov Cc: Joerg Roedel

[Patch v2 14/16] iommu/irq_remapping: Refine function irq_remapping_prepare() for maintenance

2015-01-06 Thread Jiang Liu
Assign intel_irq_remap_ops to remap_ops only if intel_irq_remap_ops.prepare() succeeds. Signed-off-by: Jiang Liu --- drivers/iommu/irq_remapping.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/iommu/irq_remapping.c b/drivers/iommu/irq_remapping.c

[Patch v2 11/16] x86/apic: Only disable CPU x2apic mode when necessary

2015-01-06 Thread Jiang Liu
abled, otherwise X2APIC will always be disabled when CONFIG_HYPERVISOR_GUEST is disabled and IR doesn't work in X2APIC mode. Signed-off-by: Jiang Liu --- arch/x86/kernel/apic/apic.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/k

[Patch v2 16/16] iommu/irq_remapping: Normailize the way to detect whether IR is enabled

2015-01-06 Thread Jiang Liu
Refine code by normailizing the way to detect whether IR is enabled. Signed-off-by: Jiang Liu --- drivers/iommu/irq_remapping.c | 38 ++ 1 file changed, 14 insertions(+), 24 deletions(-) diff --git a/drivers/iommu/irq_remapping.c b/drivers/iommu

[Patch v2 13/16] iommu/irq_remapping: Kill function irq_remapping_supported() and related code

2015-01-06 Thread Jiang Liu
Simplify irq_remapping code by killing irq_remapping_supported() and related interfaces. Joerg posted a similar patch at https://lkml.org/lkml/2014/12/15/490, so assume an signed-off from Joerg. Signed-off-by: Jiang Liu Signed-off-by: Joerg Roedel --- arch/x86/include/asm/irq_remapping.h

[Patch v2 15/16] iommu/irq_remapping: Change variable disable_irq_remap to be static

2015-01-06 Thread Jiang Liu
Change variable disable_irq_remap to be static and simplify the code. Signed-off-by: Jiang Liu --- drivers/iommu/amd_iommu_init.c |6 +- drivers/iommu/intel_irq_remapping.c |5 - drivers/iommu/irq_remapping.c |3 +-- drivers/iommu/irq_remapping.h |2

[Patch v2 12/16] iommu/amd: Check for irq-remap support amd_iommu_prepare()

2015-01-06 Thread Jiang Liu
From: Joerg Roedel This allows to get rid of the irq_remapping_supported() function and all its call-backs into the Intel and AMD IOMMU drivers. Signed-off-by: Joerg Roedel Signed-off-by: Jiang Liu --- drivers/iommu/amd_iommu_init.c |3 +++ 1 file changed, 3 insertions(+) diff --git a

[Patch v2 09/16] iommu/vt-d: Allocate IRQ remapping data structures only for all IOMMUs

2015-01-06 Thread Jiang Liu
ion intel_enable_irq_remapping(). Signed-off-by: Joerg Roedel Signed-off-by: Jiang Liu --- drivers/iommu/intel_irq_remapping.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/iommu/intel_irq_remapping.c b/drivers/iommu/intel_irq_remapping.c in

[Patch v2 07/16] x86/apic: Refine enable_IR_x2apic() and related functions

2015-01-06 Thread Jiang Liu
than 255. So treat IR in XAPIC mode as same as IR is disabled when enabling CPU X2APIC. Signed-off-by: Jiang Liu --- arch/x86/kernel/apic/apic.c | 85 +-- 1 file changed, 41 insertions(+), 44 deletions(-) diff --git a/arch/x86/kernel/apic/apic.c b/arch

[Patch v2 04/16] x86/apic: Panic if kernel doesn't support x2apic but BIOS has enabled x2apic

2015-01-06 Thread Jiang Liu
m wakeup disabled by ACPI [1.178612] acpiphp: Slot [8] registered [1.183095] pci :00:02.0: PCI bridge to [bus 01] [1.188867] acpiphp: Slot [2] registered Signed-off-by: Jiang Liu --- arch/x86/kernel/apic/apic.c |8 1 file changed, 8 insertions(+) diff --git a/arch/x86/

[Patch v2 08/16] iommu/vt-d: Prepare for killing function irq_remapping_supported()

2015-01-06 Thread Jiang Liu
Prepare for killing function irq_remapping_supported() by moving code from intel_irq_remapping_supported() into intel_prepare_irq_remapping(). Combined with patch from Joerg at https://lkml.org/lkml/2014/12/15/487, so assume an signed-off from Joerg. Signed-off-by: Jiang Liu Signed-off-by

[Patch v2 10/16] iommu/vt-d: Allow IR works in XAPIC mode though CPU works in X2APIC mode

2015-01-06 Thread Jiang Liu
fault reason 36] Detected reserved fields in the IRTE entry [ 37.911192] dmar: INTR-REMAP: Request device [[f0:1f.7] fault index 2 Signed-off-by: Jiang Liu --- drivers/iommu/intel_irq_remapping.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/

[Patch v2 06/16] x86/apic: Correctly detect X2APIC status in function enable_IR()

2015-01-06 Thread Jiang Liu
X2APIC will be disabled if user specifies "nox2apic" on kernel command line, even when x2apic_preenabled is true. So correctly detect X2APIC status by using x2apic_enabled() instead of x2apic_preenabled. Signed-off-by: Jiang Liu --- arch/x86/kernel/apic/apic.c |2 +- 1 file

[Patch v2 00/16] Refine IR initialization flow and fixes bugs related to X2APIC

2015-01-06 Thread Jiang Liu
also passes Fengguang's 0day test suites. Due to lack of hardware platforms for tests, tests on AMD platform are welcomed! V1->V2: 1) Rebase onto v3.19-rc3 Jiang Liu (11): x86/apic: Panic if kernel doesn't support x2apic but BIOS has enabled x2apic x86/apic: Kill useless varia

[Patch v2 01/16] iommu, x86: Restructure setup of the irq remapping feature

2015-01-06 Thread Jiang Liu
required to enable irq remapping. Signed-off-by: Thomas Gleixner Tested-by: Borislav Petkov Acked-by: Joerg Roedel Cc: Jiang Liu Cc: x...@kernel.org Link: http://lkml.kernel.org/r/20141205084147.232633...@linutronix.de Signed-off-by: Thomas Gleixner Signed-off-by: Jiang Liu --- arch/x86/

[Patch v2 03/16] iommu/vt-d: Convert allocations to GFP_KERNEL

2015-01-06 Thread Jiang Liu
From: Thomas Gleixner No reason anymore to do GFP_ATOMIC allocations which are not harmful in the normal bootup case, but matter in the physical hotplug scenario. Signed-off-by: Thomas Gleixner Tested-by: Borislav Petkov Acked-by: Joerg Roedel Cc: Jiang Liu Cc: x...@kernel.org Link: http

[Patch v2 05/16] x86/apic: Kill useless variable x2apic_enabled in function enable_IR_x2apic()

2015-01-06 Thread Jiang Liu
Local variable x2apic_enabled has been assigned to but never referred, so kill it. Signed-off-by: Jiang Liu --- arch/x86/kernel/apic/apic.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index 8b58e23bc5e8

[Patch v2 02/16] iommu/vt-d: Move iommu preparatory allocations to irq_remap_ops.prepare

2015-01-06 Thread Jiang Liu
get rid of the horrible hackaround in irq_domain_add() later. [Jiang] Rebased onto v3.19 Signed-off-by: Thomas Gleixner Tested-by: Borislav Petkov Acked-by: Joerg Roedel Cc: Jiang Liu Cc: x...@kernel.org Link: http://lkml.kernel.org/r/20141205084147.313026...@linutronix.de Signed-off-by

Re: [v3 06/26] iommu, x86: No need to migrating irq for VT-d Posted-Interrupts

2014-12-23 Thread Jiang Liu
On 2014/12/24 10:32, Zhang, Yang Z wrote: > Jiang Liu wrote on 2014-12-24: >> On 2014/12/24 9:38, Zhang, Yang Z wrote: >>> Paolo Bonzini wrote on 2014-12-23: >>>> >>>> >>>> On 23/12/2014 10:07, Wu, Feng wrote: >>>>>> On 23/12/

Re: [v3 06/26] iommu, x86: No need to migrating irq for VT-d Posted-Interrupts

2014-12-23 Thread Jiang Liu
On 2014/12/24 9:38, Zhang, Yang Z wrote: > Paolo Bonzini wrote on 2014-12-23: >> >> >> On 23/12/2014 10:07, Wu, Feng wrote: On 23/12/2014 01:37, Zhang, Yang Z wrote: > I don't quite understand it. If user set an interrupt's affinity > to a CPU, but he still see the interrupt delivers t

[Patch v1 15/17] iommu/irq_remapping: Refine function irq_remapping_prepare() for maintenance

2014-12-16 Thread Jiang Liu
Assign intel_irq_remap_ops to remap_ops only if intel_irq_remap_ops.prepare() succeeds. Signed-off-by: Jiang Liu --- drivers/iommu/irq_remapping.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/iommu/irq_remapping.c b/drivers/iommu/irq_remapping.c

[Patch v1 13/17] iommu/amd: Check for irq-remap support amd_iommu_prepare()

2014-12-16 Thread Jiang Liu
From: Joerg Roedel This allows to get rid of the irq_remapping_supported() function and all its call-backs into the Intel and AMD IOMMU drivers. Signed-off-by: Joerg Roedel Signed-off-by: Jiang Liu --- drivers/iommu/amd_iommu_init.c |3 +++ 1 file changed, 3 insertions(+) diff --git a

[Patch v1 14/17] iommu/irq_remapping: Kill function irq_remapping_supported() and related code

2014-12-16 Thread Jiang Liu
Simplify irq_remapping code by killing irq_remapping_supported() and related interfaces. Joerg posted a similar patch at https://lkml.org/lkml/2014/12/15/490, so assume an signed-off from Joerg. Signed-off-by: Jiang Liu Signed-off-by: Joerg Roedel --- arch/x86/include/asm/irq_remapping.h

[Patch v1 16/17] iommu/irq_remapping: Change variable disable_irq_remap to be static

2014-12-16 Thread Jiang Liu
Change variable disable_irq_remap to be static and simplify the code. Signed-off-by: Jiang Liu --- drivers/iommu/amd_iommu_init.c |6 +- drivers/iommu/intel_irq_remapping.c |5 - drivers/iommu/irq_remapping.c |3 +-- drivers/iommu/irq_remapping.h |2

[Patch v1 17/17] iommu/irq_remapping: Normailize the way to detect whether IR is enabled

2014-12-16 Thread Jiang Liu
Refine code by normailizing the way to detect whether IR is enabled. Signed-off-by: Jiang Liu --- drivers/iommu/irq_remapping.c | 38 ++ 1 file changed, 14 insertions(+), 24 deletions(-) diff --git a/drivers/iommu/irq_remapping.c b/drivers/iommu

[Patch v1 08/17] x86/apic: Refine enable_IR_x2apic() and related functions

2014-12-16 Thread Jiang Liu
than 255. So treat IR in XAPIC mode as same as IR is disabled when enabling CPU X2APIC. Signed-off-by: Jiang Liu --- arch/x86/kernel/apic/apic.c | 85 +-- 1 file changed, 41 insertions(+), 44 deletions(-) diff --git a/arch/x86/kernel/apic/apic.c b/arch

[Patch v1 02/17] iommu, x86: Restructure setup of the irq remapping feature

2014-12-16 Thread Jiang Liu
required to enable irq remapping. Signed-off-by: Thomas Gleixner Tested-by: Borislav Petkov Acked-by: Joerg Roedel Cc: Jiang Liu Cc: x...@kernel.org Link: http://lkml.kernel.org/r/20141205084147.232633...@linutronix.de Signed-off-by: Thomas Gleixner Signed-off-by: Jiang Liu --- arch/x86/

[Patch v1 12/17] x86/apic: Only disable CPU x2apic mode when necessary

2014-12-16 Thread Jiang Liu
abled, otherwise X2APIC will always be disabled when CONFIG_HYPERVISOR_GUEST is disabled and IR doesn't work in X2APIC mode. Signed-off-by: Jiang Liu --- arch/x86/kernel/apic/apic.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/k

[Patch v1 11/17] iommu/vt-d: Allow IR works in XAPIC mode though CPU works in X2APIC mode

2014-12-16 Thread Jiang Liu
fault reason 36] Detected reserved fields in the IRTE entry [ 37.911192] dmar: INTR-REMAP: Request device [[f0:1f.7] fault index 2 Signed-off-by: Jiang Liu --- drivers/iommu/intel_irq_remapping.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/

[Patch v1 09/17] iommu/vt-d: Prepare for killing function irq_remapping_supported()

2014-12-16 Thread Jiang Liu
Prepare for killing function irq_remapping_supported() by moving code from intel_irq_remapping_supported() into intel_prepare_irq_remapping(). Combined with patch from Joerg at https://lkml.org/lkml/2014/12/15/487, so assume an signed-off from Joerg. Signed-off-by: Jiang Liu Signed-off-by

[Patch v1 10/17] iommu/vt-d: Allocate IRQ remapping data structures only for all IOMMUs

2014-12-16 Thread Jiang Liu
ion intel_enable_irq_remapping(). Signed-off-by: Joerg Roedel Signed-off-by: Jiang Liu --- drivers/iommu/intel_irq_remapping.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/iommu/intel_irq_remapping.c b/drivers/iommu/intel_irq_remapping.c in

[Patch v1 04/17] iommu/vt-d: Convert allocations to GFP_KERNEL

2014-12-16 Thread Jiang Liu
From: Thomas Gleixner No reason anymore to do GFP_ATOMIC allocations which are not harmful in the normal bootup case, but matter in the physical hotplug scenario. Signed-off-by: Thomas Gleixner Tested-by: Borislav Petkov Acked-by: Joerg Roedel Cc: Jiang Liu Cc: x...@kernel.org Link: http

[Patch v1 07/17] x86/apic: Correctly detect X2APIC status in function enable_IR()

2014-12-16 Thread Jiang Liu
X2APIC will be disabled if user specifies "nox2apic" on kernel command line, even when x2apic_preenabled is true. So correctly detect X2APIC status by using x2apic_enabled() instead of x2apic_preenabled. Signed-off-by: Jiang Liu --- arch/x86/kernel/apic/apic.c |2 +- 1 file

[Patch v1 03/17] iommu/vt-d: Move iommu preparatory allocations to irq_remap_ops.prepare

2014-12-16 Thread Jiang Liu
get rid of the horrible hackaround in irq_domain_add() later. [Jiang] Rebased onto v3.19 Signed-off-by: Thomas Gleixner Tested-by: Borislav Petkov Acked-by: Joerg Roedel Cc: Jiang Liu Cc: x...@kernel.org Link: http://lkml.kernel.org/r/20141205084147.313026...@linutronix.de Signed-off-by

[Patch v1 06/17] x86/apic: Kill useless variable x2apic_enabled in function enable_IR_x2apic()

2014-12-16 Thread Jiang Liu
Local variable x2apic_enabled has been assigned to but never referred, so kill it. Signed-off-by: Jiang Liu --- arch/x86/kernel/apic/apic.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index 9c43899433e3

[Patch v1 05/17] x86/apic: Panic if kernel doesn't support x2apic but BIOS has enabled x2apic

2014-12-16 Thread Jiang Liu
m wakeup disabled by ACPI [1.178612] acpiphp: Slot [8] registered [1.183095] pci :00:02.0: PCI bridge to [bus 01] [1.188867] acpiphp: Slot [2] registered Signed-off-by: Jiang Liu --- arch/x86/kernel/apic/apic.c |8 1 file changed, 8 insertions(+) diff --git a/arch/x86/

[Patch v1 01/17] x86, smpboot: Remove pointless preempt_disable() in native_smp_prepare_cpus()

2014-12-16 Thread Jiang Liu
. Signed-off-by: Thomas Gleixner Tested-by: Borislav Petkov Cc: Jiang Liu Cc: Joerg Roedel Cc: x...@kernel.org Link: http://lkml.kernel.org/r/20141205084147.153643...@linutronix.de Signed-off-by: Thomas Gleixner Signed-off-by: Jiang Liu --- arch/x86/kernel/smpboot.c |8 +--- 1 file

[Patch v1 00/17] Refine IR initialization flow and fixes bugs related to X2APIC

2014-12-16 Thread Jiang Liu
panic. 2) Row 7 boots successfully instead of livelocking. The patch set also passes Fengguang's 0day test suites. Due to lack of hardware platforms for tests, tests on AMD platform are welcomed! Jiang Liu (11): x86/apic: Panic if kernel doesn't support x2apic but BIOS has enabled

Re: [PATCH 0/5] Fix Intel IRQ remapping initialization order

2014-12-15 Thread Jiang Liu
On 2014/12/16 3:54, Thomas Gleixner wrote: > On Mon, 15 Dec 2014, Jiang Liu wrote: >> On 2014/12/15 23:13, Joerg Roedel wrote: >>> Hi, >>> >>> here is a patch-set against tip/x86/apic to fix an initialization order >>> problem with the IRQ remap

Re: [PATCH 0/5] Fix Intel IRQ remapping initialization order

2014-12-15 Thread Jiang Liu
On 2014/12/15 23:13, Joerg Roedel wrote: > Hi, > > here is a patch-set against tip/x86/apic to fix an initialization order > problem with the IRQ remapping code. The problem is in the ordering of > the irq_remapping_prepare and irq_remapping_supported functions. > > Currently the call-order is i

[RFC Patch V1 9/9] iommu/irq_remapping: Kill unused function irq_remapping_print_chip()

2014-12-09 Thread Jiang Liu
Now there's no user of irq_remapping_print_chip(), so kill it. Signed-off-by: Jiang Liu --- arch/x86/include/asm/irq_remapping.h |2 -- drivers/iommu/irq_remapping.c| 13 - 2 files changed, 15 deletions(-) diff --git a/arch/x86/include/asm/irq_remapping.h b/arc

[RFC Patch V1 4/9] iommu/vt-d: Prepare for killing function irq_remapping_supported()

2014-12-09 Thread Jiang Liu
Prepare for killing function irq_remapping_supported() by moving code from intel_irq_remapping_supported() into intel_prepare_irq_remapping(). Signed-off-by: Jiang Liu --- drivers/iommu/intel_irq_remapping.c | 54 ++- 1 file changed, 21 insertions(+), 33

[RFC Patch V1 8/9] iommu/irq_remapping: Normailize the way to detect whether IR is enabled

2014-12-09 Thread Jiang Liu
Refine code by normailizing the way to detect whether IR is enabled. Signed-off-by: Jiang Liu --- drivers/iommu/irq_remapping.c | 30 -- 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/drivers/iommu/irq_remapping.c b/drivers/iommu/irq_remapping.c

[RFC Patch V1 7/9] iommu/irq_remapping: Change variable disable_irq_remap to be static

2014-12-09 Thread Jiang Liu
Change variable disable_irq_remap to be static for easy maintenance. Signed-off-by: Jiang Liu --- drivers/iommu/amd_iommu_init.c |5 ++--- drivers/iommu/intel_irq_remapping.c |1 - drivers/iommu/irq_remapping.c |3 +-- drivers/iommu/irq_remapping.h |2 -- 4

[RFC Patch V1 3/9] x86, apic: Refine enable_IR_x2apic() and related functions

2014-12-09 Thread Jiang Liu
Refine enable_IR_x2apic() and related functions for better maintenence. It also changes the way to treat IR in XAPIC mode as the same as IR is disabled when enabling X2APIC. Signed-off-by: Jiang Liu --- arch/x86/kernel/apic/apic.c | 78 --- 1 file

  1   2   3   4   5   >