Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/817532/?format=api
{ "id": 817532, "url": "http://patchwork.ozlabs.org/api/patches/817532/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20170922140608.47665-3-bryantly@linux.vnet.ibm.com/", "project": { "id": 28, "url": "http://patchwork.ozlabs.org/api/projects/28/?format=api", "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": "<20170922140608.47665-3-bryantly@linux.vnet.ibm.com>", "list_archive_url": null, "date": "2017-09-22T14:06:08", "name": "[v2,2/2] pseries/eeh: Add Pseries pcibios_bus_add_device", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "b2c6176b7bc42d71de56fac3f5a604d2ee6e289c", "submitter": { "id": 72247, "url": "http://patchwork.ozlabs.org/api/people/72247/?format=api", "name": "Bryant G. Ly", "email": "bryantly@linux.vnet.ibm.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20170922140608.47665-3-bryantly@linux.vnet.ibm.com/mbox/", "series": [ { "id": 4637, "url": "http://patchwork.ozlabs.org/api/series/4637/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=4637", "date": "2017-09-22T14:06:06", "name": "Prepartion for SR-IOV PowerVM Enablement", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/4637/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/817532/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/817532/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 3xzFf83K4Lz9t3w\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 23 Sep 2017 00:06:56 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752210AbdIVOGz (ORCPT <rfc822;incoming@patchwork.ozlabs.org>);\n\tFri, 22 Sep 2017 10:06:55 -0400", "from mx0a-001b2d01.pphosted.com ([148.163.156.1]:41924 \"EHLO\n\tmx0a-001b2d01.pphosted.com\" rhost-flags-OK-OK-OK-OK)\n\tby vger.kernel.org with ESMTP id S1751979AbdIVOGz (ORCPT\n\t<rfc822; linux-pci@vger.kernel.org>); Fri, 22 Sep 2017 10:06:55 -0400", "from pps.filterd (m0098394.ppops.net [127.0.0.1])\n\tby mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id\n\tv8ME6gKr108728\n\tfor <linux-pci@vger.kernel.org>; Fri, 22 Sep 2017 10:06:54 -0400", "from e38.co.us.ibm.com (e38.co.us.ibm.com [32.97.110.159])\n\tby mx0a-001b2d01.pphosted.com with ESMTP id 2d51nhtt0v-1\n\t(version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT)\n\tfor <linux-pci@vger.kernel.org>; Fri, 22 Sep 2017 10:06:54 -0400", "from localhost\n\tby e38.co.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\tFri, 22 Sep 2017 08:06:24 -0600", "from b03cxnp08027.gho.boulder.ibm.com (9.17.130.19)\n\tby e38.co.us.ibm.com (192.168.1.138) with IBM ESMTP SMTP Gateway:\n\tAuthorized Use Only! Violators will be prosecuted; \n\tFri, 22 Sep 2017 08:06:20 -0600", "from b03ledav006.gho.boulder.ibm.com\n\t(b03ledav006.gho.boulder.ibm.com [9.17.130.237])\n\tby b03cxnp08027.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with\n\tESMTP id v8ME6JRj65405066; Fri, 22 Sep 2017 07:06:19 -0700", "from b03ledav006.gho.boulder.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id C323FC603E;\n\tFri, 22 Sep 2017 08:06:19 -0600 (MDT)", "from bryants-mbp-3.rchland.ibm.com (unknown [9.10.79.180])\n\tby b03ledav006.gho.boulder.ibm.com (Postfix) with ESMTP id 5090AC6042;\n\tFri, 22 Sep 2017 08:06:19 -0600 (MDT)" ], "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 v2 2/2] pseries/eeh: Add Pseries pcibios_bus_add_device", "Date": "Fri, 22 Sep 2017 09:06:08 -0500", "X-Mailer": "git-send-email 2.11.0 (Apple Git-81)", "In-Reply-To": "<20170922140608.47665-1-bryantly@linux.vnet.ibm.com>", "References": "<20170922140608.47665-1-bryantly@linux.vnet.ibm.com>", "X-TM-AS-GCONF": "00", "x-cbid": "17092214-0028-0000-0000-000008658797", "X-IBM-SpamModules-Scores": "", "X-IBM-SpamModules-Versions": "BY=3.00007777; HX=3.00000241; KW=3.00000007;\n\tPH=3.00000004; SC=3.00000231; SDB=6.00920736; UDB=6.00462682;\n\tIPR=6.00700958; \n\tBA=6.00005601; 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.00017248;\n\tXFM=3.00000015; UTC=2017-09-22 14:06:22", "X-IBM-AV-DETECTION": "SAVI=unused REMOTE=unused XFE=unused", "x-cbparentid": "17092214-0029-0000-0000-000037A7C05A", "Message-Id": "<20170922140608.47665-3-bryantly@linux.vnet.ibm.com>", "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2017-09-22_05:, , 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-1709220196", "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": "This patch adds the machine dependent call for\npcibios_bus_add_device, since the previous patch\nseparated the calls out between the PowerNV and PowerVM.\n\nThe difference here is that for the PowerVM environment\nwe do not want match_driver set because in this environment\nwe do not want the VF device drivers to load immediately, due to\nfirmware loading the device node when VF device is assigned to the\nlogical partition.\n\nThis patch will depend on the patch linked below, which is under\nreview.\n\nhttps://patchwork.kernel.org/patch/9882915/\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/eeh_pseries.c | 24 ++++++++++++++++++++++++\n 1 file changed, 24 insertions(+)", "diff": "diff --git a/arch/powerpc/platforms/pseries/eeh_pseries.c b/arch/powerpc/platforms/pseries/eeh_pseries.c\nindex 1eef46d9cf30..ac72011a045c 100644\n--- a/arch/powerpc/platforms/pseries/eeh_pseries.c\n+++ b/arch/powerpc/platforms/pseries/eeh_pseries.c\n@@ -64,6 +64,27 @@ static unsigned char slot_errbuf[RTAS_ERROR_LOG_MAX];\n static DEFINE_SPINLOCK(slot_errbuf_lock);\n static int eeh_error_buf_size;\n \n+void pseries_pcibios_bus_add_device(struct pci_dev *pdev)\n+{\n+\tstruct pci_dn *pdn = pci_get_pdn(pdev);\n+\n+\tif (!pdev->is_virtfn)\n+\t\treturn;\n+\n+\tpdn->device_id = pdev->device;\n+\tpdn->vendor_id = pdev->vendor;\n+\tpdn->class_code = pdev->class;\n+\n+\t/*\n+\t * The following operations will fail if VF's sysfs files\n+\t * aren't created or its resources aren't finalized.\n+\t */\n+\teeh_add_device_early(pdn);\n+\teeh_add_device_late(pdev);\n+\teeh_sysfs_add_device(pdev);\n+\tpdev->match_driver = -1;\n+}\n+\n /**\n * pseries_eeh_init - EEH platform dependent initialization\n *\n@@ -120,6 +141,9 @@ static int pseries_eeh_init(void)\n \t/* Set EEH probe mode */\n \teeh_add_flag(EEH_PROBE_MODE_DEVTREE | EEH_ENABLE_IO_FOR_LOG);\n \n+\t/* Set EEH machine dependent code */\n+\tppc_md.pcibios_bus_add_device = pseries_pcibios_bus_add_device;\n+\n \treturn 0;\n }\n \n", "prefixes": [ "v2", "2/2" ] }