[{"id":1846259,"web_url":"http://patchwork.ozlabs.org/comment/1846259/","msgid":"<d6fb667b-402c-00df-fc56-1252261fbbe1@codeaurora.org>","list_archive_url":null,"date":"2018-01-25T17:11:09","subject":"Re: [PATCH v4 0/4] arm64/ras: support sea error recovery","submitter":{"id":69885,"url":"http://patchwork.ozlabs.org/api/people/69885/","name":"Tyler Baicar","email":"tbaicar@codeaurora.org"},"content":"Hello Xie,\n\n\nOn 9/27/2017 8:50 AM, Xie XiuQi wrote:\n> With ARM v8.2 RAS Extension, SEA are usually triggered when memory errors\n> are consumed. According to the existing process, errors occurred in the\n> kernel, leading to direct panic, if it occurred the user-space, we should\n> just kill process.\n>\n> But there is a class of error, in fact, is not necessary to kill\n> process, you can recover and continue to run the process. Such as\n> the instruction data corrupted, where the memory page might be\n> read-only, which is has not been modified, the disk might have the\n> correct data, so you can directly drop the page, ant reload it when\n> necessary.\n>\n> So this patchset is just try to solve such problem: if the error is\n> consumed in user-space and the error occurs on a clean page, you can\n> directly drop the memory page without killing process.\n>\n> If the corrupted page is clean, just dropped it and return to user-space\n> without side effects. And if corrupted page is dirty, memory_failure()\n> will send SIGBUS with code=BUS_MCEERR_AR. While without this patchset,\n> do_sea() will just send SIGBUS, so the process was killed in the same place.\n>\n> Because memory_failure() may sleep, we can not call it directly in SEA\n> exception context. So we saved faulting physical address associated with\n> a process in the ghes handler and set __TIF_SEA_NOTIFY. When we return\n> from SEA exception context and get into do_notify_resume() before the\n> process running, we could check it and call memory_failure() to do\n> recovery. It's safe, because we are in process context.\n>\n> In some platform, when SEA triggerred, physical address could be reported\n> by memory section or by processor section, so we save address at this two\n> place.\nFor this series - Tested-by: Tyler Baicar <tbaicar@codeaurora.org>\n\nNote that this will probably need to be rebased on top of these patches:\n\nhttps://patchwork.codeaurora.org/patch/415877/\nhttps://patchwork.codeaurora.org/patch/415879/\n\nWith that, the first patch should be able to be removed because the above \npatches already define the ARM error types:\n\n+#define CPER_ARM_CACHE_ERROR            0\n+#define CPER_ARM_TLB_ERROR            1\n+#define CPER_ARM_BUS_ERROR            2\n+#define CPER_ARM_VENDOR_ERROR            3\n\nThanks,\nTyler","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"qVbe7S06\"; \n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=codeaurora.org header.i=@codeaurora.org\n\theader.b=\"nhHxp/9V\"; \n\tdkim=fail reason=\"signature verification failed\" (1024-bit key)\n\theader.d=codeaurora.org header.i=@codeaurora.org header.b=\"FdRqoyai\"; \n\tdkim-atps=neutral","pdx-caf-mail.web.codeaurora.org;\n\tdmarc=none (p=none dis=none) header.from=codeaurora.org","pdx-caf-mail.web.codeaurora.org;\n\tspf=none smtp.mailfrom=tbaicar@codeaurora.org"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3zS7qR5GZTz9s74\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tFri, 26 Jan 2018 04:11:31 +1100 (AEDT)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux))\n\tid 1eel3g-0002ZV-Mg; Thu, 25 Jan 2018 17:11:28 +0000","from smtp.codeaurora.org ([198.145.29.96])\n\tby bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux))\n\tid 1eel3d-0002YA-3G for linux-arm-kernel@lists.infradead.org;\n\tThu, 25 Jan 2018 17:11:26 +0000","by smtp.codeaurora.org (Postfix, from userid 1000)\n\tid 2144D60A08; Thu, 25 Jan 2018 17:11:13 +0000 (UTC)","from [10.235.228.52] (global_nat1_iad_fw.qualcomm.com\n\t[129.46.232.65])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\t(Authenticated sender: tbaicar@smtp.codeaurora.org)\n\tby smtp.codeaurora.org (Postfix) with ESMTPSA id 3648B6032C;\n\tThu, 25 Jan 2018 17:11:10 +0000 (UTC)"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type:\n\tContent-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive:\n\tList-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From:\n\tReferences:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date:\n\tResent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner;\n\tbh=kwOwG6xMBsFbcFh/oHwsosPSdqz/f2ir1LvwHvfIy74=;\n\tb=qVbe7S067iQ0pR8A0oqV63uNM\n\t4uMUc3JDx6k7ylVb2ccKMK/C7fPIn9aBBIYLTE6sss3p+qYAsj2q5yuKeG3kQN9Ul+quSDV5XN4zM\n\t2KPfelat/iswsbSbjg5/6GzCQgX/C1T3NUPbP2tnV5nf0g3mIJLz2QhiStjZCtz3ytHWIkoQ+5BCP\n\tYLqGJgR4LW3PYhIyZkfUD4RJpPQ5ebT1jdzRaxt4ueogOjDk5weaub90nAF9HpIgQFaiP54YWAhOn\n\tK62t66y9eA3NT5/4T5bDbDInGrutzS8OUVv5ljGdsDUlY0Shj+nFzll0AUdxM/QXsJvr/I5UmWBpa\n\tD0lhDyWBQ==;","v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org;\n\ts=default; t=1516900273;\n\tbh=ptkXdcXir+7UR/M1CIlCRNg5X9pQl8i84Br9OYgXyeQ=;\n\th=Subject:To:Cc:References:From:Date:In-Reply-To:From;\n\tb=nhHxp/9VD3qgl7wSpZzbC9g4eHZkkzlAWSoDP/x0CJaV61u4cdhO4m3+1gYDGbWQr\n\tclX6lvTq41cIEqv5kRHSGxf/NWZevqIKdM/5MOmyxNq1WPHhKqsJtDzKJZEA8jzcSs\n\tWbfVQiG3bDQkhxta0iafTuUWuQcuWngKygagPb8g=","v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org;\n\ts=default; t=1516900272;\n\tbh=ptkXdcXir+7UR/M1CIlCRNg5X9pQl8i84Br9OYgXyeQ=;\n\th=Subject:To:Cc:References:From:Date:In-Reply-To:From;\n\tb=FdRqoyaiSKlIxTniTjvuKfgy0nil6E9AwENpmamOxh/oAv7DDRzQdT800bm+5kj9R\n\tsEIBAmQs+MmEWqvl+Qss2/PjXxBnZ3C3czKpGx/vSmi+CP8DOQXllyJiqZd80EBPRq\n\tFG6vcag8iNcpawQUZVim30V7oun7esfU0+wVe5PM="],"X-Spam-Checker-Version":"SpamAssassin 3.4.0 (2014-02-07) on\n\tpdx-caf-mail.web.codeaurora.org","X-Spam-Level":"","X-Spam-Status":"No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00,\n\tDKIM_SIGNED,\n\tT_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0","DMARC-Filter":"OpenDMARC Filter v1.3.2 smtp.codeaurora.org 3648B6032C","Subject":"Re: [PATCH v4 0/4] arm64/ras: support sea error recovery","To":"Xie XiuQi <xiexiuqi@huawei.com>, catalin.marinas@arm.com,\n\twill.deacon@arm.com, mingo@redhat.com, mark.rutland@arm.com,\n\tard.biesheuvel@linaro.org, james.morse@arm.com, Dave.Martin@arm.com, \n\ttakahiro.akashi@linaro.org, stephen.boyd@linaro.org, bp@suse.de,\n\tjulien.thierry@arm.com, shiju.jose@huawei.com, zjzhang@codeaurora.org","References":"<1506516620-20033-1-git-send-email-xiexiuqi@huawei.com>","From":"Tyler Baicar <tbaicar@codeaurora.org>","Message-ID":"<d6fb667b-402c-00df-fc56-1252261fbbe1@codeaurora.org>","Date":"Thu, 25 Jan 2018 12:11:09 -0500","User-Agent":"Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101\n\tThunderbird/52.5.2","MIME-Version":"1.0","In-Reply-To":"<1506516620-20033-1-git-send-email-xiexiuqi@huawei.com>","Content-Language":"en-US","X-Spam-Note":"CRM114 invocation failed","X-Spam-Score":"-4.3 (----)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-4.3 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/,\n\tmedium trust [198.145.29.96 listed in list.dnswl.org]\n\t-0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay\n\tdomain\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"wangkefeng.wang@huawei.com, cj.chengjian@huawei.com,\n\tlinux-kernel@vger.kernel.org, gengdongjiu@huawei.com,\n\tlijinyue@huawei.com, linux-acpi@vger.kernel.org, hanjun.guo@linaro.org,\n\thuawei.libin@huawei.com, guohanjun@huawei.com, zhengqiang10@huawei.com,\n\twangxiongfeng2@huawei.com, linux-arm-kernel@lists.infradead.org","Content-Transfer-Encoding":"base64","Content-Type":"text/plain; charset=\"utf-8\"; Format=\"flowed\"","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1846469,"web_url":"http://patchwork.ozlabs.org/comment/1846469/","msgid":"<7a14f1fb-6176-1033-8121-87c872c99c8c@huawei.com>","list_archive_url":null,"date":"2018-01-26T02:09:23","subject":"Re: [PATCH v4 0/4] arm64/ras: support sea error recovery","submitter":{"id":24815,"url":"http://patchwork.ozlabs.org/api/people/24815/","name":"Xie XiuQi","email":"xiexiuqi@huawei.com"},"content":"Hi Tyler,\n\nOn 2018/1/26 1:11, Tyler Baicar wrote:\n> For this series - Tested-by: Tyler Baicar <tbaicar@codeaurora.org>\n> \n> Note that this will probably need to be rebased on top of these patches:\n\nThank you for your testing, I'll rebase then.\n\n> \n> https://patchwork.codeaurora.org/patch/415877/\n> https://patchwork.codeaurora.org/patch/415879/\n> \n> With that, the first patch should be able to be removed because the above patches already define the ARM error types:\n> \n> +#define CPER_ARM_CACHE_ERROR            0\n> +#define CPER_ARM_TLB_ERROR            1\n> +#define CPER_ARM_BUS_ERROR            2\n> +#define CPER_ARM_VENDOR_ERROR            3","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org\n\theader.b=\"b7/IBkTb\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3zSMnM17B9z9sPk\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tFri, 26 Jan 2018 13:10:26 +1100 (AEDT)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux))\n\tid 1eetTB-0002sf-8B; Fri, 26 Jan 2018 02:10:21 +0000","from szxga04-in.huawei.com ([45.249.212.190] helo=huawei.com)\n\tby bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux))\n\tid 1eetT7-0001cU-Cz for linux-arm-kernel@lists.infradead.org;\n\tFri, 26 Jan 2018 02:10:19 +0000","from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60])\n\tby Forcepoint Email with ESMTP id E9F8B5780DCCB;\n\tFri, 26 Jan 2018 10:09:46 +0800 (CST)","from [127.0.0.1] (10.177.19.210) by DGGEMS404-HUB.china.huawei.com\n\t(10.3.19.204) with Microsoft SMTP Server id 14.3.361.1;\n\tFri, 26 Jan 2018 10:09:38 +0800"],"DKIM-Signature":"v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:\n\tMessage-ID:From:References:To:Subject:Reply-To:Content-ID:Content-Description\n\t:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=C/NGqmgGSOVYOdTL64X2LjmDEVcHi7bUvsDApH26dUg=;\n\tb=b7/IBkTbUPUCQH\n\tiSYX7l5x+MgEhhA47TskppYF2FCHgv6s6JsBsM29tXpRr6Fpw7W5hy5hTq3QbUr4Rac2neScds7ZD\n\tijlA78nXm3YGnwG5SOUuy02SwaAIG4rsNAxPsJ9F0n3R5VhKMlYzW2qykM2qqOPtxnvD1tYufwysi\n\tj4pazQd3uyz1fTwQaJylnmjg/gvuwjxe66ENYZlLUcQjkohBHgtor8ZVTDe+P4u8UmbHqNvUKRjAc\n\tApDWQSIGW+nG/DE5IPL+FZson4PfhsB72b8fyg40N1FeyarxSBt8wqMIVia725Tq2yeixlVyRbM+p\n\tH603PpGrdNrFj3plhSeA==;","Subject":"Re: [PATCH v4 0/4] arm64/ras: support sea error recovery","To":"Tyler Baicar <tbaicar@codeaurora.org>, <catalin.marinas@arm.com>,\n\t<will.deacon@arm.com>, <mingo@redhat.com>, <mark.rutland@arm.com>,\n\t<ard.biesheuvel@linaro.org>, <james.morse@arm.com>,\n\t<Dave.Martin@arm.com>, \n\t<takahiro.akashi@linaro.org>, <stephen.boyd@linaro.org>, <bp@suse.de>,\n\t<julien.thierry@arm.com>, <shiju.jose@huawei.com>,\n\t<zjzhang@codeaurora.org>","References":"<1506516620-20033-1-git-send-email-xiexiuqi@huawei.com>\n\t<d6fb667b-402c-00df-fc56-1252261fbbe1@codeaurora.org>","From":"Xie XiuQi <xiexiuqi@huawei.com>","Message-ID":"<7a14f1fb-6176-1033-8121-87c872c99c8c@huawei.com>","Date":"Fri, 26 Jan 2018 10:09:23 +0800","User-Agent":"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101\n\tThunderbird/45.8.0","MIME-Version":"1.0","In-Reply-To":"<d6fb667b-402c-00df-fc56-1252261fbbe1@codeaurora.org>","X-Originating-IP":"[10.177.19.210]","X-CFilter-Loop":"Reflected","X-Spam-Note":"CRM114 invocation failed","X-Spam-Score":"-1.9 (-)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-1.9 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno trust [45.249.212.190 listed in list.dnswl.org]\n\t-0.0 SPF_HELO_PASS          SPF: HELO matches SPF record\n\t-0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay\n\tdomain\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"wangkefeng.wang@huawei.com, cj.chengjian@huawei.com,\n\tlinux-kernel@vger.kernel.org, gengdongjiu@huawei.com,\n\tlijinyue@huawei.com, linux-acpi@vger.kernel.org, hanjun.guo@linaro.org,\n\thuawei.libin@huawei.com, guohanjun@huawei.com, zhengqiang10@huawei.com,\n\twangxiongfeng2@huawei.com, linux-arm-kernel@lists.infradead.org","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}}]