]> git.baikalelectronics.ru Git - kernel.git/commit
x86/vsmp: Fix irq routing
authorOren Twaig <oren@scalemp.com>
Mon, 28 Apr 2014 07:21:37 +0000 (10:21 +0300)
committerIngo Molnar <mingo@kernel.org>
Mon, 28 Apr 2014 07:27:34 +0000 (09:27 +0200)
commitbc373cf2ab064f4b9d5b5c98f304112f44641247
treef3ed243da52148e4fb188e2805ad048e32a34727
parent8cdf8861f1c35b502c152ca1527cb004b3a23bb0
x86/vsmp: Fix irq routing

Correct IRQ routing in case a vSMP box is detected
but the  Interrupt Routing Comply (IRC) value is set to
"comply", which leads to incorrect IRQ routing.

Before the patch:

When a vSMP box was detected and IRC was set to "comply",
users (and the kernel) couldn't effectively set the
destination of the IRQs. This is because the hook inside
vsmp_64.c always setup all CPUs as the IRQ destination using
cpumask_setall() as the return value for IRQ allocation mask.
Later, this "overrided" mask caused the kernel to set the IRQ
destination to the lowest online CPU in the mask (CPU0 usually).

After the patch:

When the IRC is set to "comply", users (and the kernel) can control
the destination of the IRQs as we will not be changing the
default "apic->vector_allocation_domain".

Signed-off-by: Oren Twaig <oren@scalemp.com>
Acked-by: Shai Fultheim <shai@scalemp.com>
Link: http://lkml.kernel.org/r/1398669697-2123-1-git-send-email-oren@scalemp.com
[ Minor readability edits. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/vsmp_64.c