{"id":815141,"url":"http://patchwork.ozlabs.org/api/patches/815141/?format=json","web_url":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170918192651.78404-3-bryantly@linux.vnet.ibm.com/","project":{"id":2,"url":"http://patchwork.ozlabs.org/api/projects/2/?format=json","name":"Linux PPC development","link_name":"linuxppc-dev","list_id":"linuxppc-dev.lists.ozlabs.org","list_email":"linuxppc-dev@lists.ozlabs.org","web_url":"https://github.com/linuxppc/wiki/wiki","scm_url":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git","webscm_url":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/","list_archive_url":"https://lore.kernel.org/linuxppc-dev/","list_archive_url_format":"https://lore.kernel.org/linuxppc-dev/{}/","commit_url_format":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}"},"msgid":"<20170918192651.78404-3-bryantly@linux.vnet.ibm.com>","list_archive_url":"https://lore.kernel.org/linuxppc-dev/20170918192651.78404-3-bryantly@linux.vnet.ibm.com/","date":"2017-09-18T19:26:50","name":"[v1,2/3] pseries: Override pci_bus_match_virtfn_driver","commit_ref":null,"pull_url":null,"state":"superseded","archived":true,"hash":"f3ecd5e101ca8fbf495921819f2ab0e3569f0a46","submitter":{"id":72247,"url":"http://patchwork.ozlabs.org/api/people/72247/?format=json","name":"Bryant G. Ly","email":"bryantly@linux.vnet.ibm.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170918192651.78404-3-bryantly@linux.vnet.ibm.com/mbox/","series":[{"id":3719,"url":"http://patchwork.ozlabs.org/api/series/3719/?format=json","web_url":"http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=3719","date":"2017-09-18T19:26:48","name":"Prepartion for SR-IOV PowerVM Enablement","version":1,"mbox":"http://patchwork.ozlabs.org/series/3719/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/815141/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/815141/checks/","tags":{},"related":[],"headers":{"Return-Path":"<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>","X-Original-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Received":["from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xwx86606rz9s7p\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 19 Sep 2017 05:36:22 +1000 (AEST)","from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xwx86558ZzDqXv\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 19 Sep 2017 05:36:22 +1000 (AEST)","from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com\n\t[148.163.156.1])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xwwxw2dPNzDqG3\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tTue, 19 Sep 2017 05:27:32 +1000 (AEST)","from pps.filterd (m0098409.ppops.net [127.0.0.1])\n\tby mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id\n\tv8IJOU4n049163\n\tfor <linuxppc-dev@lists.ozlabs.org>; Mon, 18 Sep 2017 15:27:30 -0400","from e12.ny.us.ibm.com (e12.ny.us.ibm.com [129.33.205.202])\n\tby mx0a-001b2d01.pphosted.com with ESMTP id 2d2hwt8ys5-1\n\t(version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT)\n\tfor <linuxppc-dev@lists.ozlabs.org>; Mon, 18 Sep 2017 15:27:29 -0400","from localhost\n\tby e12.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use\n\tOnly! Violators will be prosecuted\n\tfor <linuxppc-dev@lists.ozlabs.org> from\n\t<bryantly@linux.vnet.ibm.com>; Mon, 18 Sep 2017 15:27:28 -0400","from b01cxnp22036.gho.pok.ibm.com (9.57.198.26)\n\tby e12.ny.us.ibm.com (146.89.104.199) with IBM ESMTP SMTP Gateway:\n\tAuthorized Use Only! Violators will be prosecuted; \n\tMon, 18 Sep 2017 15:27:25 -0400","from b01ledav002.gho.pok.ibm.com (b01ledav002.gho.pok.ibm.com\n\t[9.57.199.107])\n\tby b01cxnp22036.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP\n\tid v8IJRO9x48038106; Mon, 18 Sep 2017 19:27:24 GMT","from b01ledav002.gho.pok.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id 5B15812403D;\n\tMon, 18 Sep 2017 15:24:41 -0400 (EDT)","from bryants-mbp-3.rchland.ibm.com (unknown [9.10.79.138])\n\tby b01ledav002.gho.pok.ibm.com (Postfix) with ESMTP id E5010124035;\n\tMon, 18 Sep 2017 15:24:40 -0400 (EDT)"],"Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=linux.vnet.ibm.com\n\t(client-ip=148.163.156.1; helo=mx0a-001b2d01.pphosted.com;\n\tenvelope-from=bryantly@linux.vnet.ibm.com; receiver=<UNKNOWN>)","From":"\"Bryant G. Ly\" <bryantly@linux.vnet.ibm.com>","To":"bhelgaas@google.com, benh@kernel.crashing.org, paulus@samba.org,\n\tmpe@ellerman.id.au","Subject":"[PATCH v1 2/3] pseries: Override pci_bus_match_virtfn_driver","Date":"Mon, 18 Sep 2017 14:26:50 -0500","X-Mailer":"git-send-email 2.11.0 (Apple Git-81)","In-Reply-To":"<20170918192651.78404-1-bryantly@linux.vnet.ibm.com>","References":"<20170918192651.78404-1-bryantly@linux.vnet.ibm.com>","X-TM-AS-GCONF":"00","x-cbid":"17091819-0048-0000-0000-000001E72726","X-IBM-SpamModules-Scores":"","X-IBM-SpamModules-Versions":"BY=3.00007757; HX=3.00000241; KW=3.00000007;\n\tPH=3.00000004; SC=3.00000230; SDB=6.00918923; UDB=6.00461645;\n\tIPR=6.00699151; \n\tBA=6.00005595; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009;\n\tZB=6.00000000; \n\tZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00017199;\n\tXFM=3.00000015; UTC=2017-09-18 19:27:27","X-IBM-AV-DETECTION":"SAVI=unused REMOTE=unused XFE=unused","x-cbparentid":"17091819-0049-0000-0000-0000429A36F3","Message-Id":"<20170918192651.78404-3-bryantly@linux.vnet.ibm.com>","X-Proofpoint-Virus-Version":"vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2017-09-18_08:, , signatures=0","X-Proofpoint-Spam-Details":"rule=outbound_notspam policy=outbound score=0\n\tspamscore=0 suspectscore=0\n\tmalwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam\n\tadjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000\n\tdefinitions=main-1709180274","X-BeenThere":"linuxppc-dev@lists.ozlabs.org","X-Mailman-Version":"2.1.24","Precedence":"list","List-Id":"Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>","List-Unsubscribe":"<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>","List-Archive":"<http://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>","List-Subscribe":"<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>","Cc":"linux-pci@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,\n\t\"Bryant G. Ly\" <bryantly@linux.vnet.ibm.com>,\n\t\"Juan J . Alvarez\" <jjalvare@us.ibm.com>","Errors-To":"linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org","Sender":"\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>"},"content":"For Powervm SR-IOV (Pseries) enablement we dont want to match\nthe virtual function's device drivers since firmware\nplans to load the device node in the device tree\ndynamically when Novalink assigns the VF to a partition.\n\nSigned-off-by: Bryant G. Ly <bryantly@linux.vnet.ibm.com>\nSigned-off-by: Juan J. Alvarez <jjalvare@us.ibm.com>\n---\n arch/powerpc/platforms/pseries/pci.c | 17 +++++++++++++++++\n 1 file changed, 17 insertions(+)","diff":"diff --git a/arch/powerpc/platforms/pseries/pci.c b/arch/powerpc/platforms/pseries/pci.c\nindex 09eba5a9929a..15d5145a622d 100644\n--- a/arch/powerpc/platforms/pseries/pci.c\n+++ b/arch/powerpc/platforms/pseries/pci.c\n@@ -58,6 +58,23 @@ void pcibios_name_device(struct pci_dev *dev)\n DECLARE_PCI_FIXUP_HEADER(PCI_ANY_ID, PCI_ANY_ID, pcibios_name_device);\n #endif\n \n+#ifdef CONFIG_PCI_IOV\n+void pci_bus_match_virtfn_driver(struct pci_dev *dev)\n+{\n+\t/*\n+\t * Per PSeries SR-IOV requirement there is no need to\n+\t * match virtual function device driver as firmware\n+\t * will load the device node in the device tree dynamically.\n+\t * Since there is no matching of device driver there is\n+\t * no failure when attaching driver, therefore there is no\n+\t * need to remove sysfs file. Furthermore, the VF platform\n+\t * management still needs to exist in sysfs files to be used\n+\t * by management.\n+\t */\n+\tdev->is_added = 1;\n+}\n+#endif\n+\n static void __init pSeries_request_regions(void)\n {\n \tif (!isa_io_base)\n","prefixes":["v1","2/3"]}