From patchwork Mon Sep 1 14:57:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 36370 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oi0-f70.google.com (mail-oi0-f70.google.com [209.85.218.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0CF6B2032B for ; Mon, 1 Sep 2014 14:59:53 +0000 (UTC) Received: by mail-oi0-f70.google.com with SMTP id u20sf29829254oif.9 for ; Mon, 01 Sep 2014 07:59:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=HAzZ5TihnUL27KpStcOAqBdrO6+XML8DE83/d2t5dUE=; b=jOUK/HjL5kDCY2mdLCfdXLKbUyXv+RDHLMy5bA7o/rZ3ZSWhzQgEy9aks6P7QjphCF 26a3oxiqjb0BOX7Z975z5ZEPNCVd8p92GRWslLR4behh1wRU9DGBKwKA0koMybcN0Tcq hesvNq8WiMcuJFZPRsAetfdDYAnWcFyNv3/KUf02gqrwaZ2idwHVfKhyk1bbodqh7mCD QNlMqxtn8/Expvgs8THTr5zA4iUsQvvGu2ms5v1py5IooWqFQQnRl2LWkCcbq2h5gz4n mLWQsUKg0g73+n6VUYWHF4zNBNbTS05By9EpgrF80gwafaI+iFQbh5Hyn+iNxHzMcsD9 4EVA== X-Gm-Message-State: ALoCoQlPFbSBUomumcfjpiev2WAm3yyRVURGVN/lEiAuvo5k3GpU8/6n/Ckd5Jd1vCU6F6OeuBbL X-Received: by 10.42.58.138 with SMTP id i10mr7357922ich.18.1409583592605; Mon, 01 Sep 2014 07:59:52 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.46.100 with SMTP id j91ls2003719qga.44.gmail; Mon, 01 Sep 2014 07:59:52 -0700 (PDT) X-Received: by 10.220.96.137 with SMTP id h9mr756944vcn.46.1409583592466; Mon, 01 Sep 2014 07:59:52 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id wx4si545402vdb.77.2014.09.01.07.59.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 01 Sep 2014 07:59:52 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id im17so5584820vcb.18 for ; Mon, 01 Sep 2014 07:59:52 -0700 (PDT) X-Received: by 10.220.122.194 with SMTP id m2mr24166555vcr.17.1409583592347; Mon, 01 Sep 2014 07:59:52 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp399518vcb; Mon, 1 Sep 2014 07:59:51 -0700 (PDT) X-Received: by 10.68.228.37 with SMTP id sf5mr4993154pbc.154.1409583591492; Mon, 01 Sep 2014 07:59:51 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id uk10si1399340pab.233.2014.09.01.07.59.50 for ; Mon, 01 Sep 2014 07:59:51 -0700 (PDT) Received-SPF: none (google.com: linux-acpi-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754436AbaIAO7s (ORCPT + 7 others); Mon, 1 Sep 2014 10:59:48 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:58163 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754434AbaIAO7s (ORCPT ); Mon, 1 Sep 2014 10:59:48 -0400 Received: by mail-pa0-f48.google.com with SMTP id ey11so12429924pad.7 for ; Mon, 01 Sep 2014 07:59:46 -0700 (PDT) X-Received: by 10.68.139.162 with SMTP id qz2mr4907234pbb.153.1409583586314; Mon, 01 Sep 2014 07:59:46 -0700 (PDT) Received: from localhost ([202.104.114.248]) by mx.google.com with ESMTPSA id ft9sm1660899pdb.24.2014.09.01.07.59.44 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 01 Sep 2014 07:59:45 -0700 (PDT) From: Hanjun Guo To: Catalin Marinas , "Rafael J. Wysocki" , Mark Rutland , Olof Johansson , Grant Likely Cc: Graeme Gregory , Arnd Bergmann , Sudeep Holla , Will Deacon , Jason Cooper , Marc Zyngier , Bjorn Helgaas , Daniel Lezcano , Mark Brown , Rob Herring , Robert Richter , Lv Zheng , Robert Moore , Lorenzo Pieralisi , Liviu Dudau , Randy Dunlap , Charles.Garcia-Tobin@arm.com, linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linaro-acpi@lists.linaro.org, Al Stone , Hanjun Guo Subject: [PATCH v3 04/17] ARM64 / ACPI: Introduce early_param for "acpi" Date: Mon, 1 Sep 2014 22:57:42 +0800 Message-Id: <1409583475-6978-5-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1409583475-6978-1-git-send-email-hanjun.guo@linaro.org> References: <1409583475-6978-1-git-send-email-hanjun.guo@linaro.org> Sender: linux-acpi-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: hanjun.guo@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Al Stone Introduce one early parameters "off" for "acpi" to disable ACPI on ARM64. Signed-off-by: Al Stone Signed-off-by: Graeme Gregory Signed-off-by: Hanjun Guo --- Documentation/kernel-parameters.txt | 3 ++- arch/arm64/kernel/acpi.c | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index 5ae8608..9dfb1d8 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt @@ -165,7 +165,7 @@ multipliers 'Kilo', 'Mega', and 'Giga', equalling 2^10, 2^20, and 2^30 bytes respectively. Such letter suffixes can also be entirely omitted. - acpi= [HW,ACPI,X86] + acpi= [HW,ACPI,X86,ARM] Advanced Configuration and Power Interface Format: { force | off | strict | noirq | rsdt } force -- enable ACPI if default was off @@ -175,6 +175,7 @@ bytes respectively. Such letter suffixes can also be entirely omitted. strictly ACPI specification compliant. rsdt -- prefer RSDT over (default) XSDT copy_dsdt -- copy DSDT to memory + For ARM64, ONLY "acpi=off" is available. See also Documentation/power/runtime_pm.txt, pci=noacpi diff --git a/arch/arm64/kernel/acpi.c b/arch/arm64/kernel/acpi.c index b6940a0..9547275 100644 --- a/arch/arm64/kernel/acpi.c +++ b/arch/arm64/kernel/acpi.c @@ -74,3 +74,18 @@ void __init acpi_boot_table_init(void) * TBD when ARM/ARM64 starts to support suspend... */ int (*acpi_suspend_lowlevel)(void) = NULL; + +static int __init parse_acpi(char *arg) +{ + if (!arg) + return -EINVAL; + + /* "acpi=off" disables both ACPI table parsing and interpreter */ + if (strcmp(arg, "off") == 0) + disable_acpi(); + else + return -EINVAL; /* Core will print when we return error */ + + return 0; +} +early_param("acpi", parse_acpi);