From patchwork Sun May 17 20:04:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Parth Dixit X-Patchwork-Id: 48655 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 408FA21411 for ; Sun, 17 May 2015 20:07:32 +0000 (UTC) Received: by wiz9 with SMTP id 9sf15347517wiz.3 for ; Sun, 17 May 2015 13:07:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:list-id:list-unsubscribe:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:list-archive; bh=z9MWxPQxKXfAJmpmsxj2H0k3rm6DM14/++a3wL8bjQA=; b=cbeF0eAebFWovHKBv9TKKJeFdN5kiWpsgl4EzLqe8ViXQUrhNaPwDow3RYCT+leW77 wafmWoy1Si9VevtZWPNRd0u3LccTMPbwU0pth2ev4LMusXgd/NtOPWEU+BPbk7tYTaEu GrVdJrd0ZC1RlNr27NCKxAEfEgyn9AozfxtwuwcF3Vv5ZQQMRlznOPxIgyssDPe+IHhK 8fTFTIePXwBZDTBw2wvII51reVBX1sK0QjVR8sHVysQkM6riCPioDizk1TqcSMcoV6d2 RxX14vvF+F5Ugx9X/IvbN1/poiQ1D/RDiKN3OtkYe8VU5xAqN/Xmh/U+CdnkvAoj/BMB o5KQ== X-Gm-Message-State: ALoCoQm+gm/TG4FOZYbFFByDl10gZ9tuMHnzqWZk11ux7teSO8hOR2djKpCbL47EAkjoIGzqK6II X-Received: by 10.180.106.10 with SMTP id gq10mr7296952wib.0.1431893251527; Sun, 17 May 2015 13:07:31 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.101 with SMTP id i5ls569657laa.58.gmail; Sun, 17 May 2015 13:07:31 -0700 (PDT) X-Received: by 10.112.171.101 with SMTP id at5mr15180017lbc.66.1431893251210; Sun, 17 May 2015 13:07:31 -0700 (PDT) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id ph1si5323547lbb.120.2015.05.17.13.07.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 May 2015 13:07:31 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by lagv1 with SMTP id v1so191338008lag.3 for ; Sun, 17 May 2015 13:07:31 -0700 (PDT) X-Received: by 10.112.140.231 with SMTP id rj7mr14672250lbb.76.1431893251115; Sun, 17 May 2015 13:07:31 -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.112.108.230 with SMTP id hn6csp3508330lbb; Sun, 17 May 2015 13:07:30 -0700 (PDT) X-Received: by 10.140.21.134 with SMTP id 6mr18915983qgl.47.1431893249641; Sun, 17 May 2015 13:07:29 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id c195si8292390qka.45.2015.05.17.13.07.29 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 17 May 2015 13:07:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xen.org designates 50.57.142.19 as permitted sender) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Yu4pr-00047I-5j; Sun, 17 May 2015 20:06:55 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Yu4pp-00043P-MY for xen-devel@lists.xen.org; Sun, 17 May 2015 20:06:53 +0000 Received: from [85.158.139.211] by server-9.bemta-5.messagelabs.com id E3/B6-03561-CD4F8555; Sun, 17 May 2015 20:06:52 +0000 X-Env-Sender: parth.dixit@linaro.org X-Msg-Ref: server-3.tower-206.messagelabs.com!1431893211!3550161!1 X-Originating-IP: [209.85.192.177] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.13.15; banners=-,-,- X-VirusChecked: Checked Received: (qmail 20723 invoked from network); 17 May 2015 20:06:51 -0000 Received: from mail-pd0-f177.google.com (HELO mail-pd0-f177.google.com) (209.85.192.177) by server-3.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 17 May 2015 20:06:51 -0000 Received: by pdbnk13 with SMTP id nk13so21916471pdb.1 for ; Sun, 17 May 2015 13:06:50 -0700 (PDT) X-Received: by 10.67.8.71 with SMTP id di7mr38435395pad.46.1431893210696; Sun, 17 May 2015 13:06:50 -0700 (PDT) Received: from localhost.localdomain ([117.247.24.139]) by mx.google.com with ESMTPSA id j9sm7838401pdm.53.2015.05.17.13.06.47 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 17 May 2015 13:06:49 -0700 (PDT) From: Parth Dixit To: xen-devel@lists.xen.org Date: Mon, 18 May 2015 01:34:04 +0530 Message-Id: <1431893048-5214-38-git-send-email-parth.dixit@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1431893048-5214-1-git-send-email-parth.dixit@linaro.org> References: <1431893048-5214-1-git-send-email-parth.dixit@linaro.org> Cc: keir@xen.org, ian.campbell@citrix.com, andrew.cooper3@citrix.com, tim@xen.org, julien.grall@citrix.com, stefano.stabellini@citrix.com, jbeulich@suse.com, parth.dixit@linaro.org, christoffer.dall@linaro.org Subject: [Xen-devel] [PATCH v2 37/41] arm : acpi add acpi parameter to enable/disable acpi X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: parth.dixit@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.215.46 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-Archive: ACPI will be disabled by default. Define new command line parameter "acpi" for enabling it. Signed-off-by: Parth Dixit --- xen/arch/arm/setup.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c index 1b2d74c..80364bb 100644 --- a/xen/arch/arm/setup.c +++ b/xen/arch/arm/setup.c @@ -58,6 +58,12 @@ static unsigned long opt_xenheap_megabytes __initdata; integer_param("xenheap_megabytes", opt_xenheap_megabytes); #endif +#ifdef CONFIG_ACPI +/* "acpi=force" : Enables acpi */ +static void parse_acpi_param(char *s); +custom_param("acpi", parse_acpi_param); +#endif + static __used void init_done(void) { free_init_memory(); @@ -83,6 +89,25 @@ static const char * __initdata processor_implementers[] = { ['i'] = "Intel Corporation", }; +#ifdef CONFIG_ACPI +static char __initdata acpi_param[10] = ""; +static void __init parse_acpi_param(char *s) +{ + /* Save the parameter so it can be propagated to domain0. */ + safe_strcpy(acpi_param, s); + + /* Interpret the parameter for use within Xen. */ + if ( !parse_bool(s) ) + { + disable_acpi(); + } + else if ( !strcmp(s, "force") ) + { + acpi_disabled = 0; + } +} +#endif + static void __init processor_id(void) { const char *implementer = "Unknown"; @@ -731,6 +756,7 @@ void __init start_xen(unsigned long boot_phys_offset, + (fdt_paddr & ((1 << SECOND_SHIFT) - 1)); fdt_size = boot_fdt_info(device_tree_flattened, fdt_paddr); + disable_acpi(); cmdline = boot_fdt_cmdline(device_tree_flattened); printk("Command line: %s\n", cmdline); cmdline_parse(cmdline);