Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/805132/?format=api
{ "id": 805132, "url": "http://patchwork.ozlabs.org/api/1.2/patches/805132/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/fc2ad536-a772-f006-43c4-1ddf6e296ebb@linux.vnet.ibm.com/", "project": { "id": 2, "url": "http://patchwork.ozlabs.org/api/1.2/projects/2/?format=api", "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": "<fc2ad536-a772-f006-43c4-1ddf6e296ebb@linux.vnet.ibm.com>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/fc2ad536-a772-f006-43c4-1ddf6e296ebb@linux.vnet.ibm.com/", "date": "2017-08-23T17:18:43", "name": "powerpc/pseries: Don't attempt to acquire drc during memory hot add for assigned lmbs", "commit_ref": "afb5519fdb346201728040cab4e08ce53e7ff4fd", "pull_url": null, "state": "accepted", "archived": false, "hash": "7ebbb885e582e0912295cc6c6dc0904cf7265315", "submitter": { "id": 67553, "url": "http://patchwork.ozlabs.org/api/1.2/people/67553/?format=api", "name": "John Allen", "email": "jallen@linux.vnet.ibm.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/fc2ad536-a772-f006-43c4-1ddf6e296ebb@linux.vnet.ibm.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/805132/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/805132/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 [103.22.144.68])\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 3xcvMr0THCz9ryv\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 24 Aug 2017 03:20:56 +1000 (AEST)", "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xcvMq67HKzDrJp\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 24 Aug 2017 03:20:55 +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 3xcvKT6Bj9zDrJg\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tThu, 24 Aug 2017 03:18:52 +1000 (AEST)", "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\tv7NHInGE133733\n\tfor <linuxppc-dev@lists.ozlabs.org>; Wed, 23 Aug 2017 13:18:50 -0400", "from e19.ny.us.ibm.com (e19.ny.us.ibm.com [129.33.205.209])\n\tby mx0a-001b2d01.pphosted.com with ESMTP id 2chafkv30k-1\n\t(version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT)\n\tfor <linuxppc-dev@lists.ozlabs.org>; Wed, 23 Aug 2017 13:18:49 -0400", "from localhost\n\tby e19.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 <jallen@linux.vnet.ibm.com>; \n\tWed, 23 Aug 2017 13:18:47 -0400", "from b01cxnp22034.gho.pok.ibm.com (9.57.198.24)\n\tby e19.ny.us.ibm.com (146.89.104.206) with IBM ESMTP SMTP Gateway:\n\tAuthorized Use Only! Violators will be prosecuted; \n\tWed, 23 Aug 2017 13:18:45 -0400", "from b01ledav002.gho.pok.ibm.com (b01ledav002.gho.pok.ibm.com\n\t[9.57.199.107])\n\tby b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP\n\tid v7NHIj2822740996; Wed, 23 Aug 2017 17:18:45 GMT", "from b01ledav002.gho.pok.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id 0FE0212403F;\n\tWed, 23 Aug 2017 13:16:06 -0400 (EDT)", "from [9.41.92.172] (unknown [9.41.92.172])\n\tby b01ledav002.gho.pok.ibm.com (Postfix) with ESMTP id 70686124035;\n\tWed, 23 Aug 2017 13:16:05 -0400 (EDT)" ], "To": "linuxppc-dev@lists.ozlabs.org, Nathan Fontenot <nfont@linux.vnet.ibm.com>", "From": "John Allen <jallen@linux.vnet.ibm.com>", "Subject": "[PATCH] powerpc/pseries: Don't attempt to acquire drc during memory\n\thot add for assigned lmbs", "Date": "Wed, 23 Aug 2017 12:18:43 -0500", "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.2.1", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=utf-8", "Content-Language": "en-US", "Content-Transfer-Encoding": "7bit", "X-TM-AS-GCONF": "00", "x-cbid": "17082317-0056-0000-0000-000003BAFD8D", "X-IBM-SpamModules-Scores": "", "X-IBM-SpamModules-Versions": "BY=3.00007598; HX=3.00000241; KW=3.00000007;\n\tPH=3.00000004; SC=3.00000224; SDB=6.00906569; UDB=6.00454395;\n\tIPR=6.00686771; \n\tBA=6.00005550; 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.00016830;\n\tXFM=3.00000015; UTC=2017-08-23 17:18:46", "X-IBM-AV-DETECTION": "SAVI=unused REMOTE=unused XFE=unused", "x-cbparentid": "17082317-0057-0000-0000-000007F12D4F", "Message-Id": "<fc2ad536-a772-f006-43c4-1ddf6e296ebb@linux.vnet.ibm.com>", "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2017-08-23_07:, , 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-1708230262", "X-BeenThere": "linuxppc-dev@lists.ozlabs.org", "X-Mailman-Version": "2.1.23", "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>", "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": "Check if an LMB is assigned before attempting to call dlpar_acquire_drc in\norder to avoid any unnecessary rtas calls. This substantially reduces the\nrunning time of memory hot add on lpars with large amounts of memory.\n\nSigned-off-by: John Allen <jallen@linux.vnet.ibm.com>\n---", "diff": "diff --git a/arch/powerpc/platforms/pseries/hotplug-memory.c b/arch/powerpc/platforms/pseries/hotplug-memory.c\nindex ca9b2f4..95cf2ff 100644\n--- a/arch/powerpc/platforms/pseries/hotplug-memory.c\n+++ b/arch/powerpc/platforms/pseries/hotplug-memory.c\n@@ -817,6 +817,9 @@ static int dlpar_memory_add_by_count(u32 lmbs_to_add, struct property *prop)\n \t\treturn -EINVAL;\n\n \tfor (i = 0; i < num_lmbs && lmbs_to_add != lmbs_added; i++) {\n+\t\tif (lmbs[i].flags & DRCONF_MEM_ASSIGNED)\n+\t\t\tcontinue;\n+\n \t\trc = dlpar_acquire_drc(lmbs[i].drc_index);\n \t\tif (rc)\n \t\t\tcontinue;\n", "prefixes": [] }