Received: by 10.213.65.68 with SMTP id h4csp220038imn; Tue, 13 Mar 2018 01:55:53 -0700 (PDT) X-Google-Smtp-Source: AG47ELsq6XqUPwZxfDuVVEy8pImY8QZnMoxbH8LHvih1rMTlinyOXdBUXApm9Ih/Qf+hGZE8L5Dm X-Received: by 2002:a17:902:bb83:: with SMTP id m3-v6mr8565290pls.235.1520931352975; Tue, 13 Mar 2018 01:55:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520931352; cv=none; d=google.com; s=arc-20160816; b=pqdKEW2GcJbAnG+OakchZP04sIVfKM9MWvCmb1O1HS33kpf4VQSLXEwCN/bgqJ6mAn e8WVvDvjNdtVoJDdP0H22zgtq1Sl7Ur7Z1AsI083pV4gaAmg/7CalGOOFWXqJFtCtNqu xLglLardrsER7G4O9sw11kTHVx6X8GAOT2WMKD44XkxnQGlPHTvhKEAKEnOT0p6nAcZP nZ72T0HFJd5p7KjpJcSmCIfAuSuzY2/g0YYWzEkSKQmsnUt9PaevEd+aZRVbDZyfq9mH PK7Jj3aJKaDO7gma8hfTzXH2EXPXobxT5W1+kBFEHEygzMIMEVdAV8DSwHeTcSIzwKH8 Uysg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=9l4/R8fbdz9ecCry77J8XLItzLwjbUOg07iFcfA5+qE=; b=uUvAmJQ2keiBIT0gqXvaL+stBHuGq74bzFub4y8Vx2e1/+PjxJn9WGEe45qkomjWj0 24SaOkhnuWD2bEVP7RIUSdg+lTtZtCO2T5Zqq1VVEMUoLLdrxiHRm+YSmFTPZxTai+N/ B3GofTDeCJ08SMSBNBeZPVEZmw0x3psBtTB/8M4GR4ogEwXwnTaqVXgvvg9xThPFTgxl k3LrvUrvAxwU4xaX5neZCmjvF/HFB66NelmzMulP1CQ0CC2uG01JVpYGR74eD39o9GUx TWmsNbaqX6t1vbOPGWe5zRIhYVX6SiE1zzcaEnvM4qOu1jCPLu18EthlJ5UXLR3FnCSO QJbQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y13si573059pgv.755.2018.03.13.01.55.38; Tue, 13 Mar 2018 01:55:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752539AbeCMIyq (ORCPT + 99 others); Tue, 13 Mar 2018 04:54:46 -0400 Received: from verein.lst.de ([213.95.11.211]:56763 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751666AbeCMIyp (ORCPT ); Tue, 13 Mar 2018 04:54:45 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 08FD07FDDF; Tue, 13 Mar 2018 09:54:43 +0100 (CET) Date: Tue, 13 Mar 2018 09:54:42 +0100 From: Christoph Hellwig To: David Woodhouse Cc: Christoph Hellwig , Alexander Duyck , bhelgaas@google.com, alexander.h.duyck@intel.com, linux-pci@vger.kernel.org, virtio-dev@lists.oasis-open.org, kvm@vger.kernel.org, netdev@vger.kernel.org, dan.daly@intel.com, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, keith.busch@intel.com, netanel@amazon.com, mheyne@amazon.de, liang-min.wang@intel.com, mark.d.rustad@intel.com Subject: Re: [pci PATCH v5 3/4] ena: Migrate over to unmanaged SR-IOV support Message-ID: <20180313085442.GA1537@lst.de> References: <20180312171813.3487.94803.stgit@localhost.localdomain> <20180312172309.3487.76690.stgit@localhost.localdomain> <1520928772.28745.53.camel@infradead.org> <20180313081628.GA618@lst.de> <1520930719.11412.2.camel@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1520930719.11412.2.camel@infradead.org> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 13, 2018 at 08:45:19AM +0000, David Woodhouse wrote: > > > On Tue, 2018-03-13 at 09:16 +0100, Christoph Hellwig wrote: > > On Tue, Mar 13, 2018 at 08:12:52AM +0000, David Woodhouse wrote: > > > > > > I'd also *really* like to see a way to enable this for PFs which don't > > > have (and don't need) a driver. We seem to have lost that along the > > > way. > > We've been forth and back on that.??I agree that not having any driver > > just seems dangerous.??If your PF really does nothing we should just > > have a trivial pf_stub driver that does nothing but wiring up > > pci_sriov_configure_simple.??We can then add PCI IDs to it either > > statically, or using the dynamic ids mechanism. > > Or just add it to the existing pci-stub. What's the point in having a > new driver?? Because binding to pci-stub means that you'd now enable the simple SR-IOV for any device bound to PCI stub. Which often might be the wrong thing.