{"id":813169,"url":"http://patchwork.ozlabs.org/api/1.2/covers/813169/?format=json","web_url":"http://patchwork.ozlabs.org/project/linuxppc-dev/cover/20170913061049.13256-1-bsingharora@gmail.com/","project":{"id":2,"url":"http://patchwork.ozlabs.org/api/1.2/projects/2/?format=json","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-1-bsingharora@gmail.com>","list_archive_url":"https://lore.kernel.org/linuxppc-dev/20170913061049.13256-1-bsingharora@gmail.com/","date":"2017-09-13T06:10:44","name":"[v2,0/4] Revisit MCE handling for UE Errors","submitter":{"id":9347,"url":"http://patchwork.ozlabs.org/api/1.2/people/9347/?format=json","name":"Balbir Singh","email":"bsingharora@gmail.com"},"mbox":"http://patchwork.ozlabs.org/project/linuxppc-dev/cover/20170913061049.13256-1-bsingharora@gmail.com/mbox/","series":[{"id":2813,"url":"http://patchwork.ozlabs.org/api/1.2/series/2813/?format=json","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/covers/813169/comments/","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 3xsWY51cWwz9sNr\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 13 Sep 2017 16:12:41 +1000 (AEST)","from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xsWY46wXWzDrNC\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 13 Sep 2017 16:12:40 +1000 (AEST)","from mail-pg0-x242.google.com (mail-pg0-x242.google.com\n\t[IPv6:2607:f8b0:400e:c05::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 3xsWWD09dkzDqlw\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tWed, 13 Sep 2017 16:11:03 +1000 (AEST)","by mail-pg0-x242.google.com with SMTP id v5so7213515pgn.4\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tTue, 12 Sep 2017 23:11:03 -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.10.58\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 12 Sep 2017 23:11:00 -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=\"Rtc4MICY\"; 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=\"Rtc4MICY\"; dkim-atps=neutral","ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gmail.com\n\t(client-ip=2607:f8b0:400e:c05::242; helo=mail-pg0-x242.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=\"Rtc4MICY\"; 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;\n\tbh=Xu5i3yUtKY4zHhe7FEH7D2ZAruRktcFg55Peeyu3zZE=;\n\tb=Rtc4MICYRaDEj9/qdiSNiQwWhWeU1BRAyYB7TUTjfCTVRv1RgcdbsMzQMp4F1db1uO\n\tgBFYsEWvUxHberqQVfCHmS5djw2Uf3Amzc/sgwa3CaTHIVN+c2Ur6ZwLbIaBfwOVDsAq\n\tE/Ds3VURl4Z+05AipmQTKXV1Xn451GDIbS08gyCC7qoWmdn4G5yIIejKTW0xhpWsuSfF\n\tmN9fG2AWwJWdAd8nBGFhdI/teluE0axzJMqyURfvkjzJGsgh8dnsEsGFiGtKp0B42+xQ\n\tANEsbKdHQdvqFSY/ICeYYn/fkI+IiD9zlJ6gXg9l6F46Ugn+zq1E9hOrgPOdnuYW5ynf\n\to8Ig==","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;\n\tbh=Xu5i3yUtKY4zHhe7FEH7D2ZAruRktcFg55Peeyu3zZE=;\n\tb=hL6hjofYjA8ELe9YFWvPYcqtM4l7aJS8MQvzgA691hBLoj2SqpQ0oz8T9r1okLHgB/\n\t3TKf5i+DiW3aEHhjWWBiHJldomrw3wGjDmTP2PfD/LNlsP/49k/Uqk1fEDOO0xd+rMej\n\th89scEqHN738OIL6nFUibvrQd+yRQ72xt5I2gmImMGehuvhg8cblF/47yxGRlsh6eS1T\n\twuhLMmF+oMmwbuuqv2eUm0PrTKvXMmslotEdipuSXsLA9asfTrCyGZ96Q3R78/JmBSps\n\tPrSHLY7WMA35EOnnbV6Uqq55Ccjic9qvmeUCrUg073VmBQhabn/stwHLfyCn7EPPCke+\n\tq3lw==","X-Gm-Message-State":"AHPjjUixUFk9JX1cIj6xMMgvxH3vXRhmkT4fdEOXMKuv+nZNAPyIgYm/\n\t9H7W8wxv9WfHiQ==","X-Google-Smtp-Source":"ADKCNb7fd0pRWpOskHmyf2cnpLmUTuHn0qKPmPY5TffCn2LD+tATZcK2QSlj3eZLw4InlyZiSRdftQ==","X-Received":"by 10.99.117.81 with SMTP id f17mr17459432pgn.314.1505283061652; \n\tTue, 12 Sep 2017 23:11:01 -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 0/4] Revisit MCE handling for UE Errors","Date":"Wed, 13 Sep 2017 16:10:44 +1000","Message-Id":"<20170913061049.13256-1-bsingharora@gmail.com>","X-Mailer":"git-send-email 2.9.5","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":"This patch series is designed to hook up memory_failure on\nUE errors, this is specially helpful for user_mode UE errors.\n\nThe first two patches cleanup bits, remove dead code.\nI could not find any users of get_mce_fault_addr().\nThe second one improves printing of physical address\n\nThe third patch walks kernel/user mode page tables in\nreal mode to extract the effective address of the instruction\nthat caused the UE error and the effective address it was\ntrying to access (for load/store). The fourth patch hooks\nup the pfn for instruction UE errors (ierror).\n\nThe fifth patch hooks up memory_failure to the MCE patch.\n\nTODO:\nLog the address in NVRAM, so that we can recover from\nbad pages at boot and keep the blacklist persistent.\n\nChangelog v2:\n\t- Remove pr_warn from real mode to a more delayed\n\tcontext, where its OK to warn.\n\t- Add a trivial patch to align prints of physical\n\tand effective address\nChangelog v1:\n\t- address review comments from Nick and Mahesh\n\t(initialization of pfn and more comments on failure\n\twhen addr_to_pfn() or anaylse_instr() fail)\n\t- Hookup ierrors to the framework as well\n\t(comments from Mahesh)\n\nBalbir Singh (4):\n  powerpc/mce.c: Remove unused function get_mce_fault_addr()\n  powerpc/mce: Hookup derror (load/store) UE errors\n  powerpc/mce: Hookup ierror (instruction) UE errors\n  powerpc/mce: hookup memory_failure for UE errors\n\n arch/powerpc/include/asm/mce.h  |   4 +-\n arch/powerpc/kernel/mce.c       | 112 +++++++++++++++++++++++++---------------\n arch/powerpc/kernel/mce_power.c | 103 +++++++++++++++++++++++++++++++++---\n 3 files changed, 165 insertions(+), 54 deletions(-)"}