Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/815077/?format=api
{ "id": 815077, "url": "http://patchwork.ozlabs.org/api/1.2/patches/815077/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/a5f7fdb2-d974-03c6-5ecc-c7f726f2b244@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": "<a5f7fdb2-d974-03c6-5ecc-c7f726f2b244@linux.vnet.ibm.com>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/a5f7fdb2-d974-03c6-5ecc-c7f726f2b244@linux.vnet.ibm.com/", "date": "2017-09-18T18:28:41", "name": "[2/2] powerpc/hotplug: Ensure nodes initialized for hotplug", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "2eb339a1fda10dbace8c1f60cabb2ac39f070b59", "submitter": { "id": 65104, "url": "http://patchwork.ozlabs.org/api/1.2/people/65104/?format=api", "name": "Michael Bringmann", "email": "mwb@linux.vnet.ibm.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/a5f7fdb2-d974-03c6-5ecc-c7f726f2b244@linux.vnet.ibm.com/mbox/", "series": [ { "id": 3702, "url": "http://patchwork.ozlabs.org/api/1.2/series/3702/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=3702", "date": "2017-09-18T18:28:11", "name": "powerpc/nodes/hotplug: Fix problem with memoryless nodes", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/3702/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/815077/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/815077/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 3xwvtX49Rdz9s7p\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 19 Sep 2017 04:39:32 +1000 (AEST)", "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xwvtX1bt4zDqGq\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 19 Sep 2017 04:39:32 +1000 (AEST)", "from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com\n\t[148.163.158.5])\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 3xwvf972K9zDqGs\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tTue, 19 Sep 2017 04:28:49 +1000 (AEST)", "from pps.filterd (m0098417.ppops.net [127.0.0.1])\n\tby mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id\n\tv8IIOQTF085090\n\tfor <linuxppc-dev@lists.ozlabs.org>; Mon, 18 Sep 2017 14:28:47 -0400", "from e11.ny.us.ibm.com (e11.ny.us.ibm.com [129.33.205.201])\n\tby mx0a-001b2d01.pphosted.com with ESMTP id 2d2ea04hm1-1\n\t(version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT)\n\tfor <linuxppc-dev@lists.ozlabs.org>; Mon, 18 Sep 2017 14:28:46 -0400", "from localhost\n\tby e11.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 <mwb@linux.vnet.ibm.com>;\n\tMon, 18 Sep 2017 14:28:46 -0400", "from b01cxnp22034.gho.pok.ibm.com (9.57.198.24)\n\tby e11.ny.us.ibm.com (146.89.104.198) with IBM ESMTP SMTP Gateway:\n\tAuthorized Use Only! Violators will be prosecuted; \n\tMon, 18 Sep 2017 14:28:43 -0400", "from b01ledav005.gho.pok.ibm.com (b01ledav005.gho.pok.ibm.com\n\t[9.57.199.110])\n\tby b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP\n\tid v8IIShbm52297742; Mon, 18 Sep 2017 18:28:43 GMT", "from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id F1FB2AE04B;\n\tMon, 18 Sep 2017 14:29:13 -0400 (EDT)", "from oc1554177480.ibm.com (unknown [9.53.92.236])\n\tby b01ledav005.gho.pok.ibm.com (Postfix) with ESMTP id 75782AE034;\n\tMon, 18 Sep 2017 14:29:13 -0400 (EDT)" ], "Authentication-Results": "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=linux.vnet.ibm.com\n\t(client-ip=148.163.158.5; helo=mx0a-001b2d01.pphosted.com;\n\tenvelope-from=mwb@linux.vnet.ibm.com; receiver=<UNKNOWN>)", "To": "linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org", "From": "Michael Bringmann <mwb@linux.vnet.ibm.com>", "Subject": "[PATCH 2/2] powerpc/hotplug: Ensure nodes initialized for hotplug", "Organization": "IBM Linux Technology Center", "In-Reply-To": "<49626c85-d466-3f99-bde8-f459e278f6ee@linux.vnet.ibm.com>", "Date": "Mon, 18 Sep 2017 13:28:41 -0500", "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.2.0", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=utf-8", "Content-Language": "en-US", "Content-Transfer-Encoding": "8bit", "X-TM-AS-GCONF": "00", "x-cbid": "17091818-2213-0000-0000-0000021D33C4", "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.00918904; UDB=6.00461633;\n\tIPR=6.00699131; \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.00017198;\n\tXFM=3.00000015; UTC=2017-09-18 18:28:44", "X-IBM-AV-DETECTION": "SAVI=unused REMOTE=unused XFE=unused", "x-cbparentid": "17091818-2214-0000-0000-000057963B11", "Message-Id": "<a5f7fdb2-d974-03c6-5ecc-c7f726f2b244@linux.vnet.ibm.com>", "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2017-09-18_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-1709180260", "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": "Michael Bringmann <mwb@linux.vnet.ibm.com>,\n\tNathan Fontenot <nfont@linux.vnet.ibm.com>,\n\tJohn Allen <jallen@linux.vnet.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": "powerpc/hotplug: On systems like PowerPC which allow 'hot-add' of CPU,\nit may occur that the new resources are to be inserted into nodes\nthat were not used for memory resources at bootup. Many different\nconfigurations of PowerPC resources may need to be supported depending\nupon the environment. This patch fixes some problems encountered at\nruntime with configurations that support memory-less nodes, but which\nallow CPUs to be added at and after boot.\n\nSigned-off-by: Michael Bringmann <mwb@linux.vnet.ibm.com>\n---\n arch/powerpc/mm/numa.c | 17 +++++++++++++++--\n 1 file changed, 15 insertions(+), 2 deletions(-)", "diff": "diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c\nindex b385cd0..e811dd1 100644\n--- a/arch/powerpc/mm/numa.c\n+++ b/arch/powerpc/mm/numa.c\n@@ -551,7 +551,7 @@ static int numa_setup_cpu(unsigned long lcpu)\n \tnid = of_node_to_nid_single(cpu);\n \n out_present:\n-\tif (nid < 0 || !node_online(nid))\n+\tif (nid < 0 || !node_possible(nid))\n \t\tnid = first_online_node;\n \n \tmap_cpu_to_node(lcpu, nid);\n@@ -1325,6 +1325,17 @@ static long vphn_get_associativity(unsigned long cpu,\n \treturn rc;\n }\n \n+static int verify_node_preparation(int nid)\n+{\n+\tif ((NODE_DATA(nid) == NULL) ||\n+\t (NODE_DATA(nid)->node_spanned_pages == 0)) {\n+\t\tif (try_online_node(nid))\n+\t\t\treturn first_online_node;\n+\t}\n+\n+\treturn nid;\n+}\n+\n /*\n * Update the CPU maps and sysfs entries for a single CPU when its NUMA\n * characteristics change. This function doesn't perform any locking and is\n@@ -1433,9 +1444,11 @@ int numa_update_cpu_topology(bool cpus_locked)\n \t\t/* Use associativity from first thread for all siblings */\n \t\tvphn_get_associativity(cpu, associativity);\n \t\tnew_nid = associativity_to_nid(associativity);\n-\t\tif (new_nid < 0 || !node_online(new_nid))\n+\t\tif (new_nid < 0 || !node_possible(new_nid))\n \t\t\tnew_nid = first_online_node;\n \n+\t\tnew_nid = verify_node_preparation(new_nid);\n+\n \t\tif (new_nid == numa_cpu_lookup_table[cpu]) {\n \t\t\tcpumask_andnot(&cpu_associativity_changes_mask,\n \t\t\t\t\t&cpu_associativity_changes_mask,\n", "prefixes": [ "2/2" ] }