Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1110282/?format=api
{ "id": 1110282, "url": "http://patchwork.ozlabs.org/api/patches/1110282/?format=api", "web_url": "http://patchwork.ozlabs.org/project/skiboot/patch/20190605023616.26893-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": "<20190605023616.26893-2-npiggin@gmail.com>", "list_archive_url": null, "date": "2019-06-05T02:36:14", "name": "[RFC,1/3] core/exceptions.c: rearrange code to allow more interrupt types", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "82cd4bfb4357f704937c68abfcba0e50a8572502", "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/20190605023616.26893-2-npiggin@gmail.com/mbox/", "series": [ { "id": 111858, "url": "http://patchwork.ozlabs.org/api/series/111858/?format=api", "web_url": "http://patchwork.ozlabs.org/project/skiboot/list/?series=111858", "date": "2019-06-05T02:36:13", "name": "WIP VMM for OPAL boot", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/111858/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1110282/comments/", "check": "fail", "checks": "http://patchwork.ozlabs.org/api/patches/1110282/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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\tkey-exchange X25519 server-signature RSA-PSS (4096 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 45JXxs6WPTz9s7h\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 5 Jun 2019 12:37:21 +1000 (AEST)", "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 45JXxs5Wk9zDqTZ\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 5 Jun 2019 12:37:21 +1000 (AEST)", "from mail-pg1-x543.google.com (mail-pg1-x543.google.com\n\t[IPv6:2607:f8b0:4864:20::543])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\tkey-exchange X25519 server-signature RSA-PSS (2048 bits)\n\tserver-digest SHA256) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 45JXxS6YPwzDqT4\n\tfor <skiboot@lists.ozlabs.org>; Wed, 5 Jun 2019 12:37:00 +1000 (AEST)", "by mail-pg1-x543.google.com with SMTP id w34so11492219pga.12\n\tfor <skiboot@lists.ozlabs.org>; Tue, 04 Jun 2019 19:37:00 -0700 (PDT)", "from bobo.local0.net ([61.68.71.55])\n\tby smtp.gmail.com with ESMTPSA id\n\tc9sm9077122pfn.3.2019.06.04.19.36.56\n\t(version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256);\n\tTue, 04 Jun 2019 19:36:57 -0700 (PDT)" ], "Authentication-Results": [ "ozlabs.org;\n\tdmarc=fail (p=none dis=none) header.from=gmail.com", "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=\"KzDuoggu\"; dkim-atps=neutral", "lists.ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gmail.com\n\t(client-ip=2607:f8b0:4864:20::543; helo=mail-pg1-x543.google.com;\n\tenvelope-from=npiggin@gmail.com; receiver=<UNKNOWN>)", "lists.ozlabs.org;\n\tdmarc=pass (p=none dis=none) header.from=gmail.com", "lists.ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"KzDuoggu\"; 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\t:mime-version:content-transfer-encoding;\n\tbh=o/MpvziBQzvrPI3BzyJO2SKnDZEI6IhsRtd0JrNUgpc=;\n\tb=KzDuogguU6O+5+6sIe7y9qOh18rZcdEd0/wR+mnf/JT8tNZPtYLEyigXH16FI+pbE+\n\tvdzoziaNvLxJ52bQimqcgtFbMEK0FTRpQc/49OKBdhntYwJeAD2qnRKRVIhD/m5ZG/zG\n\t8hEnd3+Z+NkPn6ljDo+118UiB/+paOHnXmmRnJ8DWLpWcBDklcm/FGgJSZ9P/4crRJYr\n\tgjbgu4N0YWE1cbRZzAR8zbvdo+LH9IxbwmArVTKHN0HW8SSbEBrabO9kuKdI2eSaRNbA\n\tW9PAlKDaNl8nPG9Qzy93nlDgg4fKEA5V0d3lFI7mPyyUtJRpLNUiWyiFfpb9FRht9fTE\n\tWptw==", "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:mime-version:content-transfer-encoding;\n\tbh=o/MpvziBQzvrPI3BzyJO2SKnDZEI6IhsRtd0JrNUgpc=;\n\tb=Qdy37DpAZC4DhWOjZU6juHxv4ir380uz4rnDKZw56uiT0PbXp6jof7TSlzkj7ZY7nF\n\tDYfJ0vo7ycu/sUdGu+GUQ96bHRq/3f4Ts306cO0fPbimeTo1NbJRzpdXweaIXSadjT0v\n\tPtHchs0BDB1CqiAy39M4TEpw3IBQMnYa2or3ASjOcxBrmin22ygM2VNIQeMzbLNuc3ut\n\tFQ0lHv0MiKRQuoGqUGssJuxc/B8CQwt+HNfcxc6tkER3f3q/qd9y9QmmiAZIEJP70VL3\n\tzsHC3omVujOjQqwOItLB6QCw49I/4Pb+WzUhFH3fThQWAt/IOfpnBxlwcINcFQO29oJZ\n\tE2kg==", "X-Gm-Message-State": "APjAAAVqwCvht/NH6jU+2Wft3+Lan3zYr6ZPfyNqwNsTlRd7xVnLy1ct\n\t3Dk7eBvLhA6RyBvmYDndgJxSP3gW", "X-Google-Smtp-Source": "APXvYqzYxi6fEDsLK15Vau07iiwQiqG0M0rtN6PArEJstNkGSkOvrpSo7WFI5heMtOtTw/iRzGSPGA==", "X-Received": "by 2002:a63:5ca:: with SMTP id 193mr1034067pgf.232.1559702218259;\n\tTue, 04 Jun 2019 19:36:58 -0700 (PDT)", "From": "Nicholas Piggin <npiggin@gmail.com>", "To": "skiboot@lists.ozlabs.org", "Date": "Wed, 5 Jun 2019 12:36:14 +1000", "Message-Id": "<20190605023616.26893-2-npiggin@gmail.com>", "X-Mailer": "git-send-email 2.20.1", "In-Reply-To": "<20190605023616.26893-1-npiggin@gmail.com>", "References": "<20190605023616.26893-1-npiggin@gmail.com>", "MIME-Version": "1.0", "Subject": "[Skiboot] [RFC PATCH 1/3] core/exceptions.c: rearrange code to\n\tallow more interrupt types", "X-BeenThere": "skiboot@lists.ozlabs.org", "X-Mailman-Version": "2.1.29", "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>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "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": "Signed-off-by: Nicholas Piggin <npiggin@gmail.com>\n---\n core/exceptions.c | 16 ++++++++++++----\n 1 file changed, 12 insertions(+), 4 deletions(-)", "diff": "diff --git a/core/exceptions.c b/core/exceptions.c\nindex 4e5c0819e..5e453264e 100644\n--- a/core/exceptions.c\n+++ b/core/exceptions.c\n@@ -78,9 +78,10 @@ void exception_entry(struct stack_frame *stack)\n \tif (!(msr & MSR_RI))\n \t\tfatal = true;\n \n-\tprerror(\"***********************************************\\n\");\n \tl = 0;\n-\tif (stack->type == 0x100) {\n+\tswitch (stack->type) {\n+\tcase 0x100:\n+\t\tprerror(\"***********************************************\\n\");\n \t\tif (fatal) {\n \t\t\tl += snprintf(buf + l, EXCEPTION_MAX_STR - l,\n \t\t\t\t\"Fatal System Reset at \"REG\" \", nip);\n@@ -88,14 +89,21 @@ void exception_entry(struct stack_frame *stack)\n \t\t\tl += snprintf(buf + l, EXCEPTION_MAX_STR - l,\n \t\t\t\t\"System Reset at \"REG\" \", nip);\n \t\t}\n-\t} else if (stack->type == 0x200) {\n+\t\tbreak;\n+\n+\tcase 0x200:\n \t\tfatal = true;\n+\t\tprerror(\"***********************************************\\n\");\n \t\tl += snprintf(buf + l, EXCEPTION_MAX_STR - l,\n \t\t\t\"Fatal MCE at \"REG\" \", nip);\n-\t} else {\n+\t\tbreak;\n+\n+\tdefault:\n \t\tfatal = true;\n+\t\tprerror(\"***********************************************\\n\");\n \t\tl += snprintf(buf + l, EXCEPTION_MAX_STR - l,\n \t\t\t\"Fatal Exception 0x%llx at \"REG\" \", stack->type, nip);\n+\t\tbreak;\n \t}\n \tl += snprintf_symbol(buf + l, EXCEPTION_MAX_STR - l, nip);\n \tl += snprintf(buf + l, EXCEPTION_MAX_STR - l, \" MSR \"REG, msr);\n", "prefixes": [ "RFC", "1/3" ] }