From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965587AbdCWQNC (ORCPT ); Thu, 23 Mar 2017 12:13:02 -0400 Received: from mail-he1eur01on0060.outbound.protection.outlook.com ([104.47.0.60]:19008 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965045AbdCWQNA (ORCPT ); Thu, 23 Mar 2017 12:13:00 -0400 Authentication-Results: codeaurora.org; dkim=none (message not signed) header.d=none;codeaurora.org; dmarc=none action=none header.from=arm.com; Subject: Re: [PATCH] arm64: kconfig: allow support for memory failure handling To: James Morse References: <1485985115-27274-1-git-send-email-tbaicar@codeaurora.org> <58D3DCA1.5090006@arm.com> CC: Tyler Baicar , , , , , "Jonathan (Zhixiong) Zhang" From: Punit Agrawal Message-ID: <1dc99ff7-65ac-4858-6008-8ee8d0f6f336@arm.com> Date: Thu, 23 Mar 2017 16:12:55 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 MIME-Version: 1.0 In-Reply-To: <58D3DCA1.5090006@arm.com> Content-Type: text/plain; charset="windows-1252"; format=flowed X-Originating-IP: [217.140.96.140] X-ClientProxiedBy: AM5PR0201CA0023.eurprd02.prod.outlook.com (10.169.248.33) To AM4PR0802MB2308.eurprd08.prod.outlook.com (10.172.218.17) X-MS-Office365-Filtering-Correlation-Id: 8dd6485a-2504-4719-56d7-08d472077852 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(48565401081);SRVR:AM4PR0802MB2308; X-Microsoft-Exchange-Diagnostics: 1;AM4PR0802MB2308;3:WsSLEwKahrXk43ZUaOlcLKh77XPx5UGSKwH2y1gVz9Tk4vPv5Huu5nXOCPmKmVsvRbC0vLgGCJjItOvXN8BqJF6x8xF5g5AR6ZXikZif8RAnR1xiRpSAG/g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v42JIfx7L1Bzf1ZEIWO1LHycLudo3/5jXbgshyQnAGyeXBeMgLTAbf2hcxLV2mPnwrvTtmFiaUs6iQZTZSiKbYfEvF9RE7KT0muiJA8Up20fah9FxdGFnhtCmWPgfNN/aZBUqnW3xNx4Jqp7+iGHTvopsLrRsGiOyNkebtp54+qo9udmva6a+pD0hjCS6jaDjBu4uH6USczMzctJjXGXronh1gCd07NZc4TwcqYOh++OdjGLup1o7jggAeBfOwqdowvXGs0/hrzspcHiiHF18PFQrAY0yvVFw0sljW6yQFTyWAC350Na8qpGzWRGFAztfY23mvpj9Hz5yTTUSTTWMQXLdI5KDuE/1KYIKmHEP/gOfAS X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123558025)(20161123562025)(20161123555025)(20161123560025)(20161123564025)(6072148);SRVR:AM4PR0802MB2308;BCL:0;PCL:0;RULEID:;SRVR:AM4PR0802MB2308; X-Microsoft-Exchange-Diagnostics: 1;AM4PR0802MB2308;4:sS3wj1BqmY/usn88v5M9bYTgTiDJ7cDSaxxVVOTzJpNQX2NcNViAAPheUe64Vtxkf7ZgQvN0Uy5vq40J5eHFpqSBnDYYeX3ZlRdG3Z4+dNrbo6+bsOmzpfDcMpnKBWsZv037x/c4IAT75l61P5rFn5v2pWlfGb43+xXX+wmuzyQ/qxaFc4HGfanTqIfJ5KcRcH15kheQ+aU1AEhQq+LrBhEzkGVdBxoB2fYmwEfVGwtY23OtVoSM2v5HcsSPOcfErMSmnNrSrGJWljtN80LhapJiK83xtDzrz7OVUgZqV1HgDvO2sCNgEUo0ZGAZWbWQ4Kl4vNRfnkKlrPz7YdFc8Ozn4wgDYPkGr52vioOSo8mD1fsN6x6qeW+WE7K6s3AfUGJ/xnLN/bdz9vq25ndhQ9CNn+YMrTyYO9u1OA+QOcz5oHHo8Beuo0yC6BOgFrTwgmLYBWQTHTF2RIrjYRb4I9bd/1cOvRwbrAT/1XL66OVKRS9ZvMKo3F1Zgit43OfqXcrPeQ3k4Zs5bdyiLvR9RNYXlKIum5GV4R0KuHP+NjgXgHPz3IZfj8bvo2MFg5FdiwH2kCT/NDNmdj0gBD0UZr+fm06bdlsJrPnB3THpArw6NnDQjtZDOHtFsCE8XtOW X-Forefront-PRVS: 0255DF69B9 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6049001)(6009001)(39860400002)(39450400003)(39410400002)(39850400002)(39840400002)(40434004)(24454002)(7736002)(77096006)(81166006)(3846002)(6116002)(8746002)(8676002)(2906002)(66066001)(53546009)(31686004)(53936002)(36756003)(6306002)(76176999)(50466002)(42186005)(31696002)(229853002)(83506001)(5890100001)(54356999)(4326008)(33646002)(305945005)(2950100002)(50986999)(64126003)(189998001)(23746002)(86362001)(6486002)(54906002)(6862004)(90366009)(47776003)(5660300001)(6246003)(38730400002)(110136004)(25786009)(6636002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM4PR0802MB2308;H:[10.1.195.42];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;AM4PR0802MB2308;23:92es2yI/bHwNK3TERI0ebceC4H3g22bdGur?= =?Windows-1252?Q?2Ct8CjvEtDjiYSJ49ozKE6VTcmNz0r0Ite8dSRwTM2zwBM1XNpjXH5gV?= =?Windows-1252?Q?bz4SLA7DlrXmeGYDuMGiqGzfqY9j/naBXhCPaCwt737j6sm3YSllr++2?= =?Windows-1252?Q?mOr855TJeIQj6X0ChojBXh2gXC4JS+B4PqFeUBQSuK4AgO93xdXzeOXX?= =?Windows-1252?Q?WrNqXed3mImD0Mo5YqklcMxC3Nuh2srsexRu7MsH1JCbZpeYRVh2dUHL?= =?Windows-1252?Q?KYjwvJkDiow8O7BR4E0YK1wRycRGAO+bmAjzCK6SXy2V09ijH46qwGQ2?= =?Windows-1252?Q?MqtuQK530EkVYTKbxXoxVS9QLecZlo6wN5xPZ5zJDTys5HeKCsQHV1x5?= =?Windows-1252?Q?wQgvAQXlh2jNwFbglkNR1rzhLIyLwsIMYv6tkLJ3px4/DA4H6cefxBac?= =?Windows-1252?Q?O3Ithn8FonV0Z3jijFYoA+JLEyzaQJnfcmj2nIzMlG/vcA+bDZcsoZv6?= =?Windows-1252?Q?axe7zc9BYlnG1433d4CTxErSXH5oZmJrjc+YgmiWhC/vHwYM+QghAi2t?= =?Windows-1252?Q?Y47ymYFXkBoa9HXuhjsYAgSfnPves66FIiUcts26ORnNBzXFYe4bo+2q?= =?Windows-1252?Q?s6Z9ReyCVTPRhVoNxxl1xvmeD6hn6P5eovak37cAHsIXsMjMpnV5NEnp?= =?Windows-1252?Q?DkRJ2ngkIUFbXMqrXge/C9f5ED7TgTwy5KDRTIQM/ViAyTbfc1N5HcxG?= =?Windows-1252?Q?+B0v+G5K8wK+7vb7fhmAXxp/7i3Z541otiGcoZALuaUZiixN3Ro7LR49?= =?Windows-1252?Q?PFVeMfFDo1Sx92WN++XRY90TO7N2e/uRr1iI8XfgleXOSqZ6F932+isA?= =?Windows-1252?Q?tF/xeT0SWyv/E667TntO0fCzq5biaWhWJ604+me4vNELoXYWTFvkXYUv?= =?Windows-1252?Q?Ix5IX+ncV9eEHZO0yDItbpq3ETZ64rvpBcDMX1XFTMWp03RFz805jaoI?= =?Windows-1252?Q?B8uNdhAP9p9hlEom0hvmeleJ9V7HnUmEmy2MVXRzeAGJGWJaLgefnDBs?= =?Windows-1252?Q?+aYCTqhElAHrsxIf11lcK8fOWxj7IAQBZhxFcOrnqlzpv79vUYr2z1YK?= =?Windows-1252?Q?EztJ7gvAK9ZUzG1tuQnb1S48tltPYEOfTuvGH8R6xHVzZCVaDm3H0yzg?= =?Windows-1252?Q?Z+ApbmoAG4Z/sUnYbmEAHrhxIWtzEtqY4DTgMcnI1ufVRdlFATzkKc6R?= =?Windows-1252?Q?d3sD0+GcQcyoAMfqvyEl2dKU2r1q9hKxR8cpx56mGSme9MaG2VxE+8VX?= =?Windows-1252?Q?yRoUCAN2zVC/72CU4lIedM+AII0qtEvC2oonUxPDFW7KCyebKEHclWGm?= =?Windows-1252?Q?7iMjVW6XCkqRz?= X-Microsoft-Exchange-Diagnostics: 1;AM4PR0802MB2308;6:Pr4Lsi6CbTypIuykjCn10zLztSTJ2tqc2A7F36N/qs6vuMvErA7bwNQDd3lydHgTDuQNfaNpD8wCR9ikXmSAEpAzh0na2/8RjgU8xWoq8u8HTF3SXH6qG4bl28FwQSPih2ms6YoQKUSRYmW+nbQYgMRPV/IOyA37R+AMgDdTg8cKl6yiepvAnbW6anlvjIZLFA8VsV2z4EjizMr28tmtnjXbbS8LjTTEyEErx2qUXedmTVJPIbhZGrlKqCOC52LNVk8R+DDtQ3eMcfIg/B00CMJeyLUqlGNsLN/gMmnzvM59P7WayGplpcp8gY2vmGQXlrbxMjWjLEbxAEYF+7GsQa2PWaEY9YKqeZtyYKm9OD4vh5i7ZlausUehwMn9RZLUREewgUcdluf48b/P4nZjRXrv6uSY/DDxvgO8EoNY+JA=;5:SDdqM3YjsArEGHaTEy4CfvRZDLs8OLHh5NdP99+4skgnZRGG/1uEKIBUUflXHlzRXxC1gZ9POuppn+ezvmlyeTcIABzKuNWnXFMbNYaUIVvt7Phl3FWJiYb4k6Nz6braRa7OES+RIhl7DP3uPG958A==;24:8KkDIRklECKzdjL2Y/+h91JEEMW4CfJ0540u92jpY8AYKPz/4gFTCrS/P4/KXitJWJTo22vpeWpt1UUgq4/PuCTgzJzZ9H6GE+rtS6hnaZI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;AM4PR0802MB2308;7:z+rPV8HJ7QfzdTlwvtgB9wKh/LT1N/Qi63jNI0pYg9eD1ic7YwWNSr0IS0Dq+MOkYFRnWsxUmOh1i97mWKgufHfjCCVR/MVn81j+rpuZ7x8HBPeBu2clbfJ5aNE4MOwA/RQ/VCmXSo6/YE/UnPg9fDBLEtADIK09oFieDoxtUzP6I54zOrZifZYc0trbZdNXRS6/aVxvZgNz1WNRGo/RwdcJUUplKHeS5ZoG1WnQnFJ+wywQ3HUFhANMHbo9M7FhLVzUtpxPoO0bLd6hiscaFt/PEGY6QWNMP84R16OqiKyc8UZ77tIOFk7+5X0NZNgb9s1laBvBMkMbUuXD0HeVkw== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Mar 2017 16:12:57.3060 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0802MB2308 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id v2NGDLgU028411 On 23/03/17 14:33, James Morse wrote: > Hi Punit, > > On 01/02/17 21:38, Tyler Baicar wrote: >> From: "Jonathan (Zhixiong) Zhang" >> >> If ACPI_APEI and MEMORY_FAILURE is configured, select >> ACPI_APEI_MEMORY_FAILURE. This enables memory failure recovery >> when such memory failure is reported through ACPI APEI. APEI >> (ACPI Platform Error Interfaces) provides a means for the >> platform to convey error information to the kernel. >> >> Declare ARCH_SUPPORTS_MEMORY_FAILURE, as arm64 does support >> memory failure recovery attempt. > > Am I right in thinking we should wait for the hugepage issue you found with > hwpoison [0] to be fixed before arm64 can have ARCH_SUPPORTS_MEMORY_FAILURE? We should at the least fix the huge_pte_offset() issue discovered in [0] before we enable memory failure handling. Earlier today I posted a RFC[1] fix for it based on Catalin's suggestion. > > (If so, can this patch become part of that series to they are obviously related!) Good point - I can include the patches enabling memory failure handling on ARM64 if Tyler's fine with it. Thanks, Punit [1] https://lkml.org/lkml/2017/3/23/293 > > Thanks, > > James > > [0] https://www.spinics.net/lists/arm-kernel/msg568995.html > > > > >> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig >> index f92778d..4cd12a0 100644 >> --- a/arch/arm64/Kconfig >> +++ b/arch/arm64/Kconfig >> @@ -15,6 +15,8 @@ config ARM64 >> select ARCH_HAS_SG_CHAIN >> select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST >> select ARCH_USE_CMPXCHG_LOCKREF >> + select ACPI_APEI_MEMORY_FAILURE if ACPI_APEI && MEMORY_FAILURE >> + select ARCH_SUPPORTS_MEMORY_FAILURE >> select ARCH_SUPPORTS_ATOMIC_RMW >> select ARCH_SUPPORTS_NUMA_BALANCING >> select ARCH_WANT_COMPAT_IPC_PARSE_VERSION >> > > > IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.