Received: by 10.213.65.68 with SMTP id h4csp398434imn; Tue, 13 Mar 2018 07:52:59 -0700 (PDT) X-Google-Smtp-Source: AG47ELunmAnivO1XgGEPn+J71ENCzH9yOWrX78PaJVnevs1+KE3VjlcM21jeSc7iBC0+z8y31JHB X-Received: by 10.98.86.15 with SMTP id k15mr872105pfb.187.1520952779427; Tue, 13 Mar 2018 07:52:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520952779; cv=none; d=google.com; s=arc-20160816; b=x9n1/aGz1bZB5g0irQV7AGpNkyxNBoBhhHkPTaf6rzR/qb28VsRJxk5kEvffICwLXJ uqV0GvxTiFEH/VHrWDm/ReSUPYOLNtwstnhEAVcmhR+wkH6WL09at/MA+dr1B19MwIjA HJ1JSFapHlooNCQ5hga7lVccm81kMfLm2KIkHv4nCKBJhJduTJgRqRIIkcuImVeVDUs8 tYNpTO8103ShUW2kyk6B7lkUO9bF/4K6t5cB1iru6xWNO+FUE6I/oUssXwqirttRFTu+ 9EwZoXg8ozeB4rHwkPU6/N2s8YkusePC2wLZaVe4UMS0DWFwa06WL+j86K/UkCMNk1kw LRaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=7j9HjO819rY5h3Djy48pGBZOxMuQN45jNUn2ZfU5m24=; b=l26ya7T2DmGO9eyVud9vUG1JiV2gQgTw1+FsW/ccCBuG3H7eTXlgmubhJKzQjUS39p s15JxTMELrCoXMaycKzP9F1GVy+jt38YZtzWHZ/b572dEHbYGzhMhCjE+2Bx3QT0b8hu K4M0C+JiBwbPl1LdmREwU1ulNtW8W+vbu2snYW7WSSIqIXUvxB5Plj0T/4/F+cdYdooo LG/CS7428jpmc409Zr4tw9fwZUspO7sOdRMoNd2K3SaObZnUdHEODBu+TEae4aQgNRUB RcJEokVzCY9su3qoWoKS5S2n25L1pk3XeUF+LxAT5J/LUK8jelgL7eWOEO8+bXdInWpe ObAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vb04gKCm; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d64si249798pfa.384.2018.03.13.07.52.45; Tue, 13 Mar 2018 07:52:59 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vb04gKCm; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752662AbeCMOvh (ORCPT + 99 others); Tue, 13 Mar 2018 10:51:37 -0400 Received: from mail-qt0-f170.google.com ([209.85.216.170]:47076 "EHLO mail-qt0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752575AbeCMOvf (ORCPT ); Tue, 13 Mar 2018 10:51:35 -0400 Received: by mail-qt0-f170.google.com with SMTP id m13so22951926qtg.13; Tue, 13 Mar 2018 07:51:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=7j9HjO819rY5h3Djy48pGBZOxMuQN45jNUn2ZfU5m24=; b=vb04gKCm93lgSy0g10CXStAfMDpoAz+dg4K5nN8M1/MuMtLHUBNp4czfH0TFuShlOT EYP0bQbxClIyC5bGzKGA5DgiboiEQ7iDD3VBI1zwMdcbrlfe9jyTgCWB9EkfC/yebM5n S0KbtehKtaLYJo44Rpe8myloi4SaGCZsvR1pBo376bwhuEnb3m1l6cdTJg12+3QEGwkE ifVrkYSK3xxIhnhffzZv8YS2PgJ+/69lebJ2cZ+rRS0v9Y1w60IAv3MpeZcO5eIZHEem 3kBqYjele55paAqwNEh98GpmsEapMWda8YPW/Z7Q0gymVaIXF0RHjrxRNcqd/w/+vP1Q q6VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=7j9HjO819rY5h3Djy48pGBZOxMuQN45jNUn2ZfU5m24=; b=Fi/03RXbaPqo1U+lhikaTF5R4N2cjO8GUN7G4+/hKbuw4Y57uWLNlsfLhZxgxgGcwm bwttnWigg41LmRh0ecyCnUcBPe4qsu0PGAa/Cb2AKx7WWOew24MHuQPDpCsvYZn06s29 PMriNMzA420x8KY8LGhaJNkZ5FW8HU3FE4B8MT1eRH2lPLMPT8j8hlgH0ZMr+nQzhGEL nfPNjbk2iTKUzhVKCOSRQzz9zYPu/iUGcX4txO6cf7zcMy+EtseVxcVvt6xgHdIDaHjF TJGWNsjE4+eqGp1g0684V02BsvDR3Y3B/mRFqBUnoJdlSDLGupoa6jsh0UUuFNZMAw2x loFA== X-Gm-Message-State: AElRT7ENvDTcW5vosxxG1jBtPDkFGlXQftgEf8LDXnJzIsx6BkKMVBOi Vd5hgbiapAs2yDlZs1LIDtAGgL1Cw2aZ1nNh55E= X-Received: by 10.200.57.117 with SMTP id t50mr1532251qtb.22.1520952694387; Tue, 13 Mar 2018 07:51:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.89.138 with HTTP; Tue, 13 Mar 2018 07:51:33 -0700 (PDT) In-Reply-To: <1520928772.28745.53.camel@infradead.org> References: <20180312171813.3487.94803.stgit@localhost.localdomain> <20180312172309.3487.76690.stgit@localhost.localdomain> <1520928772.28745.53.camel@infradead.org> From: Alexander Duyck Date: Tue, 13 Mar 2018 07:51:33 -0700 Message-ID: Subject: Re: [pci PATCH v5 3/4] ena: Migrate over to unmanaged SR-IOV support To: David Woodhouse , Don Dutile Cc: Bjorn Helgaas , "Duyck, Alexander H" , linux-pci@vger.kernel.org, virtio-dev@lists.oasis-open.org, kvm@vger.kernel.org, Netdev , "Daly, Dan" , LKML , linux-nvme@lists.infradead.org, Keith Busch , netanel@amazon.com, Maximilian Heyne , "Wang, Liang-min" , "Rustad, Mark D" , Christoph Hellwig Content-Type: text/plain; charset="UTF-8" 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 1:12 AM, David Woodhouse wrote: > On Mon, 2018-03-12 at 10:23 -0700, Alexander Duyck wrote: >> >> - .sriov_configure = ena_sriov_configure, >> +#ifdef CONFIG_PCI_IOV >> + .sriov_configure = pci_sriov_configure_simple, >> +#endif >> }; > > I'd like to see that ifdef go away, as discussed. I agree that just > #define pci_sriov_configure_simple NULL > should suffice. As Christoph points out, it's not going to compile if > people try to just invoke it directly. > > 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. Actually the suggestion I had from Don Dutile was that we should be looking at creating a pci-stub like driver specifically for those type of devices, but without the ability to arbitrarily assign devices. Basically we have to white-list it in one device at a time for those kind of things. If you have the device ID of the thing you wanted to have work with pci-stub before I could look at putting together a quick driver and adding it to this set. Thanks. - Alex