{"id":816082,"url":"http://patchwork.ozlabs.org/api/covers/816082/?format=json","web_url":"http://patchwork.ozlabs.org/project/linuxppc-dev/cover/20170920071512.19522-1-bsingharora@gmail.com/","project":{"id":2,"url":"http://patchwork.ozlabs.org/api/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":"<20170920071512.19522-1-bsingharora@gmail.com>","list_archive_url":"https://lore.kernel.org/linuxppc-dev/20170920071512.19522-1-bsingharora@gmail.com/","date":"2017-09-20T07:15:07","name":"[v3,0/5] Revisit MCE handling for UE Errors","submitter":{"id":9347,"url":"http://patchwork.ozlabs.org/api/people/9347/?format=json","name":"Balbir Singh","email":"bsingharora@gmail.com"},"mbox":"http://patchwork.ozlabs.org/project/linuxppc-dev/cover/20170920071512.19522-1-bsingharora@gmail.com/mbox/","series":[{"id":4046,"url":"http://patchwork.ozlabs.org/api/series/4046/?format=json","web_url":"http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=4046","date":"2017-09-20T07:15:07","name":"Revisit MCE handling for UE Errors","version":3,"mbox":"http://patchwork.ozlabs.org/series/4046/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/816082/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 3xxrf65Z6Tz9s81\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 20 Sep 2017 17:17:02 +1000 (AEST)","from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xxrf64JG5zDqXs\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 20 Sep 2017 17:17:02 +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 3xxrcG4L6qzDqBd\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tWed, 20 Sep 2017 17:15:26 +1000 (AEST)","by mail-pg0-x244.google.com with SMTP id u18so1193286pgo.1\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tWed, 20 Sep 2017 00:15:26 -0700 (PDT)","from firefly.ozlabs.ibm.com.ozlabs.ibm.com ([122.99.82.10])\n\tby smtp.gmail.com with ESMTPSA id\n\ts68sm7482771pfd.72.2017.09.20.00.15.21\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 20 Sep 2017 00:15:23 -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=\"H/yBEfAv\"; 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=\"H/yBEfAv\"; 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=\"H/yBEfAv\"; 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=iJqF2JnxqkudZn6sSoFC5mvRjrI1KNqj6YhCjJ8Vbx0=;\n\tb=H/yBEfAvHir4/+xrBzO5PZpmn5HpA4emAUMD8rYoik/Tun6V39eTS9CLEZ0OjifViB\n\tLIOMpo0MUZAgNJHxe2LWVmLQYJMfF3dM6zfUm79ODh7wbRNZDORQ4Z+OTJVk+JE3ct38\n\tLZz2ELWb4hjU1amnp2a4GbURDZ61WvE/eacD0jcfNjuEBwUqIzIvSHEUCaJYWCvwJaAf\n\tjWfXcIPxRffnode2hhb6K/X0bGkgPGKLqoPsEq1txq+ZWZUfZNqLcdhGdkezEBgH75sY\n\tTKq5K8thseO9PXSo61nwMAIGvLkFZ+G36aseX7T9Wx4HtsycbbHKe0TvnOTVKgZK4Pvo\n\t+oHA==","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=iJqF2JnxqkudZn6sSoFC5mvRjrI1KNqj6YhCjJ8Vbx0=;\n\tb=WuvwKLFSACQaUcniEc1GgI0vH/7epbaN500l2fsGpio76+ZgAQoWb6Us1ALaBNvylb\n\tdRk/6aafsjqQL4ALlG6eLX7Q/D9S/QdDqVmNQ1lhck1ls+wgNj8EAZ8WctWNRm6tNUbf\n\t5Z2G31oIGA34QZ1z3VZpSIT8mQYS9SeKsWnzmVMBqReziI1yENKCO+GJyG41rWmvgyko\n\tPt39D0K+dGvOveoMce+zaCWrmwm5MnMDt5m91x6eSCaPjF3J8mwg0jwqYyhISmThUSxM\n\tCBvVzc0PDhtrrlfzFeYYAuxh6I3hPE96HdxYFviqFKJiiaqa9u2/Upl1eY1PXvb9Mklq\n\t67nQ==","X-Gm-Message-State":"AHPjjUjGYhaSHswa2bqq3GEyqzeOmSvVGicUAJPKXYq79vS+oRXQEdMf\n\tv/71CxHEXXuqQUu/S/MuIpYAKg==","X-Google-Smtp-Source":"AOwi7QA1YcA6r4ECPrtj34cfrHEif2/cjCsF2ClgnrMn5QmSaYBQFfvqoetas1bAS7BxC6rHQZ4Yow==","X-Received":"by 10.84.235.7 with SMTP id o7mr1138035plk.163.1505891724359;\n\tWed, 20 Sep 2017 00:15:24 -0700 (PDT)","From":"Balbir Singh <bsingharora@gmail.com>","To":"mpe@ellerman.id.au","Subject":"[PATCH v3 0/5] Revisit MCE handling for UE Errors","Date":"Wed, 20 Sep 2017 17:15:07 +1000","Message-Id":"<20170920071512.19522-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":"mahesh@linux.vnet.ibm.com, linuxppc-dev@lists.ozlabs.org,\n\tnpiggin@gmail.com","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 v3:\n\t- Check for recursive MCE invocations (suggested\n\tby Nick)\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 (5):\n  powerpc/mce.c: Remove unused function get_mce_fault_addr()\n  powerpc/mce: align the print of physical address better\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       | 114 ++++++++++++++++++++++++----------------\n arch/powerpc/kernel/mce_power.c | 109 +++++++++++++++++++++++++++++++++++---\n 3 files changed, 172 insertions(+), 55 deletions(-)"}