Thomas Gleixner
4d5e68330d
x86/hpet: Move clockevents into channels
...
Instead of allocating yet another data structure, move the clock event data
into the channel structure. This allows further consolidation of the
reservation code and the reuse of the cached boot config to replace the
extra flags in the clockevent data.
Signed-off-by: Thomas Gleixner <[email protected] >
Reviewed-by: Ingo Molnar <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Ricardo Neri <[email protected] >
Cc: Ashok Raj <[email protected] >
Cc: Andi Kleen <[email protected] >
Cc: Suravee Suthikulpanit <[email protected] >
Cc: Stephane Eranian <[email protected] >
Cc: Ravi Shankar <[email protected] >
Link: https://lkml.kernel.org/r/[email protected]
2019-06-28 00:57:24 +02:00
Thomas Gleixner
d2912cb15b
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
...
Based on 2 normalized pattern(s):
this program is free software you can redistribute it and or modify
it under the terms of the gnu general public license version 2 as
published by the free software foundation
this program is free software you can redistribute it and or modify
it under the terms of the gnu general public license version 2 as
published by the free software foundation #
extracted by the scancode license scanner the SPDX license identifier
GPL-2.0-only
has been chosen to replace the boilerplate/reference in 4122 file(s).
Signed-off-by: Thomas Gleixner <[email protected] >
Reviewed-by: Enrico Weigelt <[email protected] >
Reviewed-by: Kate Stewart <[email protected] >
Reviewed-by: Allison Randal <[email protected] >
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected] >
2019-06-19 17:09:55 +02:00
Nicolai Stange
447ae31667
x86: Don't include linux/irq.h from asm/hardirq.h
...
The next patch in this series will have to make the definition of
irq_cpustat_t available to entering_irq().
Inclusion of asm/hardirq.h into asm/apic.h would cause circular header
dependencies like
asm/smp.h
asm/apic.h
asm/hardirq.h
linux/irq.h
linux/topology.h
linux/smp.h
asm/smp.h
or
linux/gfp.h
linux/mmzone.h
asm/mmzone.h
asm/mmzone_64.h
asm/smp.h
asm/apic.h
asm/hardirq.h
linux/irq.h
linux/irqdesc.h
linux/kobject.h
linux/sysfs.h
linux/kernfs.h
linux/idr.h
linux/gfp.h
and others.
This causes compilation errors because of the header guards becoming
effective in the second inclusion: symbols/macros that had been defined
before wouldn't be available to intermediate headers in the #include chain
anymore.
A possible workaround would be to move the definition of irq_cpustat_t
into its own header and include that from both, asm/hardirq.h and
asm/apic.h.
However, this wouldn't solve the real problem, namely asm/harirq.h
unnecessarily pulling in all the linux/irq.h cruft: nothing in
asm/hardirq.h itself requires it. Also, note that there are some other
archs, like e.g. arm64, which don't have that #include in their
asm/hardirq.h.
Remove the linux/irq.h #include from x86' asm/hardirq.h.
Fix resulting compilation errors by adding appropriate #includes to *.c
files as needed.
Note that some of these *.c files could be cleaned up a bit wrt. to their
set of #includes, but that should better be done from separate patches, if
at all.
Signed-off-by: Nicolai Stange <[email protected] >
Signed-off-by: Thomas Gleixner <[email protected] >
2018-08-05 09:53:13 +02:00
Thomas Gleixner
a31e58e129
x86/apic: Switch all APICs to Fixed delivery mode
...
Some of the APIC incarnations are operating in lowest priority delivery
mode. This worked as long as the vector management code allocated the same
vector on all possible CPUs for each interrupt.
Lowest priority delivery mode does not necessarily respect the affinity
setting and may redirect to some other online CPU. This was documented
somewhere in the old code and the conversion to single target delivery
missed to update the delivery mode of the affected APIC drivers which
results in spurious interrupts on some of the affected CPU/Chipset
combinations.
Switch the APIC drivers over to Fixed delivery mode and remove all
leftovers of lowest priority delivery mode.
Switching to Fixed delivery mode is not a problem on these CPUs because the
kernel already uses Fixed delivery mode for IPIs. The reason for this is
that th SDM explicitely forbids lowest prio mode for IPIs. The reason is
obvious: If the irq routing does not honor destination targets in lowest
prio mode then an IPI targeted at CPU1 might end up on CPU0, which would be
a fatal problem in many cases.
As a consequence of this change, the apic::irq_delivery_mode field is now
pointless, but this needs to be cleaned up in a separate patch.
Fixes: fdba46ffb4 ("x86/apic: Get rid of multi CPU affinity")
Reported-by: [email protected]
Signed-off-by: Thomas Gleixner <[email protected] >
Tested-by: [email protected]
Cc: Pavel Machek <[email protected] >
Link: https://lkml.kernel.org/r/alpine.DEB.2.20.1712281140440.1688@nanos
2017-12-29 14:20:48 +01:00
Thomas Gleixner
f8f37ca789
x86/msi: Create named irq domains
...
Use the fwnode to create named irq domains so diagnosis works.
Signed-off-by: Thomas Gleixner <[email protected] >
Cc: Jens Axboe <[email protected] >
Cc: Marc Zyngier <[email protected] >
Cc: Michael Ellerman <[email protected] >
Cc: Keith Busch <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Christoph Hellwig <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
2017-06-22 18:21:11 +02:00
Thomas Gleixner
0323b96904
x86/msi: Remove unused remap irq domain interface
...
Signed-off-by: Thomas Gleixner <[email protected] >
Cc: Jens Axboe <[email protected] >
Cc: Marc Zyngier <[email protected] >
Cc: Michael Ellerman <[email protected] >
Cc: Keith Busch <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Christoph Hellwig <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
2017-06-22 18:21:11 +02:00
Thomas Gleixner
667724c5a3
x86/msi: Provide new iommu irqdomain interface
...
Provide a new interface for creating the iommu remapping domains, so that
the caller can supply a name and a id in order to create named irqdomains.
Signed-off-by: Thomas Gleixner <[email protected] >
Cc: Jens Axboe <[email protected] >
Cc: Marc Zyngier <[email protected] >
Cc: Michael Ellerman <[email protected] >
Cc: Joerg Roedel <[email protected] >
Cc: Keith Busch <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: [email protected]
Cc: Christoph Hellwig <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected] >
2017-06-22 18:21:10 +02:00
Christoph Hellwig
699c4cec23
PCI/MSI: Remove pci_msi_domain_{alloc,free}_irqs()
...
Just call the msi_* version directly instead of having trivial wrappers for
one or two callsites.
Signed-off-by: Christoph Hellwig <[email protected] >
Signed-off-by: Bjorn Helgaas <[email protected] >
Reviewed-by: Thomas Gleixner <[email protected] >
2017-02-10 14:30:33 -06:00
Kees Cook
404f6aac9b
x86: Apply more __ro_after_init and const
...
Guided by grsecurity's analogous __read_only markings in arch/x86,
this applies several uses of __ro_after_init to structures that are
only updated during __init, and const for some structures that are
never updated. Additionally extends __init markings to some functions
that are only used during __init, and cleans up some missing C99 style
static initializers.
Signed-off-by: Kees Cook <[email protected] >
Cc: Andy Lutomirski <[email protected] >
Cc: Andy Lutomirski <[email protected] >
Cc: Arnd Bergmann <[email protected] >
Cc: Borislav Petkov <[email protected] >
Cc: Brad Spengler <[email protected] >
Cc: Brian Gerst <[email protected] >
Cc: David Brown <[email protected] >
Cc: Denys Vlasenko <[email protected] >
Cc: Emese Revfy <[email protected] >
Cc: H. Peter Anvin <[email protected] >
Cc: Josh Poimboeuf <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Mathias Krause <[email protected] >
Cc: Michael Ellerman <[email protected] >
Cc: PaX Team <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Thomas Gleixner <[email protected] >
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2016-08-10 14:55:05 +02:00
Jake Oshins
c8f3e518d3
x86/irq: Export functions to allow MSI domains in modules
...
The Linux kernel already has the concept of IRQ domain, wherein a
component can expose a set of IRQs which are managed by a particular
interrupt controller chip or other subsystem. The PCI driver exposes
the notion of an IRQ domain for Message-Signaled Interrupts (MSI) from
PCI Express devices. This patch exposes the functions which are
necessary for creating a MSI IRQ domain within a module.
[ tglx: Split it into x86 and core irq parts ]
Signed-off-by: Jake Oshins <[email protected] >
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected] >
2015-12-20 12:40:49 +01:00
Jiang Liu
ff96b4d033
x86/irq: Use accessor irq_data_get_irq_handler_data()
...
Use accessor function irq_data_get_irq_handler_data() to hide irq_desc
implementation details.
Signed-off-by: Jiang Liu <[email protected] >
Signed-off-by: Thomas Gleixner <[email protected] >
2015-07-13 21:22:46 +02:00
Feng Wu
a2f1c8bdc0
x86/irq/msi: Implement irq_set_vcpu_affinity for remapped MSI irqs
...
Implement irq_set_vcpu_affinity for pci_msi_ir_controller.
Signed-off-by: Feng Wu <[email protected] >
Reviewed-by: Jiang Liu <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected] >
2015-05-19 15:51:17 +02:00
Sergey Senozhatsky
4a00c95dcd
x86/hpet: Pass proper pointer to irq_alloc_info
...
Fix the following oops:
hpet_msi_get_hwirq+0x1f/0x27
msi_domain_alloc+0x35/0xfe
? trace_hardirqs_on_caller+0x16c/0x188
irq_domain_alloc_irqs_recursive+0x51/0x95
__irq_domain_alloc_irqs+0x151/0x223
hpet_assign_irq+0x5d/0x68
hpet_msi_capability_lookup+0x121/0x1cb
? hpet_enable+0x2b4/0x2b4
hpet_late_init+0x5f/0xf2
? hpet_enable+0x2b4/0x2b4
do_one_initcall+0x184/0x199
kernel_init_freeable+0x1af/0x237
? rest_init+0x13a/0x13a
kernel_init+0xe/0xd4
ret_from_fork+0x3f/0x70
? rest_init+0x13a/0x13a
Since 3cb96f0c97 ('x86/hpet: Enhance HPET IRQ to support
hierarchical irqdomains') hpet_msi_capability_lookup() uses
hpet_assign_irq(). The latter initializes irq_alloc_info on stack, but
passes a NULL pointer to irq_domain_alloc_irqs(), which causes a NULL
pointer dereference later in hpet_msi_get_hwirq().
Pass the pointer to the irq_alloc_info irq_domain_alloc_irqs().
Fixes: 3cb96f0c97 'x86/hpet: Enhance HPET IRQ to support hierarchical irqdomains'
Signed-off-by: Sergey Senozhatsky <[email protected] >
Reviewed-by: Jiang Liu <[email protected] >
Cc: Sergey Senozhatsky <[email protected] >
Link: http://lkml.kernel.org/r/20150512041444.GA1094@swordfish
Signed-off-by: Thomas Gleixner <[email protected] >
2015-05-13 09:50:24 +02:00
Jiang Liu
d746d1ebd3
x86/irq: Move irqdomain specific code into asm/irqdomain.h
...
Now we have dedicated asm/irqdomain.h, so move irqdomain specific
code into it.
Signed-off-by: Jiang Liu <[email protected] >
Cc: Konrad Rzeszutek Wilk <[email protected] >
Cc: David Cohen <[email protected] >
Cc: Sander Eikelenboom <[email protected] >
Cc: David Vrabel <[email protected] >
Cc: Tony Luck <[email protected] >
Cc: Joerg Roedel <[email protected] >
Cc: Greg Kroah-Hartman <[email protected] >
Cc: Bjorn Helgaas <[email protected] >
Cc: Benjamin Herrenschmidt <[email protected] >
Cc: Rafael J. Wysocki <[email protected] >
Cc: Randy Dunlap <[email protected] >
Cc: Yinghai Lu <[email protected] >
Cc: Borislav Petkov <[email protected] >
Cc: Dimitri Sivanich <[email protected] >
Cc: Joerg Roedel <[email protected] >
Cc: Andy Lutomirski <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected] >
2015-04-24 15:36:55 +02:00
Jiang Liu
e390d895ae
x86/irq: Simplify MSI/DMAR/HPET implementation by using common code
...
Use common MSI interfaces instead of private implementations of the
same functionality to simplify DMAR/HPET driver implementation.
Signed-off-by: Jiang Liu <[email protected] >
Cc: Konrad Rzeszutek Wilk <[email protected] >
Cc: David Cohen <[email protected] >
Cc: Sander Eikelenboom <[email protected] >
Cc: David Vrabel <[email protected] >
Cc: Tony Luck <[email protected] >
Cc: Joerg Roedel <[email protected] >
Cc: Greg Kroah-Hartman <[email protected] >
Cc: Bjorn Helgaas <[email protected] >
Cc: Benjamin Herrenschmidt <[email protected] >
Cc: Rafael J. Wysocki <[email protected] >
Cc: Randy Dunlap <[email protected] >
Cc: Yinghai Lu <[email protected] >
Cc: Borislav Petkov <[email protected] >
Cc: Dimitri Sivanich <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected] >
2015-04-24 15:36:50 +02:00
Jiang Liu
62ac178083
x86/irq: Implement irq_chip.irq_write_msi_msg for MSI/DMAR/HPET irq_chips
...
Implement irq_chip.irq_write_msi_msg for MSI/DMAR/HPET irq_chips, they
will be used to replace duplicated code.
Signed-off-by: Jiang Liu <[email protected] >
Cc: Konrad Rzeszutek Wilk <[email protected] >
Cc: David Cohen <[email protected] >
Cc: Sander Eikelenboom <[email protected] >
Cc: David Vrabel <[email protected] >
Cc: Tony Luck <[email protected] >
Cc: Joerg Roedel <[email protected] >
Cc: Greg Kroah-Hartman <[email protected] >
Cc: Bjorn Helgaas <[email protected] >
Cc: Benjamin Herrenschmidt <[email protected] >
Cc: Rafael J. Wysocki <[email protected] >
Cc: Randy Dunlap <[email protected] >
Cc: Yinghai Lu <[email protected] >
Cc: Borislav Petkov <[email protected] >
Cc: Dimitri Sivanich <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected] >
2015-04-24 15:36:50 +02:00
Jiang Liu
90d84fe95d
x86/MSI: Replace msi_update_msg() with irq_chip_compose_msi_msg()
...
Function irq_chip_compose_msi_msg() can achieve the same goal as
msi_update_msg(), so remove msi_update_msg().
Signed-off-by: Jiang Liu <[email protected] >
Cc: Konrad Rzeszutek Wilk <[email protected] >
Cc: David Cohen <[email protected] >
Cc: Sander Eikelenboom <[email protected] >
Cc: David Vrabel <[email protected] >
Cc: Tony Luck <[email protected] >
Cc: Joerg Roedel <[email protected] >
Cc: Greg Kroah-Hartman <[email protected] >
Cc: Bjorn Helgaas <[email protected] >
Cc: Benjamin Herrenschmidt <[email protected] >
Cc: Rafael J. Wysocki <[email protected] >
Cc: Randy Dunlap <[email protected] >
Cc: Yinghai Lu <[email protected] >
Cc: Borislav Petkov <[email protected] >
Cc: Dimitri Sivanich <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected] >
2015-04-24 15:36:50 +02:00
Jiang Liu
68682a2687
x86/MSI: Simplify the way to deal with remapped MSI interrupts
...
Simplify the way to deal with remapped MSI interrupts, so we can remove
irq_chip.irq_print_chip later. We simply change the name when the
setup detects that the parent domain is remapping.
Signed-off-by: Jiang Liu <[email protected] >
Cc: Konrad Rzeszutek Wilk <[email protected] >
Cc: David Cohen <[email protected] >
Cc: Sander Eikelenboom <[email protected] >
Cc: David Vrabel <[email protected] >
Cc: Tony Luck <[email protected] >
Cc: Joerg Roedel <[email protected] >
Cc: Greg Kroah-Hartman <[email protected] >
Cc: Bjorn Helgaas <[email protected] >
Cc: Benjamin Herrenschmidt <[email protected] >
Cc: Rafael J. Wysocki <[email protected] >
Cc: Randy Dunlap <[email protected] >
Cc: Yinghai Lu <[email protected] >
Cc: Borislav Petkov <[email protected] >
Cc: Dimitri Sivanich <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected] >
2015-04-24 15:36:50 +02:00
Jiang Liu
81dabe2e73
x86/irq: Normalize x86 irq_chip name
...
Some irq_chip names use underscore, others use hyphen. So normalize them
to use hyphen as separator.
Signed-off-by: Jiang Liu <[email protected] >
Cc: Konrad Rzeszutek Wilk <[email protected] >
Cc: David Cohen <[email protected] >
Cc: Sander Eikelenboom <[email protected] >
Cc: David Vrabel <[email protected] >
Cc: Tony Luck <[email protected] >
Cc: Joerg Roedel <[email protected] >
Cc: Greg Kroah-Hartman <[email protected] >
Cc: Bjorn Helgaas <[email protected] >
Cc: Benjamin Herrenschmidt <[email protected] >
Cc: Rafael J. Wysocki <[email protected] >
Cc: Randy Dunlap <[email protected] >
Cc: Yinghai Lu <[email protected] >
Cc: Borislav Petkov <[email protected] >
Cc: Dimitri Sivanich <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected] >
2015-04-24 15:36:50 +02:00
Jiang Liu
0921f1da64
x86/irq: Use hierarchical irqdomain to manage DMAR interrupts
...
Enhance DMAR code to support hierarchical irqdomain, it helps to make
the architecture more clear.
Signed-off-by: Jiang Liu <[email protected] >
Cc: Konrad Rzeszutek Wilk <[email protected] >
Cc: David Cohen <[email protected] >
Cc: Sander Eikelenboom <[email protected] >
Cc: David Vrabel <[email protected] >
Cc: Tony Luck <[email protected] >
Cc: Joerg Roedel <[email protected] >
Cc: Greg Kroah-Hartman <[email protected] >
Cc: Bjorn Helgaas <[email protected] >
Cc: Benjamin Herrenschmidt <[email protected] >
Cc: Rafael J. Wysocki <[email protected] >
Cc: Randy Dunlap <[email protected] >
Cc: Yinghai Lu <[email protected] >
Cc: Borislav Petkov <[email protected] >
Cc: Dimitri Sivanich <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected] >
2015-04-24 15:36:49 +02:00
Jiang Liu
34742db8ea
iommu/vt-d: Refine the interfaces to create IRQ for DMAR unit
...
Refine the interfaces to create IRQ for DMAR unit. It's a preparation
for converting DMAR IRQ to hierarchical 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 <[email protected] >
Cc: Konrad Rzeszutek Wilk <[email protected] >
Cc: David Cohen <[email protected] >
Cc: Sander Eikelenboom <[email protected] >
Cc: David Vrabel <[email protected] >
Cc: Greg Kroah-Hartman <[email protected] >
Cc: [email protected]
Cc: Vinod Koul <[email protected] >
Cc: Bjorn Helgaas <[email protected] >
Cc: Benjamin Herrenschmidt <[email protected] >
Cc: Rafael J. Wysocki <[email protected] >
Cc: Randy Dunlap <[email protected] >
Cc: Yinghai Lu <[email protected] >
Cc: Borislav Petkov <[email protected] >
Cc: Dimitri Sivanich <[email protected] >
Cc: Tony Luck <[email protected] >
Cc: Fenghua Yu <[email protected] >
Cc: Joerg Roedel <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected] >
2015-04-24 15:36:49 +02:00
Jiang Liu
b1855c752e
x86/MSI: Clean up unused MSI related code and interfaces
...
Now MSI interrupt has been converted to new hierarchical irqdomain
interfaces, so remove legacy MSI related code and interfaces.
Signed-off-by: Jiang Liu <[email protected] >
Cc: Konrad Rzeszutek Wilk <[email protected] >
Cc: David Cohen <[email protected] >
Cc: Sander Eikelenboom <[email protected] >
Cc: David Vrabel <[email protected] >
Cc: Tony Luck <[email protected] >
Cc: Joerg Roedel <[email protected] >
Cc: Greg Kroah-Hartman <[email protected] >
Cc: Bjorn Helgaas <[email protected] >
Cc: Benjamin Herrenschmidt <[email protected] >
Cc: Rafael J. Wysocki <[email protected] >
Cc: Randy Dunlap <[email protected] >
Cc: Yinghai Lu <[email protected] >
Cc: Borislav Petkov <[email protected] >
Cc: Dimitri Sivanich <[email protected] >
Cc: Yijing Wang <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected] >
2015-04-24 15:36:49 +02:00
Jiang Liu
80aa283364
x86/irq: Directly call native_compose_msi_msg() for DMAR IRQ
...
DMAR interrupt won't be remapped by interrupt remapping hardware,
so directly call native_compose_msi_msg() for DMAR IRQ to compose MSI
message data. This will help to simplify MSI code later.
Signed-off-by: Jiang Liu <[email protected] >
Cc: Konrad Rzeszutek Wilk <[email protected] >
Cc: David Cohen <[email protected] >
Cc: Sander Eikelenboom <[email protected] >
Cc: David Vrabel <[email protected] >
Cc: Tony Luck <[email protected] >
Cc: Joerg Roedel <[email protected] >
Cc: Greg Kroah-Hartman <[email protected] >
Cc: Bjorn Helgaas <[email protected] >
Cc: Benjamin Herrenschmidt <[email protected] >
Cc: Rafael J. Wysocki <[email protected] >
Cc: Randy Dunlap <[email protected] >
Cc: Yinghai Lu <[email protected] >
Cc: Borislav Petkov <[email protected] >
Cc: Dimitri Sivanich <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected] >
2015-04-24 15:36:49 +02:00
Jiang Liu
52f518a3a7
x86/MSI: Use hierarchical irqdomains to manage MSI interrupts
...
Enhance MSI code to support hierarchical irqdomains, it helps to make
the architecture more clear.
Signed-off-by: Jiang Liu <[email protected] >
Cc: Konrad Rzeszutek Wilk <[email protected] >
Cc: David Cohen <[email protected] >
Cc: Sander Eikelenboom <[email protected] >
Cc: David Vrabel <[email protected] >
Cc: Tony Luck <[email protected] >
Cc: Greg Kroah-Hartman <[email protected] >
Cc: [email protected]
Cc: Joerg Roedel <[email protected] >
Cc: Bjorn Helgaas <[email protected] >
Cc: Benjamin Herrenschmidt <[email protected] >
Cc: Rafael J. Wysocki <[email protected] >
Cc: Randy Dunlap <[email protected] >
Cc: Yinghai Lu <[email protected] >
Cc: Borislav Petkov <[email protected] >
Cc: Dimitri Sivanich <[email protected] >
Cc: Joerg Roedel <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected] >
2015-04-24 15:36:49 +02:00
Jiang Liu
3cb96f0c97
x86/hpet: Enhance HPET IRQ to support hierarchical irqdomains
...
Signed-off-by: Jiang Liu <[email protected] >
Cc: Konrad Rzeszutek Wilk <[email protected] >
Cc: David Cohen <[email protected] >
Cc: Sander Eikelenboom <[email protected] >
Cc: David Vrabel <[email protected] >
Cc: Tony Luck <[email protected] >
Cc: Joerg Roedel <[email protected] >
Cc: Greg Kroah-Hartman <[email protected] >
Cc: Srivatsa S. Bhat <[email protected] >
Cc: Bjorn Helgaas <[email protected] >
Cc: Benjamin Herrenschmidt <[email protected] >
Cc: Rafael J. Wysocki <[email protected] >
Cc: Randy Dunlap <[email protected] >
Cc: Yinghai Lu <[email protected] >
Cc: Borislav Petkov <[email protected] >
Cc: Dimitri Sivanich <[email protected] >
Cc: Andy Lutomirski <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected] >
2015-04-24 15:36:49 +02:00
Jiang Liu
a62b32cdd0
x86/dmar: Use new irqdomain interfaces to allocate/free IRQ
...
Use new irqdomain interfaces to allocate/free IRQ for DMAR and interrupt
remapping, so we can remove GENERIC_IRQ_LEGACY_ALLOC_HWIRQ later.
The private definitions of irq_alloc_hwirqs()/irq_free_hwirqs() are a
temporary solution, they will be removed once we have converted the
interrupt remapping driver to use irqdomain framework.
Signed-off-by: Jiang Liu <[email protected] >
Cc: Konrad Rzeszutek Wilk <[email protected] >
Cc: David Cohen <[email protected] >
Cc: Sander Eikelenboom <[email protected] >
Cc: David Vrabel <[email protected] >
Cc: Tony Luck <[email protected] >
Cc: Greg Kroah-Hartman <[email protected] >
Cc: [email protected]
Cc: Joerg Roedel <[email protected] >
Cc: Bjorn Helgaas <[email protected] >
Cc: Benjamin Herrenschmidt <[email protected] >
Cc: Rafael J. Wysocki <[email protected] >
Cc: Randy Dunlap <[email protected] >
Cc: Yinghai Lu <[email protected] >
Cc: Borislav Petkov <[email protected] >
Cc: Dimitri Sivanich <[email protected] >
Cc: Joerg Roedel <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected] >
2015-04-24 15:36:48 +02:00
Jiang Liu
4c8f9960ee
x86/MSI: Use new irqdomain interfaces to allocate/free IRQ
...
Use new irqdomain interfaces to allocate/free IRQ for PCI MSI, so we
can remove GENERIC_IRQ_LEGACY_ALLOC_HWIRQ later.
Signed-off-by: Jiang Liu <[email protected] >
Cc: Konrad Rzeszutek Wilk <[email protected] >
Cc: David Cohen <[email protected] >
Cc: Sander Eikelenboom <[email protected] >
Cc: David Vrabel <[email protected] >
Cc: Tony Luck <[email protected] >
Cc: Joerg Roedel <[email protected] >
Cc: Greg Kroah-Hartman <[email protected] >
Cc: Bjorn Helgaas <[email protected] >
Cc: Benjamin Herrenschmidt <[email protected] >
Cc: Rafael J. Wysocki <[email protected] >
Cc: Randy Dunlap <[email protected] >
Cc: Yinghai Lu <[email protected] >
Cc: Borislav Petkov <[email protected] >
Cc: Dimitri Sivanich <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected] >
2015-04-24 15:36:48 +02:00
Jiang Liu
a978609112
x86, irq: Use helpers to access irq_cfg data structure associated with IRQ
...
Use helpers to access irq_cfg data structure associated with IRQ,
instead of accessing irq_data->chip_data directly. Later we can
rewrite those helpers to support hierarchy irqdomain.
Signed-off-by: Jiang Liu <[email protected] >
Cc: Konrad Rzeszutek Wilk <[email protected] >
Cc: Tony Luck <[email protected] >
Cc: Joerg Roedel <[email protected] >
Cc: Greg Kroah-Hartman <[email protected] >
Cc: Benjamin Herrenschmidt <[email protected] >
Cc: Rafael J. Wysocki <[email protected] >
Cc: Bjorn Helgaas <[email protected] >
Cc: Randy Dunlap <[email protected] >
Cc: Yinghai Lu <[email protected] >
Cc: Borislav Petkov <[email protected] >
Cc: Grant Likely <[email protected] >
Cc: Prarit Bhargava <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected] >
2014-12-16 14:08:17 +01:00
Jiang Liu
443809828c
x86, irq: Move PCI MSI related code from io_apic.c into msi.c
...
Create arch/x86/kernel/apic/msi.c to host MSI related code,
preparing for enabling hierarchy irqdomain.
Signed-off-by: Jiang Liu <[email protected] >
Cc: Konrad Rzeszutek Wilk <[email protected] >
Cc: Tony Luck <[email protected] >
Cc: Joerg Roedel <[email protected] >
Cc: Greg Kroah-Hartman <[email protected] >
Cc: Benjamin Herrenschmidt <[email protected] >
Cc: Rafael J. Wysocki <[email protected] >
Cc: Bjorn Helgaas <[email protected] >
Cc: Randy Dunlap <[email protected] >
Cc: Yinghai Lu <[email protected] >
Cc: Borislav Petkov <[email protected] >
Cc: Rafael J. Wysocki <[email protected] >
Cc: Grant Likely <[email protected] >
Cc: Prarit Bhargava <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected] >
2014-12-16 14:08:17 +01:00