From: ebiederm@xmission.com (Eric W. Biederman)
To: Ingo Molnar <mingo@elte.hu>
Cc: Arjan van de Ven <arjan@linux.intel.com>, linux-kernel@vger.kernel.org
Subject: Re: [patch] Add allowed_affinity to the irq_desc to make it possible to have restricted irqs
Date: Wed, 13 Dec 2006 13:06:12 -0700 [thread overview]
Message-ID: <m1ejr3pnm3.fsf@ebiederm.dsl.xmission.com> (raw)
In-Reply-To: <20061213194332.GA29185@elte.hu> (Ingo Molnar's message of "Wed, 13 Dec 2006 20:43:32 +0100")
Ingo Molnar <mingo@elte.hu> writes:
> * Eric W. Biederman <ebiederm@xmission.com> wrote:
>
>> In addition the cases I can think of allowed_affinity is the wrong
>> name. suggested_affinity sounds like what you are trying to implement
>> and when it is merely a suggestion and not a hard limit it doesn't
>> make sense to export like this.
>
> well, there are interrupts that must be tied to a single CPU and must
> never be moved away. For example per-CPU clock-events-source interrupts
> are such. So allowed_affinity very much exists.
Although in that case since it is a single cpu there is a much
more elegant implementation. We don't need a full cpumask_t to
describe it.
> also there might be hardware that can only route a given IRQ to a subset
> of CPUs. While setting set_affinity allows the irqbalance-daemon to
> 'probe' this mask, it's a far from optimal API.
I agree, I am just arguing that adding another awkward interface to
the current situation does not really make the situation better, and
it increases our support burden.
For a bunch of this it is arguable that the way to go is simply to
parse the irq type in /proc/interrupts. All of the really weird cases
will have a distinct type there. This certainly captures the MSI-X
case. There is still a question of how to handle the NUMA case but...
Eric
next prev parent reply other threads:[~2006-12-13 20:06 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-13 13:53 Arjan van de Ven
2006-12-13 19:41 ` Eric W. Biederman
2006-12-13 19:43 ` Ingo Molnar
2006-12-13 20:06 ` Eric W. Biederman [this message]
2006-12-13 20:19 ` Ingo Molnar
2006-12-13 20:23 ` Arjan van de Ven
2006-12-14 4:14 ` Eric W. Biederman
2006-12-14 6:24 ` Yinghai Lu
2006-12-14 7:55 ` Arjan van de Ven
2006-12-14 8:22 ` Eric W. Biederman
2006-12-14 8:23 ` Arjan van de Ven
2006-12-14 8:34 ` Eric W. Biederman
2006-12-14 8:40 ` Arjan van de Ven
2006-12-13 20:02 ` Arjan van de Ven
2006-12-13 20:16 ` Eric W. Biederman
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=m1ejr3pnm3.fsf@ebiederm.dsl.xmission.com \
--to=ebiederm@xmission.com \
--cc=arjan@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/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®