1
linux/arch
Eric W. Biederman c7111c1318 [PATCH] x86_64 irq: Allocate a vector across all cpus for genapic_flat.
The problem we can't take advantage of lowest priority delivery mode if
the vectors are allocated for only one cpu at a time.  Nor can we work
around hardware that assumes lowest priority delivery mode is always
used with several cpus.

So this patch introduces the concept of a vector_allocation_domain.  A
set of cpus that will receive an irq on the same vector.  Currently the
code for implementing this is placed in the genapic structure so we can
vary this depending on how we are using the io_apics.

This allows us to restore the previous behaviour of genapic_flat without
removing the benefits of having separate vector allocation for large
machines.

This should also fix the problem report where a hyperthreaded cpu was
receving the irq on the wrong hyperthread when in logical delivery mode
because the previous behaviour is restored.

This patch properly records our allocation of the first 16 irqs to the
first 16 available vectors on all cpus.  This should be fine but it may
run into problems with multiple interrupts at the same interrupt level.
Except for some badly maintained comments in the code and the behaviour
of the interrupt allocator I have no real understanding of that problem.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: Muli Ben-Yehuda <muli@il.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-10-08 12:24:02 -07:00
..
alpha [PATCH] minimal alpha pt_regs fixes 2006-10-07 10:51:14 -07:00
arm ARM: fix up nested irq regs usage 2006-10-06 13:11:15 -07:00
arm26 Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
avr32 [PATCH] AVR32: Allow renumbering of serial devices 2006-10-04 10:25:06 -07:00
cris more misc typo fixes 2006-10-03 22:34:14 +02:00
frv IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
h8300 Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
i386 [PATCH] i386/x86_64: Remove global IO_APIC_VECTOR 2006-10-08 12:24:02 -07:00
ia64 [IA64] Fix breakage from irq change 2006-10-06 10:09:41 -07:00
m32r [PATCH] m32r pt_regs fixes 2006-10-07 10:51:15 -07:00
m68k [PATCH] m68k pt_regs fixes 2006-10-07 10:51:14 -07:00
m68knommu Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
mips [MIPS] Complete fixes after removal of pt_regs argument to int handlers. 2006-10-08 02:38:28 +01:00
parisc Build fixes for struct pt_regs removal 2006-10-06 20:47:23 -06:00
powerpc [POWERPC] SPU fixup after irq changes 2006-10-07 22:11:17 +10:00
ppc [POWERPC] PReP fixup after irq changes 2006-10-07 22:11:20 +10:00
s390 [S390] Use CONFIG_GENERIC_TIME and define TOD clock source. 2006-10-06 16:38:48 +02:00
sh fix file specification in comments 2006-10-03 23:01:26 +02:00
sh64 fix file specification in comments 2006-10-03 23:01:26 +02:00
sparc Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
sparc64 Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
um [PATCH] um: irq changes break build 2006-10-06 08:53:42 -07:00
v850 Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
x86_64 [PATCH] x86_64 irq: Allocate a vector across all cpus for genapic_flat. 2006-10-08 12:24:02 -07:00
xtensa fix file specification in comments 2006-10-03 23:01:26 +02:00