From patchwork Thu May 19 16:15:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aleksey Makarov X-Patchwork-Id: 9127965 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 27EBA60221 for ; Thu, 19 May 2016 16:19:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1AA72267DE for ; Thu, 19 May 2016 16:19:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0DB75281A8; Thu, 19 May 2016 16:19: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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EC1A5267DE for ; Thu, 19 May 2016 16:19:28 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1b3QeE-0005Wc-9Y; Thu, 19 May 2016 16:18:06 +0000 Received: from mail-lb0-x22b.google.com ([2a00:1450:4010:c04::22b]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b3QdW-0004uz-Pb for linux-arm-kernel@lists.infradead.org; Thu, 19 May 2016 16:17:24 +0000 Received: by mail-lb0-x22b.google.com with SMTP id n11so26438284lbh.1 for ; Thu, 19 May 2016 09:17:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=9cc6vmzC3HBkvdPHMiltJVoHeiCYmb/lmiJhZi1txuI=; b=c4n1ZUEjrLALNd0XpWRMIcGip/n5dG6WFliHImwVIloKCP1Bj0htjzRQB9RhK06Sg/ WHSWd6A57Mo28pS/Az/7oRPHd04V+t6Dk4SlAETBMAqdBiBwjCeu0hTv3RJdJ+0NccPl /HBFt6n54T8C1yWnfMxufqVBbReNdYX/oDs2k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=9cc6vmzC3HBkvdPHMiltJVoHeiCYmb/lmiJhZi1txuI=; b=mK0tnzJ+Cv9Qg6rAVUFNHLqiEw77ZNv9Mv0O9QJdJIq/IKm0GRYaD0i4FPJI8THxfA EeYdtpMKuwAcV42OUqp1NU3HcX8cUzNPfrBuRB4Eo0WOQ7UWrXSQ7SHkv73WVfUdQB5P cSfv01T/nok+TGkRYJSt2eNqorpx+8s7uaEN1iEpMpOnQzNF1wvCiI7lHNVn9+WvV9kH GgzirGdXaTrVjoaTirtMGxmYrdNNExcZbr/etqSq8hpX6n0h3xmKqUJ5ALebMbn5PjfZ tH8tUxcixakJnRd6tvJV9gvqzgSpp1L78dMXZXMPGFaCjER5Ynl2td3PomV1xJVRBsSl vRQg== X-Gm-Message-State: AOPr4FVjNKAuVFm8H4oONYn/qVpg3c51gTMMmF6GDB/iHulmoOyltUVBO6UPV1eR7/h23pTe X-Received: by 10.112.26.172 with SMTP id m12mr5002293lbg.44.1463674620703; Thu, 19 May 2016 09:17:00 -0700 (PDT) Received: from turnip.localdomain (nivc-213.auriga.ru. [80.240.102.213]) by smtp.gmail.com with ESMTPSA id yf9sm2396538lbb.34.2016.05.19.09.16.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 May 2016 09:17:00 -0700 (PDT) From: Aleksey Makarov To: Russell King , "Rafael J . Wysocki" , Len Brown Subject: [PATCH v2 4/5] ACPI: table upgrade: introduce ARCH_HAS_ACPI_TABLE_UPGRADE Date: Thu, 19 May 2016 19:15:15 +0300 Message-Id: <1463674518-22477-5-git-send-email-aleksey.makarov@linaro.org> X-Mailer: git-send-email 2.8.2 In-Reply-To: <1463674518-22477-1-git-send-email-aleksey.makarov@linaro.org> References: <1463674518-22477-1-git-send-email-aleksey.makarov@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160519_091723_131678_2EE84CFF X-CRM114-Status: GOOD ( 12.76 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Graeme Gregory , Jon Masters , x86@kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, Aleksey Makarov , Ingo Molnar , "Zheng, Lv" , "H. Peter Anvin" , Thomas Gleixner , linux-arm-kernel@lists.infradead.org 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 We want to use the table upgrade feature in ARM64. Introduce a new configuration option that allows that. Signed-off-by: Aleksey Makarov --- arch/x86/Kconfig | 1 + drivers/acpi/Kconfig | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 48ac290..f60fd27 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -22,6 +22,7 @@ config X86 select ANON_INODES select ARCH_CLOCKSOURCE_DATA select ARCH_DISCARD_MEMBLOCK + select ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE select ARCH_HAS_DEBUG_STRICT_USER_COPY_CHECKS select ARCH_HAS_DEVMEM_IS_ALLOWED diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig index c204344..083da18 100644 --- a/drivers/acpi/Kconfig +++ b/drivers/acpi/Kconfig @@ -311,9 +311,12 @@ config ACPI_CUSTOM_DSDT bool default ACPI_CUSTOM_DSDT_FILE != "" +config ARCH_HAS_ACPI_TABLE_UPGRADE + def_bool n + config ACPI_TABLE_UPGRADE bool "Allow upgrading ACPI tables via initrd" - depends on BLK_DEV_INITRD && X86 + depends on BLK_DEV_INITRD && ARCH_HAS_ACPI_TABLE_UPGRADE default y help This option provides functionality to upgrade arbitrary ACPI tables