Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/813174/?format=api
{ "id": 813174, "url": "http://patchwork.ozlabs.org/api/patches/813174/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170913061049.13256-5-bsingharora@gmail.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": "<20170913061049.13256-5-bsingharora@gmail.com>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20170913061049.13256-5-bsingharora@gmail.com/", "date": "2017-09-13T06:10:48", "name": "[v2,4/5] powerpc/mce: Hookup ierror (instruction) UE errors", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "e052de17b18da7677c1cb840f9b92cfe27c30f10", "submitter": { "id": 9347, "url": "http://patchwork.ozlabs.org/api/people/9347/?format=api", "name": "Balbir Singh", "email": "bsingharora@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170913061049.13256-5-bsingharora@gmail.com/mbox/", "series": [ { "id": 2813, "url": "http://patchwork.ozlabs.org/api/series/2813/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=2813", "date": "2017-09-13T06:10:44", "name": "Revisit MCE handling for UE Errors", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/2813/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/813174/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/813174/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 3xsWlN6XNJz9sPs\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 13 Sep 2017 16:21:36 +1000 (AEST)", "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xsWlN5P93zDrKm\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 13 Sep 2017 16:21:36 +1000 (AEST)", "from mail-pg0-x244.google.com (mail-pg0-x244.google.com\n\t[IPv6:2607:f8b0:400e:c05::244])\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 3xsWWQ683HzDrJ3\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tWed, 13 Sep 2017 16:11:14 +1000 (AEST)", "by mail-pg0-x244.google.com with SMTP id m30so2254825pgn.5\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tTue, 12 Sep 2017 23:11:14 -0700 (PDT)", "from firefly.ozlabs.ibm.com.ozlabs.ibm.com ([122.99.82.10])\n\tby smtp.gmail.com with ESMTPSA id\n\tt65sm22581016pfk.59.2017.09.12.23.11.10\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 12 Sep 2017 23:11:12 -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=\"UiztOGMs\"; 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=\"UiztOGMs\"; dkim-atps=neutral", "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gmail.com\n\t(client-ip=2607:f8b0:400e:c05::244; helo=mail-pg0-x244.google.com;\n\tenvelope-from=bsingharora@gmail.com; receiver=<UNKNOWN>)", "lists.ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"UiztOGMs\"; 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=iimQ/AQIUevWQBv5m8ziRa5zVoYf0PPJmV9BdRCZKU4=;\n\tb=UiztOGMsYnAFESipcSJzZ08018vjGh7odpP7Y7jn9n3NPiWmMue33Xi42f0IedZm+i\n\t7Eefu8UHg/ba/LwwawjWl4Iyoj0JZhC1903Swt7F9USzqVn8XYQQKQJeVZqS+HW9FcJM\n\tkAk/JW1XARp3+Rr8Wfc+m++VBxv/UxBQtcDNf9Bl+eu+xcnx06HlbVzVinBLHEuaKUCU\n\t4ohGDBaM7wXfpyhHgg8scF8K5mss5QLU7Kj2tYNHzZvM+F6XGLXL8TgD8poDMrQ5NQUY\n\tTez8euhsbUVMAPVk+vs3f5rwQ+WBdwkpTW+5DtH8iQY6GK8cMmg2sILnXt0juewSK5un\n\tbi5g==", "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=iimQ/AQIUevWQBv5m8ziRa5zVoYf0PPJmV9BdRCZKU4=;\n\tb=LIVMdr9H/Z8b6d/R9qGXR5ZPyrx9D7+NM2Tiv8EV6I7FFs+AMBAoO216EyFDwSKgU5\n\tvvV1rMvwBs5RN4IuN4EmCo/D2bL/kDzPnCUYf3hDkc35sC5eHj1lSXS64XX9KlasV9cp\n\tLxyNw40ASETiAM+JzlfAGeyyyRRdjPqJzDOwBY69TzqCdSMH/kaWbJa7Ok+hSiX9O3uY\n\tuhlf1qhW7T6O6fdze11cT1z3FWFrG/U0VM1S/cgMsE2nEkeOAv32gqV0721COkfzMf1r\n\t4kNvoAmx85nwsjCpUjRF/1KG8V9N84W83XpACHIknFTJXXTOjOABdj0WcMt8sOarupT+\n\tJ/8g==", "X-Gm-Message-State": "AHPjjUje9YMeSNIU7E6GRu9oFbEruwQzG2We66TZqsmu2FqkVdEMp4o1\n\tFyLQ4tGQetUS1Q==", "X-Google-Smtp-Source": "ADKCNb65df5HBSubO3QwXN9DByKEDFUvORyQQyMH21EuApcL/t3Qe3GrB+Bt8Eb/8MqpZlQBNxWO2Q==", "X-Received": "by 10.98.78.79 with SMTP id c76mr17498676pfb.20.1505283072792;\n\tTue, 12 Sep 2017 23:11:12 -0700 (PDT)", "From": "Balbir Singh <bsingharora@gmail.com>", "To": "mpe@ellerman.id.au,\n\tnpiggin@gmail.com,\n\tmahesh@linux.vnet.ibm.com", "Subject": "[PATCH v2 4/5] powerpc/mce: Hookup ierror (instruction) UE errors", "Date": "Wed, 13 Sep 2017 16:10:48 +1000", "Message-Id": "<20170913061049.13256-5-bsingharora@gmail.com>", "X-Mailer": "git-send-email 2.9.5", "In-Reply-To": "<20170913061049.13256-1-bsingharora@gmail.com>", "References": "<20170913061049.13256-1-bsingharora@gmail.com>", "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", "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": "Hookup instruction errors (UE) for memory offling via memory_failure()\nin a manner similar to load/store errors (derror). Since we have access\nto the NIP, the conversion is a one step process in this case.\n\nSigned-off-by: Balbir Singh <bsingharora@gmail.com>\n---\n arch/powerpc/kernel/mce_power.c | 23 ++++++++++++++++++++---\n 1 file changed, 20 insertions(+), 3 deletions(-)", "diff": "diff --git a/arch/powerpc/kernel/mce_power.c b/arch/powerpc/kernel/mce_power.c\nindex 2dfbbe0..3bc9500 100644\n--- a/arch/powerpc/kernel/mce_power.c\n+++ b/arch/powerpc/kernel/mce_power.c\n@@ -488,7 +488,8 @@ static int mce_find_instr_ea_and_pfn(struct pt_regs *regs, uint64_t *addr,\n \n static int mce_handle_ierror(struct pt_regs *regs,\n \t\tconst struct mce_ierror_table table[],\n-\t\tstruct mce_error_info *mce_err, uint64_t *addr)\n+\t\tstruct mce_error_info *mce_err, uint64_t *addr,\n+\t\tuint64_t *phys_addr)\n {\n \tuint64_t srr1 = regs->msr;\n \tint handled = 0;\n@@ -540,8 +541,23 @@ static int mce_handle_ierror(struct pt_regs *regs,\n \t\t}\n \t\tmce_err->severity = table[i].severity;\n \t\tmce_err->initiator = table[i].initiator;\n-\t\tif (table[i].nip_valid)\n+\t\tif (table[i].nip_valid) {\n \t\t\t*addr = regs->nip;\n+\t\t\tif (mce_err->severity == MCE_SEV_ERROR_SYNC &&\n+\t\t\t\ttable[i].error_type == MCE_ERROR_TYPE_UE) {\n+\t\t\t\tunsigned long pfn;\n+\t\t\t\tstruct mm_struct *mm;\n+\n+\t\t\t\tif (user_mode(regs))\n+\t\t\t\t\tmm = current->mm;\n+\t\t\t\telse\n+\t\t\t\t\tmm = &init_mm;\n+\n+\t\t\t\tpfn = addr_to_pfn(mm, regs->nip);\n+\t\t\t\tif (pfn != ULONG_MAX)\n+\t\t\t\t\t*phys_addr = pfn;\n+\t\t\t}\n+\t\t}\n \t\treturn handled;\n \t}\n \n@@ -669,7 +685,8 @@ static long mce_handle_error(struct pt_regs *regs,\n \t\thandled = mce_handle_derror(regs, dtable, &mce_err, &addr,\n \t\t\t\t&phys_addr);\n \telse\n-\t\thandled = mce_handle_ierror(regs, itable, &mce_err, &addr);\n+\t\thandled = mce_handle_ierror(regs, itable, &mce_err, &addr,\n+\t\t\t\t&phys_addr);\n \n \tif (!handled && mce_err.error_type == MCE_ERROR_TYPE_UE)\n \t\thandled = mce_handle_ue_error(regs);\n", "prefixes": [ "v2", "4/5" ] }