Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/807431/?format=api
{ "id": 807431, "url": "http://patchwork.ozlabs.org/api/patches/807431/?format=api", "web_url": "http://patchwork.ozlabs.org/project/skiboot/patch/20170830062011.15199-2-npiggin@gmail.com/", "project": { "id": 44, "url": "http://patchwork.ozlabs.org/api/projects/44/?format=api", "name": "skiboot firmware development", "link_name": "skiboot", "list_id": "skiboot.lists.ozlabs.org", "list_email": "skiboot@lists.ozlabs.org", "web_url": "http://github.com/open-power/skiboot", "scm_url": "http://github.com/open-power/skiboot", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20170830062011.15199-2-npiggin@gmail.com>", "list_archive_url": null, "date": "2017-08-30T06:20:09", "name": "[1/3] idle: user context state loss flags fix for stop states", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "e26a9d73308c7b7b4e77f0da3652ac0c27dbf8d6", "submitter": { "id": 69518, "url": "http://patchwork.ozlabs.org/api/people/69518/?format=api", "name": "Nicholas Piggin", "email": "npiggin@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/skiboot/patch/20170830062011.15199-2-npiggin@gmail.com/mbox/", "series": [ { "id": 532, "url": "http://patchwork.ozlabs.org/api/series/532/?format=api", "web_url": "http://patchwork.ozlabs.org/project/skiboot/list/?series=532", "date": "2017-08-30T06:20:08", "name": "misc idle fixes", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/532/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/807431/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/807431/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "skiboot@lists.ozlabs.org" ], "Delivered-To": [ "patchwork-incoming@bilbo.ozlabs.org", "skiboot@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 3xhwPG2sZMz9t16\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 30 Aug 2017 16:21:06 +1000 (AEST)", "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xhwPG1cS2zDqLv\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 30 Aug 2017 16:21:06 +1000 (AEST)", "from mail-pf0-x242.google.com (mail-pf0-x242.google.com\n\t[IPv6:2607:f8b0:400e:c00::242])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xhwNn3J8WzDqGG\n\tfor <skiboot@lists.ozlabs.org>; Wed, 30 Aug 2017 16:20:41 +1000 (AEST)", "by mail-pf0-x242.google.com with SMTP id p69so3753408pfk.1\n\tfor <skiboot@lists.ozlabs.org>; Tue, 29 Aug 2017 23:20:41 -0700 (PDT)", "from roar.au.ibm.com (203-219-56-202.tpgi.com.au. [203.219.56.202])\n\tby smtp.gmail.com with ESMTPSA id\n\t82sm8266783pgb.86.2017.08.29.23.20.36\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 29 Aug 2017 23:20:38 -0700 (PDT)" ], "Authentication-Results": [ "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"jhpsQHXc\"; dkim-atps=neutral", "lists.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"jhpsQHXc\"; dkim-atps=neutral", "lists.ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"jhpsQHXc\"; dkim-atps=neutral" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=jODU76LUB78VQXhiGv9Xw7819GyuPi+UxhrYSW2PHMg=;\n\tb=jhpsQHXc1i0NERvxaxaTRmtPewX7dCrBM9jlpLO8tPUoeb8JqdAeOGN86ldlSRw7Vw\n\tabo1nexiWnt7zxnUpOVizcGeSwM2xagWAaNM3tmYX7OPb7xE+Zt4kscjXP8/1T6tiSmU\n\tYhkCsy6LNV1aMuVOfUoHklEjs4zBpAdvEnkSC5fvxKnWScUxrndjTu+hRLfEWi3XjR9w\n\tb+BAHzqzrRyqid0a0tkfBzEz8EPwI3Hbu2qI+5r8w6o4f4EHicklahQf/i7aMDWsLBU6\n\tyzTRSY3tuzey8Rx5T/OgWlq7lAegLX0KbLiwzYdrSVPh0cWcED0ro74J/jpnGqa/xa1a\n\t6IaQ==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=jODU76LUB78VQXhiGv9Xw7819GyuPi+UxhrYSW2PHMg=;\n\tb=HA7+qNxS5IJa+U+qEilVppdfoOjYz2lk6Whkgk8EAkvFYGKU0tbodGdf+i4KlmPcjM\n\tNMvY96f9AHr2PWVrldPJNGFUyPUqk8A++XbYEYDjx/4HgACIcYkyiTffHTHGE+CrzIu1\n\tOMX6gknJMK0khJ64Vx2Yx9//NOTSoKTY9dnJkDhNfeyv7PDocLRdkpjZAXEZD9FnXp+B\n\tlTAVoiLme9lnpT4H2VfPDQg6Jzh9/Jj4tTO3Y/7TWOo6ABykJ3q6Zbxw1B7wvlJMACND\n\t+kDvtBj99cSDxPAIFGkteen81s6Vszw8k84dd1VTlJi2FsoS4nBoMe277ZSqG9frksMm\n\tCjYw==", "X-Gm-Message-State": "AHYfb5iaDQk2OacshVoH/1SmbNwbO0zEd7u1OtMnkawzIvpj6kPuNsnJ\n\taEoE+qWnOcRDPe3m", "X-Received": "by 10.98.71.14 with SMTP id u14mr510316pfa.315.1504074039542;\n\tTue, 29 Aug 2017 23:20:39 -0700 (PDT)", "From": "Nicholas Piggin <npiggin@gmail.com>", "To": "skiboot@lists.ozlabs.org", "Date": "Wed, 30 Aug 2017 16:20:09 +1000", "Message-Id": "<20170830062011.15199-2-npiggin@gmail.com>", "X-Mailer": "git-send-email 2.13.3", "In-Reply-To": "<20170830062011.15199-1-npiggin@gmail.com>", "References": "<20170830062011.15199-1-npiggin@gmail.com>", "Subject": "[Skiboot] [PATCH 1/3] idle: user context state loss flags fix for\n\tstop states", "X-BeenThere": "skiboot@lists.ozlabs.org", "X-Mailman-Version": "2.1.23", "Precedence": "list", "List-Id": "Mailing list for skiboot development <skiboot.lists.ozlabs.org>", "List-Unsubscribe": "<https://lists.ozlabs.org/options/skiboot>,\n\t<mailto:skiboot-request@lists.ozlabs.org?subject=unsubscribe>", "List-Archive": "<http://lists.ozlabs.org/pipermail/skiboot/>", "List-Post": "<mailto:skiboot@lists.ozlabs.org>", "List-Help": "<mailto:skiboot-request@lists.ozlabs.org?subject=help>", "List-Subscribe": "<https://lists.ozlabs.org/listinfo/skiboot>,\n\t<mailto:skiboot-request@lists.ozlabs.org?subject=subscribe>", "Cc": "\"Gautham R . Shenoy\" <ego@linux.vnet.ibm.com>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "base64", "Errors-To": "skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org", "Sender": "\"Skiboot\"\n\t<skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org>" }, "content": "The \"lite\" stop variants with PSSCR[ESL]=PSSCR[EC]=1 do not lose user\ncontext, while the non-lite variants do (ESL: enable state loss).\n\nSome of the POWER9 idle states had these wrong.\n\nThese are not used by Linux yet.\n\nSigned-off-by: Nicholas Piggin <npiggin@gmail.com>\n---\n hw/slw.c | 8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)", "diff": "diff --git a/hw/slw.c b/hw/slw.c\nindex 98040e6e..0720545c 100644\n--- a/hw/slw.c\n+++ b/hw/slw.c\n@@ -526,7 +526,7 @@ static struct cpu_idle_states power9_cpu_idle_states[] = {\n \t\t.residency_ns = 20000,\n \t\t.flags = 0*OPAL_PM_DEC_STOP \\\n \t\t | 0*OPAL_PM_TIMEBASE_STOP \\\n-\t\t | 0*OPAL_PM_LOSE_USER_CONTEXT \\\n+\t\t | 1*OPAL_PM_LOSE_USER_CONTEXT \\\n \t\t | 0*OPAL_PM_LOSE_HYP_CONTEXT \\\n \t\t | 0*OPAL_PM_LOSE_FULL_CONTEXT \\\n \t\t | 1*OPAL_PM_STOP_INST_FAST,\n@@ -542,7 +542,7 @@ static struct cpu_idle_states power9_cpu_idle_states[] = {\n \t\t.residency_ns = 49000,\n \t\t.flags = 0*OPAL_PM_DEC_STOP \\\n \t\t | 0*OPAL_PM_TIMEBASE_STOP \\\n-\t\t | 1*OPAL_PM_LOSE_USER_CONTEXT \\\n+\t\t | 0*OPAL_PM_LOSE_USER_CONTEXT \\\n \t\t | 0*OPAL_PM_LOSE_HYP_CONTEXT \\\n \t\t | 0*OPAL_PM_LOSE_FULL_CONTEXT \\\n \t\t | 1*OPAL_PM_STOP_INST_FAST,\n@@ -572,7 +572,7 @@ static struct cpu_idle_states power9_cpu_idle_states[] = {\n \t\t.residency_ns = 99000,\n \t\t.flags = 0*OPAL_PM_DEC_STOP \\\n \t\t | 0*OPAL_PM_TIMEBASE_STOP \\\n-\t\t | 1*OPAL_PM_LOSE_USER_CONTEXT \\\n+\t\t | 0*OPAL_PM_LOSE_USER_CONTEXT \\\n \t\t | 0*OPAL_PM_LOSE_HYP_CONTEXT \\\n \t\t | 0*OPAL_PM_LOSE_FULL_CONTEXT \\\n \t\t | 1*OPAL_PM_STOP_INST_FAST,\n@@ -671,7 +671,7 @@ static struct cpu_idle_states power9_ndd1_cpu_idle_states[] = {\n \t\t.residency_ns = 49000,\n \t\t.flags = 0*OPAL_PM_DEC_STOP \\\n \t\t | 0*OPAL_PM_TIMEBASE_STOP \\\n-\t\t | 1*OPAL_PM_LOSE_USER_CONTEXT \\\n+\t\t | 0*OPAL_PM_LOSE_USER_CONTEXT \\\n \t\t | 0*OPAL_PM_LOSE_HYP_CONTEXT \\\n \t\t | 0*OPAL_PM_LOSE_FULL_CONTEXT \\\n \t\t | 1*OPAL_PM_STOP_INST_FAST,\n", "prefixes": [ "1/3" ] }