From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f182.google.com (mail-pd0-f182.google.com [209.85.192.182]) by dpdk.org (Postfix) with ESMTP id F2E3C594D for ; Tue, 20 May 2014 13:23:24 +0200 (CEST) Received: by mail-pd0-f182.google.com with SMTP id r10so231957pdi.41 for ; Tue, 20 May 2014 04:23:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=9CYJTWOgvUxT3lSBeePMIutT1weL/9hm8xORg+ATSfk=; b=B/q8BAfBzzg3viiF5TOoaZXLrlkmfm3A1soVYD6DfN2Qd13IO21IzTwkvymRitPuhI Bt7l6iRjZj9yYn/5yzG5hc8SetoLPJ97yXpA/Qe6/uctE1u5xqEgvF2ss5Gp5oi/eTP+ D3miHB4V4HN4U4YdV+J1mj8mXC7H0mRXJdmzoRf/onXUugg6UoTY5pMop7t8qEXDUike JV0C+kHfSt4ckQmuD+DTkP4VBsCFxsdOUw1T3dkKULBF1QheQ0OAtv/Qp6Hf646jlIrV uePXQBehN3GqARQwb0pxIqjhrqWXNOD0YTWcvTGm2UBZndrZ+UqTUDfNwX07cYgK//XH yl+A== X-Gm-Message-State: ALoCoQklpGTUWOolOmv+O6v8xycpD75Hqgrk37JNz/jfW96EDicPvi8La5NnzGuqSXb4DwrgHml+ X-Received: by 10.68.197.195 with SMTP id iw3mr50586840pbc.139.1400585013762; Tue, 20 May 2014 04:23:33 -0700 (PDT) Received: from samsung-9 ([61.215.197.74]) by mx.google.com with ESMTPSA id wp3sm2670007pbc.67.2014.05.20.04.23.32 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 May 2014 04:23:33 -0700 (PDT) Date: Tue, 20 May 2014 04:23:23 -0700 From: Stephen Hemminger To: "Burakov, Anatoly" Message-ID: <20140520042323.4dbea108@samsung-9> In-Reply-To: References: <1400514709-24087-11-git-send-email-anatoly.burakov@intel.com> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH v2 10/16] Added support for selecting VFIO interrupt type from EAL command-line X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 May 2014 11:23:25 -0000 On Tue, 20 May 2014 08:33:43 +0000 "Burakov, Anatoly" wrote: > Hi Stephen, > > > I really wish the code did automatic fall back based on PCI config. It is possible to know the right mode, and do the right thing. > > Rather than punting the problem out to command line which is totally unusable in hot plug and generic application. > > You mean we should use whatever is available rather than default to MSI-X if nothing was explicitly specified? That could be done, I guess. > > Best regards, > Anatoly Burakov > DPDK SW Engineer > > I am not sure that MSI-X has any advantage with only one IRQ, so MSI would do. Then have the code look at the PCI capability of device and fallback to INTX if needed. It should also check if INTX works, see kernel for details, since some PCI emulation like VMware is broken.