From patchwork Fri Apr 25 13:20:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 29075 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f197.google.com (mail-ve0-f197.google.com [209.85.128.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5E35B202E6 for ; Fri, 25 Apr 2014 13:23:07 +0000 (UTC) Received: by mail-ve0-f197.google.com with SMTP id pa12sf14487680veb.4 for ; Fri, 25 Apr 2014 06:23:06 -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=YkpErv+lAEOHKNCL9TPqRmMdlwGJGfncE89gCO0Zy8s=; b=l9YnQyWBCsoM4yRw4MgxuU0EAHofomCeQh8dbc0vPWdBgiM0wB0RfdbdOYjE7zuhVc Qr/HReuAzrJedt4/jgAXGynKwTvsJB1iaSMuq+pICn8cGI4/koQR7c/aK7btugbRmY/x B2y/3OaTVaGh0jmlz/ZA/n2vn9IH9w/lB6BGyPHByl4IGzhFvjCJHVwCIRBSFQyzzH1L Yj8lj64PILbnGrXi1Bic5rUZbSXA3M382KOVnJm18RLEUXQXsUEG2CIggO/PMXk7eivx wQWSwMpXAktondIe+M8/l53OwJzS6bkM63Vl0UP2rhgbZZEISJRmV+3t35E0hiooz19W 8qxA== X-Gm-Message-State: ALoCoQn3jWyxo8fUJOeLNU7pX0/DGQgrfKjeYMMAjW7gyyRZ8sVPHeQqz7/88dqolkMaYv2RXiiU X-Received: by 10.224.95.9 with SMTP id b9mr4385282qan.2.1398432186860; Fri, 25 Apr 2014 06:23:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.48.210 with SMTP id o76ls1481368qga.66.gmail; Fri, 25 Apr 2014 06:23:06 -0700 (PDT) X-Received: by 10.58.187.9 with SMTP id fo9mr6778396vec.4.1398432186699; Fri, 25 Apr 2014 06:23:06 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id x18si1696292vcs.85.2014.04.25.06.23.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Apr 2014 06:23:06 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.220.172; Received: by mail-vc0-f172.google.com with SMTP id la4so4811314vcb.3 for ; Fri, 25 Apr 2014 06:23:06 -0700 (PDT) X-Received: by 10.220.4.132 with SMTP id 4mr6872441vcr.9.1398432186625; Fri, 25 Apr 2014 06:23:06 -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.220.221.72 with SMTP id ib8csp97371vcb; Fri, 25 Apr 2014 06:23:05 -0700 (PDT) X-Received: by 10.68.202.74 with SMTP id kg10mr7539185pbc.163.1398432185143; Fri, 25 Apr 2014 06:23:05 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ic8si4837575pad.218.2014.04.25.06.23.04; Fri, 25 Apr 2014 06:23:04 -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 S1754145AbaDYNWw (ORCPT + 8 others); Fri, 25 Apr 2014 09:22:52 -0400 Received: from mail-pd0-f181.google.com ([209.85.192.181]:49958 "EHLO mail-pd0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753478AbaDYNWs (ORCPT ); Fri, 25 Apr 2014 09:22:48 -0400 Received: by mail-pd0-f181.google.com with SMTP id w10so3097339pde.26 for ; Fri, 25 Apr 2014 06:22:48 -0700 (PDT) X-Received: by 10.68.163.197 with SMTP id yk5mr7736848pbb.57.1398432168243; Fri, 25 Apr 2014 06:22:48 -0700 (PDT) Received: from localhost ([218.17.215.175]) by mx.google.com with ESMTPSA id gj9sm16012481pbc.7.2014.04.25.06.22.36 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 25 Apr 2014 06:22:47 -0700 (PDT) From: Hanjun Guo To: linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org Cc: "Rafael J. Wysocki" , Catalin Marinas , Arnd Bergmann , Mark Brown , Grant Likely , Sudeep Holla , Olof Johansson , Mark Rutland , Rob Herring , Will Deacon , Charles.Garcia-Tobin@arm.com, linaro-acpi@lists.linaro.org, Hanjun Guo , Al Stone , Graeme Gregory Subject: [PATCH v3 part1 05/11] ARM64 / ACPI: Introduce early_param for "acpi" Date: Fri, 25 Apr 2014 21:20:11 +0800 Message-Id: <1398432017-8506-6-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1398432017-8506-1-git-send-email-hanjun.guo@linaro.org> References: <1398432017-8506-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=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) 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: , Introduce two early parameters for "acpi", one is the parameter to disable ACPI on ARM64 and another one is acpi=strict to disable out-of-spec workarounds. Signed-off-by: Al Stone Signed-off-by: Graeme Gregory Signed-off-by: Hanjun Guo Reviewed-by: Grant Likely --- drivers/acpi/plat/arm-core.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/acpi/plat/arm-core.c b/drivers/acpi/plat/arm-core.c index 47b5d9b..e4846fd 100644 --- a/drivers/acpi/plat/arm-core.c +++ b/drivers/acpi/plat/arm-core.c @@ -111,3 +111,21 @@ void __init acpi_boot_table_init(void) return; } } + +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(); + } + /* acpi=strict disables out-of-spec workarounds */ + else if (strcmp(arg, "strict") == 0) { + acpi_strict = 1; + } + + return 0; +} +early_param("acpi", parse_acpi);