From: Andrew Morton <akpm@linux-foundation.org>
To: Robin Holt <holt@sgi.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] SGI XPC fails to load when cpu 0 is out of IRQ resources.
Date: Wed, 15 Aug 2012 15:56:05 -0700 [thread overview]
Message-ID: <20120815155605.cf02ef7b.akpm@linux-foundation.org> (raw)
In-Reply-To: <20120803194628.GN3093@sgi.com>
On Fri, 3 Aug 2012 14:46:29 -0500
Robin Holt <holt@sgi.com> wrote:
> On many of our larger systems, CPU 0 has had all of its IRQ resources
> consumed before XPC loads. Worse cases on machines with multiple
> 10 GigE cards and multiple IB cards have depleted the entire first
> socket of IRQs. That patch makes selecting the node upon which
> IRQs are allocated (as well as all the other GRU Message Queue
> structures) specifiable as a module load param and has a default
> behavior of searching all nodes/cpus for an available resource.
>
Is this problem serious enough to warrant a -stable backport? If you
want it to appear in vendor kernels then I guess "yes".
> +static int
> +xpc_init_mq_node(int nid)
> +{
> + int cpu;
> +
> + for_each_cpu(cpu, cpumask_of_node(nid)) {
> + xpc_activate_mq_uv = xpc_create_gru_mq_uv(XPC_ACTIVATE_MQ_SIZE_UV, nid,
> + XPC_ACTIVATE_IRQ_NAME,
> + xpc_handle_activate_IRQ_uv);
> + if (!IS_ERR(xpc_activate_mq_uv))
> + break;
> + }
> + if (IS_ERR(xpc_activate_mq_uv))
> + return PTR_ERR(xpc_activate_mq_uv);
> +
> + for_each_cpu(cpu, cpumask_of_node(nid)) {
> + xpc_notify_mq_uv = xpc_create_gru_mq_uv(XPC_NOTIFY_MQ_SIZE_UV, nid,
> + XPC_NOTIFY_IRQ_NAME,
> + xpc_handle_notify_IRQ_uv);
> + if (!IS_ERR(xpc_notify_mq_uv))
> + break;
> + }
> + if (IS_ERR(xpc_notify_mq_uv)) {
> + xpc_destroy_gru_mq_uv(xpc_activate_mq_uv);
> + return PTR_ERR(xpc_notify_mq_uv);
> + }
> +
> + return 0;
> +}
This seems to take the optimistic approach to CPU hotplug ;)
get_online_cpus(), perhaps?
next prev parent reply other threads:[~2012-08-15 22:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-03 19:46 [PATCH] SGI XPC fails to load when cpu 0 is out of IRQ resources Robin Holt
2012-08-15 22:56 ` Andrew Morton [this message]
2012-08-16 3:58 ` [PATCH] SGI XPC fails to load when cpu 0 is out of IRQ resources. -v2 Robin Holt
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=20120815155605.cf02ef7b.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=holt@sgi.com \
--cc=linux-kernel@vger.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.