Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/804188/?format=api
{ "id": 804188, "url": "http://patchwork.ozlabs.org/api/1.2/patches/804188/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/83b05ed2-8d18-3d5c-2003-b022d0d55eb2@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": "<83b05ed2-8d18-3d5c-2003-b022d0d55eb2@linux.vnet.ibm.com>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/83b05ed2-8d18-3d5c-2003-b022d0d55eb2@linux.vnet.ibm.com/", "date": "2017-08-21T21:44:47", "name": "[V9,2/2] powerpc/nodes: Ensure enough nodes avail for operations", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "fd91594e32e6b1cf1b881c9077dc97e55daf49af", "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/83b05ed2-8d18-3d5c-2003-b022d0d55eb2@linux.vnet.ibm.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/804188/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/804188/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 3xbnP34kLvz9t1t\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 22 Aug 2017 07:48:07 +1000 (AEST)", "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xbnP33d26zDrWg\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 22 Aug 2017 07:48:07 +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 3xbnLL3YSCzDrLT\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tTue, 22 Aug 2017 07:45:46 +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\tv7LLjex4023660\n\tfor <linuxppc-dev@lists.ozlabs.org>; Mon, 21 Aug 2017 17:45:44 -0400", "from e37.co.us.ibm.com (e37.co.us.ibm.com [32.97.110.158])\n\tby mx0a-001b2d01.pphosted.com with ESMTP id 2cg70shpvf-1\n\t(version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT)\n\tfor <linuxppc-dev@lists.ozlabs.org>; Mon, 21 Aug 2017 17:45:41 -0400", "from localhost\n\tby e37.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, 21 Aug 2017 15:44:50 -0600", "from b03cxnp07029.gho.boulder.ibm.com (9.17.130.16)\n\tby e37.co.us.ibm.com (192.168.1.137) with IBM ESMTP SMTP Gateway:\n\tAuthorized Use Only! Violators will be prosecuted; \n\tMon, 21 Aug 2017 15:44:48 -0600", "from b03ledav003.gho.boulder.ibm.com\n\t(b03ledav003.gho.boulder.ibm.com [9.17.130.234])\n\tby b03cxnp07029.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with\n\tESMTP id v7LLimpR8716568; Mon, 21 Aug 2017 14:44:48 -0700", "from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id 8EF6E6A03D;\n\tMon, 21 Aug 2017 15:44:47 -0600 (MDT)", "from oc1554177480.ibm.com (unknown [9.53.92.155])\n\tby b03ledav003.gho.boulder.ibm.com (Postfix) with ESMTP id 360826A041;\n\tMon, 21 Aug 2017 15:44:47 -0600 (MDT)" ], "To": "linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org", "From": "Michael Bringmann <mwb@linux.vnet.ibm.com>", "Subject": "[PATCH V9 2/2] powerpc/nodes: Ensure enough nodes avail for\n\toperations", "Organization": "IBM Linux Technology Center", "Date": "Mon, 21 Aug 2017 16:44:47 -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": "7bit", "X-TM-AS-GCONF": "00", "x-cbid": "17082121-0024-0000-0000-0000171405B3", "X-IBM-SpamModules-Scores": "", "X-IBM-SpamModules-Versions": "BY=3.00007587; HX=3.00000241; KW=3.00000007;\n\tPH=3.00000004; SC=3.00000223; SDB=6.00905710; UDB=6.00453879;\n\tIPR=6.00685913; \n\tBA=6.00005545; 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.00016799;\n\tXFM=3.00000015; UTC=2017-08-21 21:44:49", "X-IBM-AV-DETECTION": "SAVI=unused REMOTE=unused XFE=unused", "x-cbparentid": "17082121-0025-0000-0000-00004C671C1B", "Message-Id": "<83b05ed2-8d18-3d5c-2003-b022d0d55eb2@linux.vnet.ibm.com>", "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2017-08-21_14:, , 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-1708210337", "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": "9e5050e1-e0cc-0e0e-7b31-5dcb38b307f4@linux.vnet.ibm.com,\n\tMichael 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": "To: linuxppc-dev@lists.ozlabs.org\n\nFrom: Michael Bringmann <mwb@linux.vnet.ibm.com>\n\nTo: linux-kernel@vger.kernel.org\nCc: Michael Ellerman <mpe@ellerman.id.au>\nCc: Michael Bringmann <mwb@linux.vnet.ibm.com>\nCc: John Allen <jallen@linux.vnet.ibm.com>\nCc: Nathan Fontenot <nfont@linux.vnet.ibm.com>\nSubject: [PATCH V9 2/2] powerpc/nodes: Ensure enough nodes avail for operations\n\npowerpc/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 arch/powerpc/mm/numa.c | 44 ++++++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 44 insertions(+)", "diff": "diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c\nindex 3fd4536..3ae6510 100644\n--- a/arch/powerpc/mm/numa.c\n+++ b/arch/powerpc/mm/numa.c\n@@ -893,6 +893,48 @@ 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+\tprintk(KERN_INFO \"%s:%d\\n\", __FUNCTION__, __LINE__);\n+\n+\trtas = of_find_node_by_path(\"/rtas\");\n+\tif (rtas) {\n+\t\tconst __be32 *prop;\n+\t\tu32 len, entries, levelval, i;\n+\tprintk(KERN_INFO \"%s:%d\\n\", __FUNCTION__, __LINE__);\n+\n+\t\tprop = of_get_property(rtas, \"ibm,max-associativity-domains\", &len);\n+\t\tif (!prop || len < sizeof(unsigned int)) {\n+\tprintk(KERN_INFO \"%s:%d\\n\", __FUNCTION__, __LINE__);\n+\t\t\tgoto endit;\n+\t\t}\n+\n+\t\tentries = of_read_number(prop++, 1);\n+\n+\t\tif (len < (entries * sizeof(unsigned int))) {\n+\tprintk(KERN_INFO \"%s:%d\\n\", __FUNCTION__, __LINE__);\n+\t\t\tgoto endit;\n+\t\t}\n+\n+\t\tfor (i = 0; i < entries; i++)\n+\t\t\tlevelval = of_read_number(prop++, 1);\n+\n+\t\tprintk(KERN_INFO \"Numa nodes avail: %d (%d) \\n\", (int) levelval, (int) entries);\n+\n+\t\tfor (i = 0; i < levelval; 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 +954,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": [ "V9", "2/2" ] }