Received: by 10.192.165.148 with SMTP id m20csp51617imm; Thu, 19 Apr 2018 15:56:40 -0700 (PDT) X-Google-Smtp-Source: AIpwx4903oAsNgghviHL1YNyNJDOzFm0c317/mNx2t7ag6olo6CA7SjEHY8Ln+Op6ZWLOCG8T8wG X-Received: by 2002:a17:902:1c7:: with SMTP id b65-v6mr5572359plb.298.1524178600520; Thu, 19 Apr 2018 15:56:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524178600; cv=none; d=google.com; s=arc-20160816; b=HYfwJzuoAOpmI5/QDYCBqz1wT2L2lucoQ+SaM3FiQbfxOwYD5z190UTe3HDW1LD4JY SsU/hMy62cdgvU+SB+0mXmfEulMlIHIABurt9X9LLArxYcIJZysnygcLXSbfzIdllxKH oMc5OpWc4qK4JsF7SU4jItkDxqunvsF7/neX/Gne5nvjO+FLoLWhq681dP/bmdIp/aez AP6NI75Fd9xRGx8cx3xj5Jb7nX9yY6A+QQsMyDdXU0onePwswnWSfMl/yWKHjnPBvz4O EsMPB2tpP7tAMwk2sQeJ/M8sZvOlmsF0yxuE/nKip+IspMK/SXlvMU+ahy5xFYurJMSl DX8w== 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=3UaSTM+wT85qgOZJiisjHKomVGgo3m+QhrPVo3gckSM=; b=pObinFnMTKPE2tewLYy9YGzdGjylujEzXeZgtghVUx1p+keTnwSJdaBHcVKfodUbYM mKvq5qQtth3IyU1xqkYqrAm+u/qE0s6rWtqxhoESfS0nyU3sGwjpEyUU4olpRqn04HQC B4XYMgPTK28bmHDcVQlxCYt3Juy+fErLwMv1MlbxjyMBg17qQrlcX7kgXs9+kxlXfCml tXpCBxl7pz5zBGRTSZP66scPupHeUqOUF7ai0S+BZb8vTor1yDtX21oBsE+s5myxfF3K KX13Q1wMoeZ0DnlK2979EZXMJE7Do3fxTIgQgHydOSYm2mxXdvuu7ILrNxIlDJz5yFFs ip3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MScKXuoD; 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 t14si2724996pgf.93.2018.04.19.15.56.19; Thu, 19 Apr 2018 15:56:40 -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=MScKXuoD; 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 S1753729AbeDSWyx (ORCPT + 99 others); Thu, 19 Apr 2018 18:54:53 -0400 Received: from mail-ot0-f193.google.com ([74.125.82.193]:38917 "EHLO mail-ot0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753537AbeDSWyu (ORCPT ); Thu, 19 Apr 2018 18:54:50 -0400 Received: by mail-ot0-f193.google.com with SMTP id a14-v6so7658004otf.6; Thu, 19 Apr 2018 15:54:50 -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=3UaSTM+wT85qgOZJiisjHKomVGgo3m+QhrPVo3gckSM=; b=MScKXuoDcjqng1B4AoU5NNCWbYdSW8WlIacx/VMllZ1SOX/o4M5l0Z5T15ov543eob YpUmQ0dv8ty2jt/dLkW9fkPFu9RAPVw+03N/M5f1Hg8f7alH5+V3Ig2cLxq861wi4rGJ 9wZKUzVHBRN0F6Hx7Tqe+B46ziGAnQyIbiO+3k0Y/2UgQuURLIVFr4KMcpc2W8juMKKT CJak547WK876wsS+Yb4u9EZcogBR4ZidLi/6HChDVckIKN7hQK/gljiXshAgdrgTm9Qc lIbZbQyt3DnWlpIRRUPNdm+Z1unO7oOY9McQ2gTfIj6aFkM0UPp+2cjMAFZt9nTHH7Sx yDSQ== 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=3UaSTM+wT85qgOZJiisjHKomVGgo3m+QhrPVo3gckSM=; b=ARRWNIHBhfO2KGICkPY9J5Ljrj1/XR6T7A4AWHVnOWu8ybUnQeQKg0VNPSOBG4sp0a H9Xz59cSuAEO48IA4gR0iLYN9k53YRS26FqsyOOhKLWPfuJIEj13OTtx1ia7a+EipmNM h1AglEWHe+UdR50P6gHKMsZneY6HjVZ6lkoTRn/VJni39pE9pk4S5Nim0lgPLHJ6cnng aP8h/1w1+lOdsf57RswWwe5453FT0RgswTo3OLBxSD9T4HkI+UOrBOxSpFRK2GO05QNn S0DTppktYxZ9vcG2F52vaYcvf4cD51ITZjr7e/Gm1wbm3qjxwLlTWyP8SecATed1JnPV e8HQ== X-Gm-Message-State: ALQs6tBmhAIYZfS5ngIIFDhqIC3LKj44Kx91DkoNs1k8PZCW+xjpunsr HxRMJtmFShJjOZb9QU8snhE5wceWPKj8zuAPRes= X-Received: by 2002:a9d:1af:: with SMTP id e44-v6mr5463143ote.145.1524178489678; Thu, 19 Apr 2018 15:54:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.201.52.1 with HTTP; Thu, 19 Apr 2018 15:54:49 -0700 (PDT) In-Reply-To: <20180315183449.3102.64791.stgit@localhost.localdomain> References: <20180315183449.3102.64791.stgit@localhost.localdomain> From: Alexander Duyck Date: Thu, 19 Apr 2018 15:54:49 -0700 Message-ID: Subject: Re: [pci PATCH v7 0/5] Add support for unmanaged SR-IOV To: Bjorn Helgaas , "Duyck, Alexander H" , linux-pci@vger.kernel.org Cc: virtio-dev@lists.oasis-open.org, kvm@vger.kernel.org, Netdev , "Daly, Dan" , LKML , linux-nvme@lists.infradead.org, Keith Busch , netanel@amazon.com, Don Dutile , Maximilian Heyne , "Wang, Liang-min" , "Rustad, Mark D" , David Woodhouse , Christoph Hellwig , dwmw@amazon.co.uk, "Michael S. Tsirkin" 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 Thu, Mar 15, 2018 at 11:40 AM, Alexander Duyck wrote: > This series is meant to add support for SR-IOV on devices when the VFs are > not managed by the kernel. Examples of recent patches attempting to do this > include: > virto - https://patchwork.kernel.org/patch/10241225/ > pci-stub - https://patchwork.kernel.org/patch/10109935/ > vfio - https://patchwork.kernel.org/patch/10103353/ > uio - https://patchwork.kernel.org/patch/9974031/ > > Since this is quickly blowing up into a multi-driver problem it is probably > best to implement this solution as generically as possible. > > This series is an attempt to do that. What we do with this patch set is > provide a generic framework to enable SR-IOV in the case that the PF driver > doesn't support managing the VFs itself. > > I based my patch set originally on the patch by Mark Rustad but there isn't > much left after going through and cleaning out the bits that were no longer > needed, and after incorporating the feedback from David Miller. At this point > the only items to be fully reused was his patch description which is now > present in patch 3 of the set. > > This solution is limited in scope to just adding support for devices that > provide no functionality for SR-IOV other than allocating the VFs by > calling pci_enable_sriov. Previous sets had included patches for VFIO, but > for now I am dropping that as the scope of that work is larger then I > think I can take on at this time. > > v2: Reduced scope back to just virtio_pci and vfio-pci > Broke into 3 patch set from single patch > Changed autoprobe behavior to always set when num_vfs is set non-zero > v3: Updated Documentation to clarify when sriov_unmanaged_autoprobe is used > Wrapped vfio_pci_sriov_configure to fix build errors w/o SR-IOV in kernel > v4: Dropped vfio-pci patch > Added ena and nvme to drivers now using pci_sriov_configure_unmanaged > Dropped pci_disable_sriov call in virtio_pci to be consistent with ena > v5: Dropped sriov_unmanaged_autoprobe and pci_sriov_conifgure_unmanaged > Added new patch that enables pci_sriov_configure_simple > Updated drivers to use pci_sriov_configure_simple > v6: Defined pci_sriov_configure_simple as NULL when SR-IOV is not enabled > Updated drivers to drop "#ifdef" checks for IOV > Added pci-pf-stub as place for PF-only drivers to add support > v7: Dropped pci_id table explanation from pci-pf-stub driver > Updated pci_sriov_configure_simple to drop need for err value > Fixed comment explaining why pci_sriov_configure_simple is NULL > Just following up since this has been sitting in patchwork for just over a month now (https://patchwork.ozlabs.org/project/linux-pci/list/?series=34034). I'm just wondering what the expectation is on getting these pulled into the pci tree? I'm assuming that is the best place for these patches. Are there any concerns I still need to address or are these going to be pulled in at some point, and if so is there any ETA on when that will be? Thanks. - Alex