Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/831058/?format=api
{ "id": 831058, "url": "http://patchwork.ozlabs.org/api/1.2/patches/831058/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20171027040833.3644-16-aneesh.kumar@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": "<20171027040833.3644-16-aneesh.kumar@linux.vnet.ibm.com>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20171027040833.3644-16-aneesh.kumar@linux.vnet.ibm.com/", "date": "2017-10-27T04:08:32", "name": "[15/16] powerpc/mm/pseries: Move slot based bulk remove to helper", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "03bc3fd3d56a24f62db271b9c520be6fb0c1c2a7", "submitter": { "id": 664, "url": "http://patchwork.ozlabs.org/api/1.2/people/664/?format=api", "name": "Aneesh Kumar K.V", "email": "aneesh.kumar@linux.vnet.ibm.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20171027040833.3644-16-aneesh.kumar@linux.vnet.ibm.com/mbox/", "series": [ { "id": 10486, "url": "http://patchwork.ozlabs.org/api/1.2/series/10486/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=10486", "date": "2017-10-27T04:08:17", "name": "Remove hash page table slot tracking from linux PTE", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/10486/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/831058/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/831058/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 3yNWB93zBqz9t2d\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri, 27 Oct 2017 15:29:53 +1100 (AEDT)", "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3yNWB9390kzDsxx\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri, 27 Oct 2017 15:29:53 +1100 (AEDT)", "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 3yNVlS4HLHzDrcj\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tFri, 27 Oct 2017 15:10:12 +1100 (AEDT)", "from pps.filterd (m0098413.ppops.net [127.0.0.1])\n\tby mx0b-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id\n\tv9R492IF036380\n\tfor <linuxppc-dev@lists.ozlabs.org>; Fri, 27 Oct 2017 00:10:10 -0400", "from e36.co.us.ibm.com (e36.co.us.ibm.com [32.97.110.154])\n\tby mx0b-001b2d01.pphosted.com with ESMTP id 2duuqmvm1c-1\n\t(version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT)\n\tfor <linuxppc-dev@lists.ozlabs.org>; Fri, 27 Oct 2017 00:10:10 -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\n\t<aneesh.kumar@linux.vnet.ibm.com>; Thu, 26 Oct 2017 22:10:09 -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\tThu, 26 Oct 2017 22:10:06 -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 v9R4A5JP31391880; Thu, 26 Oct 2017 21:10:05 -0700", "from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id CCB7B6E177;\n\tThu, 26 Oct 2017 22:10:05 -0600 (MDT)", "from skywalker.ibmmodules.com (unknown [9.85.199.61])\n\tby b03ledav001.gho.boulder.ibm.com (Postfix) with ESMTP id 615196E175;\n\tThu, 26 Oct 2017 22:10:02 -0600 (MDT)" ], "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=aneesh.kumar@linux.vnet.ibm.com; receiver=<UNKNOWN>)", "From": "\"Aneesh Kumar K.V\" <aneesh.kumar@linux.vnet.ibm.com>", "To": "benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au", "Subject": "[PATCH 15/16] powerpc/mm/pseries: Move slot based bulk remove to\n\thelper", "Date": "Fri, 27 Oct 2017 09:38:32 +0530", "X-Mailer": "git-send-email 2.13.6", "In-Reply-To": "<20171027040833.3644-1-aneesh.kumar@linux.vnet.ibm.com>", "References": "<20171027040833.3644-1-aneesh.kumar@linux.vnet.ibm.com>", "X-TM-AS-GCONF": "00", "x-cbid": "17102704-0020-0000-0000-00000CE87170", "X-IBM-SpamModules-Scores": "", "X-IBM-SpamModules-Versions": "BY=3.00007958; HX=3.00000241; KW=3.00000007;\n\tPH=3.00000004; SC=3.00000239; SDB=6.00937034; UDB=6.00472246;\n\tIPR=6.00717297; \n\tBA=6.00005660; 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.00017735;\n\tXFM=3.00000015; UTC=2017-10-27 04:10:08", "X-IBM-AV-DETECTION": "SAVI=unused REMOTE=unused XFE=unused", "x-cbparentid": "17102704-0021-0000-0000-00005EAC0DAB", "Message-Id": "<20171027040833.3644-16-aneesh.kumar@linux.vnet.ibm.com>", "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2017-10-27_02:, , signatures=0", "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n\tpriorityscore=1501\n\tmalwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0\n\tclxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0\n\tclassifier=spam adjust=0 reason=mlx scancount=1\n\tengine=8.0.1-1707230000\n\tdefinitions=main-1710270053", "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": "linuxppc-dev@lists.ozlabs.org,\n\t\"Aneesh Kumar K.V\" <aneesh.kumar@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": "---\n arch/powerpc/platforms/pseries/lpar.c | 51 +++++++++++++++++++++--------------\n 1 file changed, 31 insertions(+), 20 deletions(-)", "diff": "diff --git a/arch/powerpc/platforms/pseries/lpar.c b/arch/powerpc/platforms/pseries/lpar.c\nindex 41512aaa8c8e..4ea9224cbeb6 100644\n--- a/arch/powerpc/platforms/pseries/lpar.c\n+++ b/arch/powerpc/platforms/pseries/lpar.c\n@@ -632,6 +632,34 @@ static int pSeries_lpar_hpte_removebolted(unsigned long ea,\n \treturn 0;\n }\n \n+static int plpar_bluk_remove(unsigned long *param, int index, unsigned long slot,\n+\t\t\t unsigned long vpn, unsigned long psize,\n+\t\t\t unsigned long ssize, int local)\n+{\n+\tunsigned long rc;\n+\tif (!firmware_has_feature(FW_FEATURE_BULK_REMOVE)) {\n+\t\t/*\n+\t\t * lpar doesn't use the passed actual page size\n+\t\t */\n+\t\tpSeries_lpar_hpte_invalidate(slot, vpn, psize,\n+\t\t\t\t\t 0, ssize, local);\n+\t} else {\n+\t\tparam[index] = HBR_REQUEST | HBR_AVPN | slot;\n+\t\tparam[index+1] = hpte_encode_avpn(vpn, psize,\n+\t\t\t\t\t\tssize);\n+\t\tindex += 2;\n+\t\tif (index == 8) {\n+\t\t\trc = plpar_hcall9(H_BULK_REMOVE, param,\n+\t\t\t\t\t param[0], param[1], param[2],\n+\t\t\t\t\t param[3], param[4], param[5],\n+\t\t\t\t\t param[6], param[7]);\n+\t\t\tBUG_ON(rc != H_SUCCESS);\n+\t\t\tindex = 0;\n+\t\t}\n+\t}\n+\treturn index;\n+}\n+\n /*\n * Take a spinlock around flushes to avoid bouncing the hypervisor tlbie\n * lock.\n@@ -661,29 +689,12 @@ static void pSeries_lpar_flush_hash_range(unsigned long number, int local)\n \t\t\tslot = pSeries_lpar_hpte_find(vpn, psize, ssize);\n \t\t\tif (slot < 0)\n \t\t\t\tcontinue;\n-\t\t\tif (!firmware_has_feature(FW_FEATURE_BULK_REMOVE)) {\n-\t\t\t\t/*\n-\t\t\t\t * lpar doesn't use the passed actual page size\n-\t\t\t\t */\n-\t\t\t\tpSeries_lpar_hpte_invalidate(slot, vpn, psize,\n-\t\t\t\t\t\t\t 0, ssize, local);\n-\t\t\t} else {\n-\t\t\t\tparam[pix] = HBR_REQUEST | HBR_AVPN | slot;\n-\t\t\t\tparam[pix+1] = hpte_encode_avpn(vpn, psize,\n-\t\t\t\t\t\t\t\tssize);\n-\t\t\t\tpix += 2;\n-\t\t\t\tif (pix == 8) {\n-\t\t\t\t\trc = plpar_hcall9(H_BULK_REMOVE, param,\n-\t\t\t\t\t\tparam[0], param[1], param[2],\n-\t\t\t\t\t\tparam[3], param[4], param[5],\n-\t\t\t\t\t\tparam[6], param[7]);\n-\t\t\t\t\tBUG_ON(rc != H_SUCCESS);\n-\t\t\t\t\tpix = 0;\n-\t\t\t\t}\n-\t\t\t}\n+\t\t\tpix = plpar_bluk_remove(param, pix, slot, vpn,\n+\t\t\t\t\t\tpsize, ssize, local);\n \t\t} pte_iterate_hashed_end();\n \t}\n \tif (pix) {\n+\t\t/* We have a flush pending */\n \t\tparam[pix] = HBR_END;\n \t\trc = plpar_hcall9(H_BULK_REMOVE, param, param[0], param[1],\n \t\t\t\t param[2], param[3], param[4], param[5],\n", "prefixes": [ "15/16" ] }