From patchwork Mon Jun 20 10:56:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aleksey Makarov X-Patchwork-Id: 70436 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp1447237qgy; Mon, 20 Jun 2016 03:57:44 -0700 (PDT) X-Received: by 10.107.28.14 with SMTP id c14mr20741668ioc.86.1466420264526; Mon, 20 Jun 2016 03:57:44 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q7si32722410pfb.208.2016.06.20.03.57.44; Mon, 20 Jun 2016 03:57:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932134AbcFTK5m (ORCPT + 5 others); Mon, 20 Jun 2016 06:57:42 -0400 Received: from mail-lf0-f41.google.com ([209.85.215.41]:34742 "EHLO mail-lf0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753311AbcFTK5i (ORCPT ); Mon, 20 Jun 2016 06:57:38 -0400 Received: by mail-lf0-f41.google.com with SMTP id h129so34324520lfh.1 for ; Mon, 20 Jun 2016 03:56:41 -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=i/gKrageyGOC5zojxSH0BGIKzVs0QhTSS38F6Jt1siQ=; b=hA47xadDtgSTF+6dS289VIgaUxFGokdbdXX6iShINZSghdjmOAENLYC06/HMVwQPow L2O3CwfJmhQH5cRXLlJNiHd+2d1NnVj4u/orrzXisr3DevwYaW39cDojw9fewplhhXn1 jZON7Kgd3HB+4UrrboTfzceIg9psUkxfgAy4o= 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=i/gKrageyGOC5zojxSH0BGIKzVs0QhTSS38F6Jt1siQ=; b=m9jI1pAGsTAx2dU+kmCwHRdutofEX8YDgoTHg7xRXH/rtNcs4Zwgyq3ASQQ6FWwwKP 2Jy1qxpY33vlDXYaM0F7DPrdABtOHZN+3gz3UrZTvqWakWqzoLhdN/CImUfTsPd/RpO6 1EzQ77OSaEEi0KNWSrgvMqb7dtTcZki30fSqQ/DL7G1KIP8rrIddCrPjZOOt0jDBS8UP G8O7xoYW/w1GjH08KbX/p4VrNK6BfZWcRRqilCg1rkQlTs5XQicgvXCTvxLOucBmsSrH Q7rTQV2HWSNzkv+e6I95aRy8k2YFukZ4KooZhLIuvxzTJ1iSIgaWRbDFjaOilTKBq5+G Wz/g== X-Gm-Message-State: ALyK8tIWM4GPJM1OgSpV0FYo/HDZ/CUGcp8tGP4KJnyZpSYAnqM6E3qyt4Ysp+h3FGHXqDjd X-Received: by 10.46.1.163 with SMTP id f35mr3799188lji.21.1466420200144; Mon, 20 Jun 2016 03:56:40 -0700 (PDT) Received: from localhost.localdomain (nivc-213.auriga.ru. [80.240.102.213]) by smtp.gmail.com with ESMTPSA id g28sm6367133ljg.24.2016.06.20.03.56.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Jun 2016 03:56:39 -0700 (PDT) From: Aleksey Makarov To: "Rafael J . Wysocki" Cc: Catalin Marinas , Will Deacon , Len Brown , 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 v4 4/5] ACPI: table upgrade: introduce ARCH_HAS_ACPI_TABLE_UPGRADE Date: Mon, 20 Jun 2016 13:56:12 +0300 Message-Id: <20160620105615.15538-5-aleksey.makarov@linaro.org> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20160620105615.15538-1-aleksey.makarov@linaro.org> References: <20160620105615.15538-1-aleksey.makarov@linaro.org> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org 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(-) -- 2.8.3 -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 39f8277..bb73293 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 f98c328..1cde30b 100644 --- a/drivers/acpi/Kconfig +++ b/drivers/acpi/Kconfig @@ -314,9 +314,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