From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: [PATCH] mlx4_core: request MSIX vectors as much as there CPU cores Date: Wed, 5 May 2010 10:32:52 -0600 Message-ID: <20100505163252.GG15969@obsidianresearch.com> References: <20100505113047.GA12242@mtldesk030.lab.mtl.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Roland Dreier Cc: Eli Cohen , Linux RDMA list , ewg List-Id: linux-rdma@vger.kernel.org On Wed, May 05, 2010 at 07:54:54AM -0700, Roland Dreier wrote: > > The current code requires num_possible_cpus() + 1 MSIX vectors. However, > > num_possible_cpus() stands for the max number of supported CPUs by the kernel. > > I believe this is wrong -- num_possible_cpus() is the maximum number of > CPUs for the running system, including hotplug. FWIW, I've seen some systems running RH kernels that blow up here because they run out of interrupt numbers if you have two IB cards in them. Mainline kernels have a reworked IRQ number allocator and don't have a problem, so maybe this is an ofed only patch? Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html