Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/806837/?format=api
{ "id": 806837, "url": "http://patchwork.ozlabs.org/api/patches/806837/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/c9c4e3b6-48eb-aede-1c02-1605e17eebf5@linux.vnet.ibm.com/", "project": { "id": 2, "url": "http://patchwork.ozlabs.org/api/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": "<c9c4e3b6-48eb-aede-1c02-1605e17eebf5@linux.vnet.ibm.com>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/c9c4e3b6-48eb-aede-1c02-1605e17eebf5@linux.vnet.ibm.com/", "date": "2017-08-29T00:32:35", "name": "[V11,2/3] powerpc/nodes: Ensure enough nodes avail for operations", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "0aa8558d087a687604a79433222d9473c1e65d78", "submitter": { "id": 65104, "url": "http://patchwork.ozlabs.org/api/people/65104/?format=api", "name": "Michael Bringmann", "email": "mwb@linux.vnet.ibm.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/c9c4e3b6-48eb-aede-1c02-1605e17eebf5@linux.vnet.ibm.com/mbox/", "series": [ { "id": 282, "url": "http://patchwork.ozlabs.org/api/series/282/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=282", "date": "2017-08-29T00:32:02", "name": "powerpc/dlpar: Correct display of hot-add/hot-remove CPUs and memory", "version": 11, "mbox": "http://patchwork.ozlabs.org/series/282/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/806837/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/806837/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 3xh8ns6D7Cz9sNc\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 29 Aug 2017 10:36:17 +1000 (AEST)", "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xh8ns5CN2zDrKf\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 29 Aug 2017 10:36:17 +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 3xh8jm2ygDzDqMh\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tTue, 29 Aug 2017 10:32:44 +1000 (AEST)", "from pps.filterd (m0098410.ppops.net [127.0.0.1])\n\tby mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id\n\tv7T0US3d074802\n\tfor <linuxppc-dev@lists.ozlabs.org>; Mon, 28 Aug 2017 20:32:42 -0400", "from e36.co.us.ibm.com (e36.co.us.ibm.com [32.97.110.154])\n\tby mx0a-001b2d01.pphosted.com with ESMTP id 2cmr8nfpd1-1\n\t(version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT)\n\tfor <linuxppc-dev@lists.ozlabs.org>; Mon, 28 Aug 2017 20:32:42 -0400", "from localhost\n\tby e36.co.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, 28 Aug 2017 18:32:40 -0600", "from b03cxnp08028.gho.boulder.ibm.com (9.17.130.20)\n\tby e36.co.us.ibm.com (192.168.1.136) with IBM ESMTP SMTP Gateway:\n\tAuthorized Use Only! Violators will be prosecuted; \n\tMon, 28 Aug 2017 18:32:38 -0600", "from b03ledav001.gho.boulder.ibm.com\n\t(b03ledav001.gho.boulder.ibm.com [9.17.130.232])\n\tby b03cxnp08028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with\n\tESMTP id v7T0WbP330212286; Mon, 28 Aug 2017 17:32:37 -0700", "from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id 6C2F46E03A;\n\tMon, 28 Aug 2017 18:32:37 -0600 (MDT)", "from oc1554177480.ibm.com (unknown [9.80.214.231])\n\tby b03ledav001.gho.boulder.ibm.com (Postfix) with ESMTP id 50E626E035;\n\tMon, 28 Aug 2017 18:32:36 -0600 (MDT)" ], "To": "linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org", "From": "Michael Bringmann <mwb@linux.vnet.ibm.com>", "Subject": "[PATCH V11 2/3] powerpc/nodes: Ensure enough nodes avail for\n\toperations", "Organization": "IBM Linux Technology Center", "In-Reply-To": "<27ed5a3a-e2d5-fc6d-9a3b-735430faa9da@linux.vnet.ibm.com>", "Date": "Mon, 28 Aug 2017 19:32:35 -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": "17082900-0020-0000-0000-00000CA0EC31", "X-IBM-SpamModules-Scores": "", "X-IBM-SpamModules-Versions": "BY=3.00007630; HX=3.00000241; KW=3.00000007;\n\tPH=3.00000004; SC=3.00000226; SDB=6.00909033; UDB=6.00455852;\n\tIPR=6.00689284; \n\tBA=6.00005557; 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.00016909;\n\tXFM=3.00000015; UTC=2017-08-29 00:32:39", "X-IBM-AV-DETECTION": "SAVI=unused REMOTE=unused XFE=unused", "x-cbparentid": "17082900-0021-0000-0000-00005DE89A31", "Message-Id": "<c9c4e3b6-48eb-aede-1c02-1605e17eebf5@linux.vnet.ibm.com>", "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2017-08-28_13:, , 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-1708290005", "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>", "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/nodes: On systems like PowerPC which allow 'hot-add' of CPU\nor memory resources, it may occur that the new resources are to be\ninserted into nodes that were not used for these resources at bootup.\nIn the kernel, any node that is used must be defined and initialized\nat boot.\n\nThis patch extracts the value of the lowest domain level (number of\nallocable resources) from the \"rtas\" device tree property\n\"ibm,max-associativity-domains\" to use as the maximum number of nodes\nto setup as possibly available in the system. This new setting will\noverride the instruction,\n\n nodes_and(node_possible_map, node_possible_map, node_online_map);\n\npresently seen in the function arch/powerpc/mm/numa.c:initmem_init().\n\nIf the property is not present at boot, no operation will be performed\nto define or enable additional nodes.\n\nSigned-off-by: Michael Bringmann <mwb@linux.vnet.ibm.com>\n\n---\nChanges in V11:\n -- Cleanup/simplify code that extracts max num of nodes\n---\n arch/powerpc/mm/numa.c | 43 +++++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 43 insertions(+)", "diff": "diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c\nindex cf8cd42..2e8258a 100644\n--- a/arch/powerpc/mm/numa.c\n+++ b/arch/powerpc/mm/numa.c\n@@ -893,6 +893,47 @@ static void __init setup_node_data(int nid, u64 start_pfn, u64 end_pfn)\n \tNODE_DATA(nid)->node_spanned_pages = spanned_pages;\n }\n \n+static void __init node_associativity_setup(void)\n+{\n+\tstruct device_node *rtas;\n+\n+\trtas = of_find_node_by_path(\"/rtas\");\n+\tif (rtas) {\n+\t\tconst __be32 *prop;\n+\t\tu32 len, entries, numnodes, i;\n+\n+\t\tprop = of_get_property(rtas, \"ibm,max-associativity-domains\", &len);\n+\t\tif (!prop || len < sizeof(unsigned int))\n+\t\t\tgoto endit;\n+\n+\t\tentries = of_read_number(prop++, 1);\n+\n+\t\tif (len < (entries * sizeof(unsigned int)))\n+\t\t\tgoto endit;\n+\n+\t\tif ((0 <= min_common_depth) && (min_common_depth <= (entries-1)))\n+\t\t\tentries = min_common_depth;\n+\t\telse\n+\t\t\tentries -= 1;\n+\n+\t\tnumnodes = of_read_number(&prop[entries], 1);\n+\n+\t\tprintk(KERN_INFO \"numa: Nodes = %d (mcd = %d)\\n\", numnodes,\n+\t\t\tmin_common_depth);\n+\n+\t\tfor (i = 0; i < numnodes; i++) {\n+\t\t\tif (!node_possible(i)) {\n+\t\t\t\tsetup_node_data(i, 0, 0);\n+\t\t\t\tnode_set(i, node_possible_map);\n+\t\t\t}\n+\t\t}\n+\t}\n+\n+endit:\n+\tif (rtas)\n+\t\tof_node_put(rtas);\n+}\n+\n void __init initmem_init(void)\n {\n \tint nid, cpu;\n@@ -912,6 +953,8 @@ void __init initmem_init(void)\n \t */\n \tnodes_and(node_possible_map, node_possible_map, node_online_map);\n \n+\tnode_associativity_setup();\n+\n \tfor_each_online_node(nid) {\n \t\tunsigned long start_pfn, end_pfn;\n \n", "prefixes": [ "V11", "2/3" ] }