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: 9585899 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 2493C600CA for ; Tue, 21 Feb 2017 23:45:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 091CF28621 for ; Tue, 21 Feb 2017 23:45:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F077228627; Tue, 21 Feb 2017 23:45:53 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 614C428621 for ; Tue, 21 Feb 2017 23:45:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=m4Rcb6VWyTuTpZFT0t5adQbdOEITkputTO3A0vB61LE=; b=o9Q OueGQ9HdTODZEhoOVuQDUwJW28yxSTxqXpPUquNKhG21vDF8jMqor9FWQ+RJy31kkS1ShBtSVQLah MSwHgCcOF6wu/jCeWYXE/UnIqpSlJkDnVQ6VCLjoc5+7KMHDT4wLki6kRTv7EqXKp4ltYe4DP7EpX tNvPgWb16NVjHYOb6MRclWwFWH1J0E0gZ+A/rQPmqvonozG5J9BH11L5o5Fwb5U+FbLsUsqdlHYrl EtagnUC7xzRekOpebV5s5iX1PcuwOdHm67qQwwPewlyU5E9+5xzZtzs/36DQMFKoHVVGnj/dCr5/I 0237wWenQdBPpy2lQvRAHWM1n/6wQ1A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cgK7z-00072E-HE; Tue, 21 Feb 2017 23:45:51 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cgK7v-00070l-IW for linux-arm-kernel@lists.infradead.org; Tue, 21 Feb 2017 23:45:49 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 410CE60D5D; 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170221_154547_642249_0D5D6CC2 X-CRM114-Status: GOOD ( 10.07 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tyler Baicar , "Jonathan \(Zhixiong\) Zhang" MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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)