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: 9127949 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 78D4060221 for ; Thu, 19 May 2016 16:17:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6C6BC281CE for ; Thu, 19 May 2016 16:17:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 613C3281CF; Thu, 19 May 2016 16:17:48 +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 0AEA028117 for ; Thu, 19 May 2016 16:17:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932312AbcESQRc (ORCPT ); Thu, 19 May 2016 12:17:32 -0400 Received: from mail-lb0-f182.google.com ([209.85.217.182]:33115 "EHLO mail-lb0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932763AbcESQRC (ORCPT ); Thu, 19 May 2016 12:17:02 -0400 Received: by mail-lb0-f182.google.com with SMTP id k7so5653175lbm.0 for ; Thu, 19 May 2016 09:17:01 -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=IZQCBq8HkXnVlBfa8NiUbDV+MSVwRyUrssPrbW6GYb8Nmb6+FGGTIyDw+5HcFIIErf brxabMIZHKSXQihGeFjtlNiKQmgXxaxH4PZnaOzD/6hUImG87IabBLjJnMCyZIbeOtsR 8H2bPnwvY/k15BhTchkXi5HmlhOHAvGRC/G3yJO8NLI4ZwoQETguiiLjZc+Yw/XyCmdO OzPPE0HxWqCI4pM2vTtnnSndndgCqz9nMKeRY1LKoJhhTFUKdi7HJneIqpTosou1gTjZ 70mks+TYDuXc18Y+FLFhRfPOmz8k/khzjTi4Sj1MspJndxXHIF/tdkIHWH/fhE0d+jv1 b9+w== X-Gm-Message-State: AOPr4FUc2sCbNk3Tf9OfT9RutX95Uh88ZT+fAsF42Ytr/TenMDOhk/pk1FgUx3EcuO/iDBtV 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 Cc: linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Aleksey Makarov , Graeme Gregory , Jon Masters , "Zheng, Lv" , Mark Rutland , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org 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> 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 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