Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/804995/?format=api
{ "id": 804995, "url": "http://patchwork.ozlabs.org/api/patches/804995/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1503496584-21970-2-git-send-email-mpe@ellerman.id.au/", "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": "<1503496584-21970-2-git-send-email-mpe@ellerman.id.au>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/1503496584-21970-2-git-send-email-mpe@ellerman.id.au/", "date": "2017-08-23T13:56:21", "name": "[2/5] powerpc/oops: Print the kernel's endian in the oops", "commit_ref": "2e82ca3c3978d441ab272a7a964d03c6d2ee2bf3", "pull_url": null, "state": "accepted", "archived": false, "hash": "caa3fb980b63e7a494cf04ea2e9493ca081e62fe", "submitter": { "id": 46580, "url": "http://patchwork.ozlabs.org/api/people/46580/?format=api", "name": "Michael Ellerman", "email": "mpe@ellerman.id.au" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1503496584-21970-2-git-send-email-mpe@ellerman.id.au/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/804995/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/804995/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", "linuxppc-dev@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 3xcptz14K9z9s8P\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 23 Aug 2017 23:59: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 3xcpty6NnNzDrLj\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 23 Aug 2017 23:59:06 +1000 (AEST)", "from ozlabs.org (bilbo.ozlabs.org [103.22.144.67])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xcpr26yJGzDqZr\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tWed, 23 Aug 2017 23:56:34 +1000 (AEST)", "by ozlabs.org (Postfix)\n\tid 3xcpr26Dgcz9s82; Wed, 23 Aug 2017 23:56:34 +1000 (AEST)", "by ozlabs.org (Postfix, from userid 1034)\n\tid 3xcpr25cXpz9s9Y; Wed, 23 Aug 2017 23:56:34 +1000 (AEST)" ], "From": "Michael Ellerman <mpe@ellerman.id.au>", "To": "linuxppc-dev@ozlabs.org", "Subject": "[PATCH 2/5] powerpc/oops: Print the kernel's endian in the oops", "Date": "Wed, 23 Aug 2017 23:56:21 +1000", "Message-Id": "<1503496584-21970-2-git-send-email-mpe@ellerman.id.au>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1503496584-21970-1-git-send-email-mpe@ellerman.id.au>", "References": "<1503496584-21970-1-git-send-email-mpe@ellerman.id.au>", "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>", "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": "Although the MSR tells you what endian you're in it's possible that\nisn't the same endian the kernel was built for, and if that happens\nyou're usually having a very bad day. So print a marker to make\nit 100% clear which endian the kernel was built for.\n\nSigned-off-by: Michael Ellerman <mpe@ellerman.id.au>\n---\n arch/powerpc/kernel/traps.c | 6 ++++++\n 1 file changed, 6 insertions(+)", "diff": "diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c\nindex 82d0ce236f9d..5a54a6f54f70 100644\n--- a/arch/powerpc/kernel/traps.c\n+++ b/arch/powerpc/kernel/traps.c\n@@ -202,6 +202,12 @@ NOKPROBE_SYMBOL(oops_end);\n static int __die(const char *str, struct pt_regs *regs, long err)\n {\n \tprintk(\"Oops: %s, sig: %ld [#%d]\\n\", str, err, ++die_counter);\n+\n+\tif (IS_ENABLED(CONFIG_CPU_LITTLE_ENDIAN))\n+\t\tprintk(\"LE \");\n+\telse\n+\t\tprintk(\"BE \");\n+\n #ifdef CONFIG_PREEMPT\n \tpr_cont(\"PREEMPT \");\n #endif\n", "prefixes": [ "2/5" ] }