From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752847AbbJFVgi (ORCPT ); Tue, 6 Oct 2015 17:36:38 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:35405 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752313AbbJFVgh (ORCPT ); Tue, 6 Oct 2015 17:36:37 -0400 Date: Tue, 6 Oct 2015 22:36:32 +0100 From: Stephen Hemminger To: Vlad Zolotarov Cc: linux-kernel@vger.kernel.org, mst@redhat.com, hjk@hansjkoch.de, corbet@lwn.net, gregkh@linuxfoundation.org, bruce.richardson@intel.com, avi@cloudius-systems.com, gleb@cloudius-systems.com, alexander.duyck@gmail.com Subject: Re: [PATCH v5 3/4] uio_pci_generic: add MSI/MSI-X support Message-ID: <20151006223632.107b2c51@samsung9> In-Reply-To: <1444151859-10217-4-git-send-email-vladz@cloudius-systems.com> References: <1444151859-10217-1-git-send-email-vladz@cloudius-systems.com> <1444151859-10217-4-git-send-email-vladz@cloudius-systems.com> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 6 Oct 2015 20:17:38 +0300 Vlad Zolotarov wrote: > + int i, vectors = pci_msix_vec_count(pdev); > + > + if (vectors <= 0) > + return false; > + Since devices like fm10k can thousands of MSI vectors, and often systems have limited number of slots, some resource control is needed. I limited the number in my version. That was one of the reasons for the late binding of MSI vectors. Intended to allow application to ask for how many it wanted.