From patchwork Tue Feb 21 23:45:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Baicar X-Patchwork-Id: 9585895 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C4692600CA for ; Tue, 21 Feb 2017 23:45:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9585928621 for ; Tue, 21 Feb 2017 23:45:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 77B2728627; Tue, 21 Feb 2017 23:45:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E8BC28621 for ; Tue, 21 Feb 2017 23:45:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753027AbdBUXp2 (ORCPT ); Tue, 21 Feb 2017 18:45:28 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:37862 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752000AbdBUXp2 (ORCPT ); Tue, 21 Feb 2017 18:45:28 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 50C3160D2E; Tue, 21 Feb 2017 23:45:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1487720727; bh=8kE3lJfymlzWx68DxogUCG6/+gJXxCu6tlCcV3US250=; h=From:To:Cc:Subject:Date:From; b=RQtoy2iRtCtLXfHgzlKW7OSZkSA+otewmTV4WqFzCQ7auyC9qk/DUjWXNjYtVXQ6m eq9YMY45AfceJB6fA/gM0Wm7ZRvGIo5SWN7+GW4MiaQVJkv1ExSZvi/iN63y7pidRC uncvSkSZxuxr8BQF3vv+xT2ZzQczvs0Pb8TCHcJg= Received: from tbaicar-lnx.qualcomm.com (unknown [129.46.14.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: tbaicar@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id E69E960D2E; Tue, 21 Feb 2017 23:45:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1487720726; bh=8kE3lJfymlzWx68DxogUCG6/+gJXxCu6tlCcV3US250=; h=From:To:Cc:Subject:Date:From; b=ahYYoM3FhvMgyFc1o7dbw0cnvfgnXT7l20u9m7IUTdcMN5IWpCtnRE0SZ52nomDn4 BDntGXn8khE6EHCwAMG0inShpv8BUsipDWLrdFbx5QBAnhq/+1VJGZkdxAgE72Vff/ NZ5OVYSRd7SCTi+z9eZYT5OaGcmjFKW3c3h7qUI0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org E69E960D2E Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=tbaicar@codeaurora.org From: Tyler Baicar To: catalin.marinas@arm.com, will.deacon@arm.com, rjw@rjwysocki.net, lenb@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, punit.agrawal@arm.com Cc: "Jonathan (Zhixiong) Zhang" , Tyler Baicar Subject: [PATCH V2] arm64: kconfig: allow support for memory failure handling Date: Tue, 21 Feb 2017 16:45:23 -0700 Message-Id: <1487720723-14871-1-git-send-email-tbaicar@codeaurora.org> X-Mailer: git-send-email 1.8.2.1 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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. Signed-off-by: Jonathan (Zhixiong) Zhang Signed-off-by: Tyler Baicar --- arch/arm64/Kconfig | 1 + drivers/acpi/apei/Kconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 1117421..61e0bb0 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -15,6 +15,7 @@ config ARM64 select ARCH_HAS_SG_CHAIN select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST select ARCH_USE_CMPXCHG_LOCKREF + select ARCH_SUPPORTS_MEMORY_FAILURE select ARCH_SUPPORTS_ATOMIC_RMW select ARCH_SUPPORTS_NUMA_BALANCING select ARCH_WANT_COMPAT_IPC_PARSE_VERSION diff --git a/drivers/acpi/apei/Kconfig b/drivers/acpi/apei/Kconfig index b0140c8..6d9a812 100644 --- a/drivers/acpi/apei/Kconfig +++ b/drivers/acpi/apei/Kconfig @@ -9,6 +9,7 @@ config ACPI_APEI select MISC_FILESYSTEMS select PSTORE select UEFI_CPER + select ACPI_APEI_MEMORY_FAILURE if MEMORY_FAILURE depends on HAVE_ACPI_APEI help APEI allows to report errors (for example from the chipset)