From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH 0/2] uio_msi: device driver Date: Thu, 1 Oct 2015 17:04:03 -0700 Message-ID: <20151001170403.1ba4dad3@urahara> References: <1443652138-31782-1-git-send-email-stephen@networkplumber.org> <560D11F6.2080609@scylladb.com> <20151001075731.2f079237@urahara> <560D8E14.5030500@gmail.com> <20151001150036.7a20b228@urahara> <560DBBAA.3050906@gmail.com> <20151001163918.1bc98774@urahara> <560DC51B.7030507@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, Avi Kivity , hjk@hansjkoch.de, gregkh@linux-foundation.org, linux-kernel@vger.kernel.org To: Alexander Duyck Return-path: Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by dpdk.org (Postfix) with ESMTP id CFB7E8E61 for ; Fri, 2 Oct 2015 02:03:53 +0200 (CEST) Received: by padhy16 with SMTP id hy16so89047478pad.1 for ; Thu, 01 Oct 2015 17:03:53 -0700 (PDT) In-Reply-To: <560DC51B.7030507@gmail.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, 1 Oct 2015 16:43:23 -0700 Alexander Duyck wrote: > Yes, but in the case of something like a VF it is going to just make a > bigger mess of things since INTx doesn't work. So what would you expect > your driver to do in that case? Also we have to keep in mind that the > MSI-X failure case is very unlikely. > > One other thing that just occurred to me is that you may want to try > using the range allocation call instead of a hard set number of > interrupts. Then if you start running short on vectors you don't hard > fail and instead just allocate what you can. I tried that but the bookkeeping gets messy since there is no good way to communicate that back to userspace and have it adapt.