{"id":815131,"url":"http://patchwork.ozlabs.org/api/patches/815131/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-pci/patch/20170918192651.78404-3-bryantly@linux.vnet.ibm.com/","project":{"id":28,"url":"http://patchwork.ozlabs.org/api/projects/28/?format=json","name":"Linux PCI development","link_name":"linux-pci","list_id":"linux-pci.vger.kernel.org","list_email":"linux-pci@vger.kernel.org","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20170918192651.78404-3-bryantly@linux.vnet.ibm.com>","list_archive_url":null,"date":"2017-09-18T19:26:50","name":"[v1,2/3] pseries: Override pci_bus_match_virtfn_driver","commit_ref":null,"pull_url":null,"state":"changes-requested","archived":false,"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/linux-pci/patch/20170918192651.78404-3-bryantly@linux.vnet.ibm.com/mbox/","series":[{"id":3718,"url":"http://patchwork.ozlabs.org/api/series/3718/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-pci/list/?series=3718","date":"2017-09-18T19:26:48","name":"Prepartion for SR-IOV PowerVM Enablement","version":1,"mbox":"http://patchwork.ozlabs.org/series/3718/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/815131/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/815131/checks/","tags":{},"related":[],"headers":{"Return-Path":"<linux-pci-owner@vger.kernel.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=linux-pci-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)","Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xwwxw2srtz9s8J\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 19 Sep 2017 05:27:32 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1750990AbdIRT1b (ORCPT <rfc822;incoming@patchwork.ozlabs.org>);\n\tMon, 18 Sep 2017 15:27:31 -0400","from mx0a-001b2d01.pphosted.com ([148.163.156.1]:56302 \"EHLO\n\tmx0a-001b2d01.pphosted.com\" rhost-flags-OK-OK-OK-OK)\n\tby vger.kernel.org with ESMTP id S1750868AbdIRT1a (ORCPT\n\t<rfc822; linux-pci@vger.kernel.org>); Mon, 18 Sep 2017 15:27:30 -0400","from pps.filterd (m0098396.ppops.net [127.0.0.1])\n\tby mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id\n\tv8IJOT1u074173\n\tfor <linux-pci@vger.kernel.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 2d2hacjph9-1\n\t(version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT)\n\tfor <linux-pci@vger.kernel.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 <linux-pci@vger.kernel.org> from <bryantly@linux.vnet.ibm.com>;\n\tMon, 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)"],"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","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>","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","Sender":"linux-pci-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<linux-pci.vger.kernel.org>","X-Mailing-List":"linux-pci@vger.kernel.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"]}