From: John Keller <jpk@sgi.com>
To: yinghai@kernel.org (Yinghai Lu)
Cc: jpk@sgi.com (John Keller),
linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org,
akpm@linux-foundation.org, tglx@linutronix.de,
mingo@elte.hu (Ingo Molnar)
Subject: Re: genirq regression - CONFIG_AUTO_IRQ_AFFINITY
Date: Mon, 8 Dec 2008 08:29:54 -0600 (CST) [thread overview]
Message-ID: <200812081429.mB8ETtBO145498@fcbayern.americas.sgi.com> (raw)
In-Reply-To: <86802c440812052056r6b08fd0dpfae41dee8ee9ac65@mail.gmail.com> from "Yinghai Lu" at Dec 05, 2008 08:56:23 PM
>
> On Fri, Dec 5, 2008 at 8:40 AM, John Keller <jpk@sgi.com> wrote:
> > The addition of the generic affinity autoselector has introduced
> > a regression in SN2 Altix.
> >
> > In the past, request_irq()'s call to select_smp_affinity() was
> > essentially a noop.
> >
> > #ifdef CONFIG_AUTO_IRQ_AFFINITY
> > extern int select_smp_affinity(unsigned int irq);
> > #else
> > static inline int select_smp_affinity(unsigned int irq)
> > {
> > return 1;
> > }
> >
> >
> > Now changes have created do_irq_select_affinity(), which is
> > executed by a call to request_irq().
> >
> > request_irq()
> > __setup_irq()
> > do_irq_select_affinity()
> >
> > do_irq_select_affinity() will call the set_affinity() routine,
> > with a default mask. On SN2 (and possibly all ia64 platforms),
> > this will retarget all device interrupts to the same CPU, most
> > likely CPU0.
>
> > I'm looking at a patch that makes use of the new IRQ_AFFINITY_SET
> > flag in the irq_desc to get around this.
> >
>
> that bit only be set in irq_set_affinity(),
>
> arch/mips/kernel/cevt-bcm1480.c: irq_set_affinity(irq,
> cpumask_of_cpu(cpu));
> arch/mips/kernel/cevt-sb1250.c: irq_set_affinity(irq, cpumask_of_cpu(cpu));
> arch/sparc64/kernel/of_device.c: irq_set_affinity(irq,
> numa_mask);
> arch/sparc64/kernel/pci_msi.c: irq_set_affinity(irq, numa_mask);
> arch/x86/kernel/hpet.c: irq_set_affinity(hdev->irq,
> cpumask_of_cpu(hdev->cpu));
> arch/x86/kernel/hpet.c: irq_set_affinity(dev->irq, cpumask_of_cpu(dev->cpu));
> drivers/xen/events.c: irq_set_affinity(irq, cpumask_of_cpu(0));
>
> kernel/irq/proc.c: irq_set_affinity(irq, new_value);
>
> kernel/time/tick-common.c: irq_set_affinity(newdev->irq, *cpumask);
>
> so you may need to call it in your arch code. like
> setup_IO_APIC_irq(), create_irq()...
>
> YH
>
Yes, I am planning to set it in SN platform specific code,
sn_irq_fixup().
John
prev parent reply other threads:[~2008-12-08 14:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-05 16:40 John Keller
2008-12-06 4:56 ` Yinghai Lu
2008-12-08 14:29 ` John Keller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200812081429.mB8ETtBO145498@fcbayern.americas.sgi.com \
--to=jpk@sgi.com \
--cc=akpm@linux-foundation.org \
--cc=linux-ia64@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
--cc=yinghai@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®