Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/808233/?format=api
{ "id": 808233, "url": "http://patchwork.ozlabs.org/api/patches/808233/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1504180061-32345-1-git-send-email-ego@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": "<1504180061-32345-1-git-send-email-ego@linux.vnet.ibm.com>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/1504180061-32345-1-git-send-email-ego@linux.vnet.ibm.com/", "date": "2017-08-31T11:47:41", "name": "powerpc/powernv: Clear LPCR[PECE1] via stop-api only for deep state offline", "commit_ref": "5d298baa41883fc421acfd932799c0f4177249ae", "pull_url": null, "state": "accepted", "archived": false, "hash": "373de1f77097c72c3652d3dc09464c98eb539027", "submitter": { "id": 61408, "url": "http://patchwork.ozlabs.org/api/people/61408/?format=api", "name": "Gautham R Shenoy", "email": "ego@linux.vnet.ibm.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1504180061-32345-1-git-send-email-ego@linux.vnet.ibm.com/mbox/", "series": [ { "id": 820, "url": "http://patchwork.ozlabs.org/api/series/820/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=820", "date": "2017-08-31T11:47:41", "name": "powerpc/powernv: Clear LPCR[PECE1] via stop-api only for deep state offline", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/820/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/808233/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/808233/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 3xjhd4624Cz9sMN\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 31 Aug 2017 22:34:00 +1000 (AEST)", "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xjhd454QTzDrnZ\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 31 Aug 2017 22:34:00 +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 3xjgbt6Gh9zDqlx\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tThu, 31 Aug 2017 21:47:54 +1000 (AEST)", "from pps.filterd (m0098399.ppops.net [127.0.0.1])\n\tby mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id\n\tv7VBiwR6111196\n\tfor <linuxppc-dev@lists.ozlabs.org>; Thu, 31 Aug 2017 07:47:52 -0400", "from e13.ny.us.ibm.com (e13.ny.us.ibm.com [129.33.205.203])\n\tby mx0a-001b2d01.pphosted.com with ESMTP id 2cpfgp86rh-1\n\t(version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT)\n\tfor <linuxppc-dev@lists.ozlabs.org>; Thu, 31 Aug 2017 07:47:52 -0400", "from localhost\n\tby e13.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 <ego@linux.vnet.ibm.com>;\n\tThu, 31 Aug 2017 07:47:51 -0400", "from b01cxnp22034.gho.pok.ibm.com (9.57.198.24)\n\tby e13.ny.us.ibm.com (146.89.104.200) with IBM ESMTP SMTP Gateway:\n\tAuthorized Use Only! Violators will be prosecuted; \n\tThu, 31 Aug 2017 07:47:49 -0400", "from b01ledav004.gho.pok.ibm.com (b01ledav004.gho.pok.ibm.com\n\t[9.57.199.109])\n\tby b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP\n\tid v7VBlmVZ21495814; Thu, 31 Aug 2017 11:47:48 GMT", "from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id 40698112051;\n\tThu, 31 Aug 2017 07:47:34 -0400 (EDT)", "from sofia.ibm.com (unknown [9.124.35.213])\n\tby b01ledav004.gho.pok.ibm.com (Postfix) with ESMTP id 0068E112034;\n\tThu, 31 Aug 2017 07:47:34 -0400 (EDT)", "by sofia.ibm.com (Postfix, from userid 1000)\n\tid 531292E2D73; Thu, 31 Aug 2017 17:17:47 +0530 (IST)" ], "From": "\"Gautham R. Shenoy\" <ego@linux.vnet.ibm.com>", "To": "Michael Ellerman <mpe@ellerman.id.au>,\n\tNicholas Piggin <npiggin@gmail.com>, \n\tVaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>,\n\tShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>,\n\tAkshay Adiga <akshay.adiga@linux.vnet.ibm.com>,\n\tPavithra Prakash <pavirampu@linux.vnet.ibm.com>", "Subject": "[PATCH] powerpc/powernv: Clear LPCR[PECE1] via stop-api only for\n\tdeep state offline", "Date": "Thu, 31 Aug 2017 17:17:41 +0530", "X-Mailer": "git-send-email 1.8.3.1", "X-TM-AS-GCONF": "00", "x-cbid": "17083111-0008-0000-0000-00000277528A", "X-IBM-SpamModules-Scores": "", "X-IBM-SpamModules-Versions": "BY=3.00007641; HX=3.00000241; KW=3.00000007;\n\tPH=3.00000004; SC=3.00000226; SDB=6.00910185; UDB=6.00456563;\n\tIPR=6.00690465; \n\tBA=6.00005562; 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.00016941;\n\tXFM=3.00000015; UTC=2017-08-31 11:47:50", "X-IBM-AV-DETECTION": "SAVI=unused REMOTE=unused XFE=unused", "x-cbparentid": "17083111-0009-0000-0000-0000368C546D", "Message-Id": "<1504180061-32345-1-git-send-email-ego@linux.vnet.ibm.com>", "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2017-08-31_04:, , 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-1708310178", "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": "\"Gautham R. Shenoy\" <ego@linux.vnet.ibm.com>,\n\tlinuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org", "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": "From: \"Gautham R. Shenoy\" <ego@linux.vnet.ibm.com>\n\ncommit 24be85a23d1f (\"powerpc/powernv: Clear PECE1 in LPCR via\nstop-api only on Hotplug\") clears the PECE1 bit of the LPCR via\nstop-api during CPU-Hotplug to prevent wakeup due to a decrementer on\nan offlined CPU which is in a deep stop state.\n\nIn the case where the stop-api support is found to be lacking, the\ncommit 785a12afdb4a (\"powerpc/powernv/idle: Disable LOSE_FULL_CONTEXT\nstates when stop-api fails\") disables deep states that lose hypervisor\ncontext. Thus in this case, the offlined CPU will be put to some\nshallow idle state.\n\nHowever, we currently unconditionally clear the PECE1 in LPCR via\nstop-api during CPU-Hotplug even when deep states are disabled due to\nstop-api failure.\n\nFix this by clearing PECE1 of LPCR via stop-api during CPU-Hotplug\n*only* when the offlined CPU will be put to a deep state that loses\nhypervisor context.\n\nFixes: commit 24be85a23d1f (\"powerpc/powernv: Clear PECE1 in LPCR via\nstop-api only on Hotplug\")\n\nReported-by: Pavithra Prakash <pavirampu@linux.vnet.ibm.com>\nSigned-off-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com>\n---\n arch/powerpc/platforms/powernv/idle.c | 8 +++++++-\n 1 file changed, 7 insertions(+), 1 deletion(-)", "diff": "diff --git a/arch/powerpc/platforms/powernv/idle.c b/arch/powerpc/platforms/powernv/idle.c\nindex 9f59041..23f8fba 100644\n--- a/arch/powerpc/platforms/powernv/idle.c\n+++ b/arch/powerpc/platforms/powernv/idle.c\n@@ -393,7 +393,13 @@ static void pnv_program_cpu_hotplug_lpcr(unsigned int cpu, u64 lpcr_val)\n \tu64 pir = get_hard_smp_processor_id(cpu);\n \n \tmtspr(SPRN_LPCR, lpcr_val);\n-\topal_slw_set_reg(pir, SPRN_LPCR, lpcr_val);\n+\n+\t/*\n+\t * Program the LPCR via stop-api only for deepest stop state\n+\t * can lose hypervisor context.\n+\t */\n+\tif (supported_cpuidle_states & OPAL_PM_LOSE_FULL_CONTEXT)\n+\t\topal_slw_set_reg(pir, SPRN_LPCR, lpcr_val);\n }\n \n /*\n", "prefixes": [] }