public inbox for linux-arm-kernel@lists.infradead.org 
 help / color / mirror / Atom feed
From: julien.grall@citrix•com (Julien Grall)
To: linux-arm-kernel@lists•infradead.org
Subject: [PATCH v3 61/62] arm/acpi: Add acpi parameter to enable/disable acpi
Date: Tue, 17 Nov 2015 12:26:22 +0000	[thread overview]
Message-ID: <564B1CEE.9030008@citrix.com> (raw)
In-Reply-To: <1447753261-7552-62-git-send-email-shannon.zhao@linaro.org>

Hi Shannon,

I would have appreciate if you I had looked on comments made on the
series sent by Parth.

On 17/11/15 09:41, shannon.zhao at linaro.org wrote:
> From: Parth Dixit <parth.dixit@linaro•org>
> 
> ACPI will be disabled by default. Define new command line parameter
> "acpi" for enabling it.

I don't think this is right. We have to be able to boot platform where
there is only ACPI provided without adding a command line option.

Overall, it would be better if we follow the same behavior as Linux i.e
ACPI is enabled instead of DT unless:
        - ACPI has been disabled (acpi=off)
        - the DT is not empty (it has more than just a /chosen node) and
ACPI has not been forced to be enabled (acpi=force).

> 
> Signed-off-by: Parth Dixit <parth.dixit@linaro•org>
> Signed-off-by: Shannon Zhao <shannon.zhao@linaro•org>
> ---
>  xen/arch/arm/setup.c | 22 ++++++++++++++++++++++
>  1 file changed, 22 insertions(+)
> 
> diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c
> index 63feadf..1a40323 100644
> --- a/xen/arch/arm/setup.c
> +++ b/xen/arch/arm/setup.c
> @@ -59,6 +59,10 @@ static unsigned long opt_xenheap_megabytes __initdata;
>  integer_param("xenheap_megabytes", opt_xenheap_megabytes);
>  #endif
>  
> +/* "acpi=force" : Enables acpi */
> +static void parse_acpi_param(char *s);
> +custom_param("acpi", parse_acpi_param);
> +
>  static __used void init_done(void)
>  {
>      free_init_memory();
> @@ -84,6 +88,23 @@ static const char * __initdata processor_implementers[] = {
>      ['i'] = "Intel Corporation",
>  };
>  
> +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);

This acpi_param is never used within this series. Please drop it or
either implement what the comment claim.

> +
> +    /* Interpret the parameter for use within Xen. */
> +    if ( !parse_bool(s) )
> +    {
> +        disable_acpi();
> +    }
> +    else if ( !strcmp(s, "force") )
> +    {
> +        acpi_disabled = 0;
> +    }
> +}
> +
>  static void __init processor_id(void)
>  {
>      const char *implementer = "Unknown";
> @@ -729,6 +750,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);
> 

Regards,

-- 
Julien Grall

  reply	other threads:[~2015-11-17 12:26 UTC|newest]

Thread overview: 212+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-17  9:39 [PATCH v3 00/62] Add ACPI support for arm64 on Xen shannon.zhao at linaro.org
2015-11-17  9:40 ` [PATCH v3 01/62] Revert "xen/arm: vgic-v2: Drop cbase from arch_domain" shannon.zhao at linaro.org
2015-11-17 11:27   ` Julien Grall
2015-11-17 12:32     ` Shannon Zhao
2015-11-17 13:57       ` Julien Grall
2015-11-18  2:28         ` Shannon Zhao
2015-11-18 11:41           ` Julien Grall
2015-11-18 13:09             ` Shannon Zhao
2015-11-18 13:33               ` Julien Grall
2015-11-18 13:38                 ` Shannon Zhao
2015-11-17  9:40 ` [PATCH v3 02/62] acpi/NUMA: Build NUMA for x86 only shannon.zhao at linaro.org
2015-11-17  9:40 ` [PATCH v3 03/62] acpi/pmstat: Build pmstat " shannon.zhao at linaro.org
2015-11-23 15:46   ` Jan Beulich
2015-11-17  9:40 ` [PATCH v3 04/62] arm/acpi: Emulate io ports for arm shannon.zhao at linaro.org
2015-11-17  9:50   ` Arnd Bergmann
2015-11-18  7:01     ` Shannon Zhao
2015-11-18  8:24       ` Arnd Bergmann
2015-11-17  9:40 ` [PATCH v3 05/62] acpi: Don't do traditional BIOS table scan for ARM64 shannon.zhao at linaro.org
2015-11-23 11:24   ` Stefano Stabellini
2015-11-23 11:35     ` Jan Beulich
2015-11-24  3:39       ` Shannon Zhao
2015-11-24  7:20         ` Jan Beulich
2015-11-17  9:40 ` [PATCH v3 06/62] acpi: Refactor acpi_os_map_memory to be architecturally independent shannon.zhao at linaro.org
2015-11-23 11:29   ` [Xen-devel] " Stefano Stabellini
2015-11-23 11:37     ` Jan Beulich
2015-12-07 12:00   ` Julien Grall
2015-11-17  9:40 ` [PATCH v3 07/62] arm/acpi: Add arch_acpi_os_map_memory helper function for ARM shannon.zhao at linaro.org
2015-11-23 11:37   ` Stefano Stabellini
2015-11-30 14:47     ` [Xen-devel] " Julien Grall
2015-12-07  8:58       ` Shannon Zhao
2015-12-07 10:32         ` Jan Beulich
2015-12-07 10:38           ` Ian Campbell
2015-12-07 12:02             ` Julien Grall
2015-11-17  9:40 ` [PATCH v3 08/62] arm/acpi: Add arm specific acpi header file shannon.zhao at linaro.org
2015-11-23 11:43   ` Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 09/62] arm/acpi: Add basic ACPI initialization shannon.zhao at linaro.org
2015-11-23 11:52   ` [Xen-devel] " Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 10/62] arm/acpi: Move end_boot_allocator after acpi_boot_table_init shannon.zhao at linaro.org
2015-11-23 11:54   ` Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 11/62] arm/acpi: Introduce ARM Boot Architecture Flags in FADT shannon.zhao at linaro.org
2015-11-23 12:13   ` Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 12/62] ACPICA: ACPI 6.0: Add changes for FADT table shannon.zhao at linaro.org
2015-11-23 12:15   ` Stefano Stabellini
2015-11-24 11:29   ` Jan Beulich
2015-11-25  1:45     ` Shannon Zhao
2015-11-17  9:40 ` [PATCH v3 13/62] arm/acpi: Parse FADT table and get PSCI flags shannon.zhao at linaro.org
2015-11-23 12:42   ` Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 14/62] arm/acpi: Add Generic Interrupt and Distributor struct shannon.zhao at linaro.org
2015-11-23 14:43   ` Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 15/62] ACPICA: ACPI 6.0: Add changes for MADT table shannon.zhao at linaro.org
2015-11-23 14:51   ` Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 16/62] ACPICA: ACPI 6.0: Add values for MADT GIC version field shannon.zhao at linaro.org
2015-11-23 14:52   ` Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 17/62] arm/acpi: Print GIC information when MADT is parsed shannon.zhao at linaro.org
2015-11-23 14:56   ` Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 18/62] arm/acpi: Parse MADT to map logical cpu to MPIDR and get cpu_possible_map shannon.zhao at linaro.org
2015-11-23 15:18   ` Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 19/62] arm/smpboot: Move dt specific code in smp to seperate functions shannon.zhao at linaro.org
2015-11-23 15:22   ` Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 20/62] arm/acpi: Add ACPI support for SMP initialization shannon.zhao at linaro.org
2015-11-23 15:27   ` Stefano Stabellini
2015-11-30 14:57   ` [Xen-devel] " Julien Grall
2015-12-30  3:11     ` Shannon Zhao
2016-01-04 14:51       ` Stefano Stabellini
2016-01-04 15:00         ` Mark Rutland
2016-01-04 15:14           ` Mark Rutland
2016-01-04 15:12       ` Mark Rutland
2015-11-17  9:40 ` [PATCH v3 21/62] arm/gic-v2: Refactor gicv2_init into generic and dt specific parts shannon.zhao at linaro.org
2015-11-23 15:40   ` Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 22/62] arm/gic-v3: Refactor gicv3_init " shannon.zhao at linaro.org
2015-11-24 10:51   ` [Xen-devel] " Stefano Stabellini
2015-11-30 15:01     ` Julien Grall
2015-11-17  9:40 ` [PATCH v3 23/62] acpi/table: Introduce acpi_parse_entries shannon.zhao at linaro.org
2015-11-23 16:56   ` Jan Beulich
2015-11-17  9:40 ` [PATCH v3 24/62] arm: Introduce a generic way to use a device from acpi shannon.zhao at linaro.org
2015-11-17 12:40   ` Julien Grall
2015-11-17 13:21     ` Shannon Zhao
2015-11-17 14:25       ` Julien Grall
2015-11-18  2:37         ` Shannon Zhao
2015-11-18 11:46           ` Julien Grall
2015-11-24 11:18   ` [Xen-devel] " Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 25/62] acpi/table: Introduce acpi_get_entry to get specified entry shannon.zhao at linaro.org
2015-11-23 16:59   ` Jan Beulich
2015-11-24  3:08     ` Shannon Zhao
2015-11-24  7:22       ` Jan Beulich
2015-11-24  7:48         ` Shannon Zhao
2015-11-24  8:04           ` Jan Beulich
2015-11-17  9:40 ` [PATCH v3 26/62] arm/gic-v2: Add ACPI boot support for GICv2 shannon.zhao at linaro.org
2015-11-24 11:54   ` [Xen-devel] " Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 27/62] arm/gic-v3: Add ACPI boot support for GICv3 shannon.zhao at linaro.org
2015-11-24 12:00   ` [Xen-devel] " Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 28/62] arm/gic: Add ACPI support for GIC preinit shannon.zhao at linaro.org
2015-11-26 12:10   ` Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 29/62] arm/acpi: Add GTDT support updated by ACPI 5.1 shannon.zhao at linaro.org
2015-11-26 12:14   ` [Xen-devel] " Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 30/62] arm/irq: Add helper function for setting interrupt type shannon.zhao at linaro.org
2015-11-26 12:20   ` Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 31/62] arm/acpi: Add a helper function to get " shannon.zhao at linaro.org
2015-11-18 12:16   ` [Xen-devel] " Julien Grall
2015-11-26 12:33   ` Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 32/62] arm/acpi: Parse GTDT to initialize timer shannon.zhao at linaro.org
2015-11-26 12:54   ` [Xen-devel] " Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 33/62] arm/uart: Create generic uart initialization function shannon.zhao at linaro.org
2015-11-17 11:49   ` Julien Grall
2015-11-17 12:34     ` Shannon Zhao
2015-11-17  9:40 ` [PATCH v3 34/62] pl011: Refactor pl011 driver to dt and common initialization parts shannon.zhao at linaro.org
2015-11-26 15:22   ` Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 35/62] serial: Rename SERHND_DTUART to SERHND_UART shannon.zhao at linaro.org
2015-11-26 15:32   ` [Xen-devel] " Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 36/62] arm/acpi: Initialize serial port from ACPI SPCR table shannon.zhao at linaro.org
2015-11-26 15:43   ` Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 37/62] arm/acpi: Define a enum for reserved tables shannon.zhao at linaro.org
2015-11-26 16:50   ` [Xen-devel] " Stefano Stabellini
2015-11-26 17:06     ` Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 38/62] arm/acpi: Add placeholder for efi and acpi load address shannon.zhao at linaro.org
2015-11-17 11:58   ` Julien Grall
2015-11-17 12:45     ` Shannon Zhao
2015-11-17 14:23       ` Julien Grall
2015-11-18  3:01         ` Shannon Zhao
2015-11-18 11:56           ` Julien Grall
2015-11-26 16:04             ` Stefano Stabellini
2015-11-30 15:10               ` Julien Grall
2015-11-26 16:02       ` Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 39/62] arm/acpi: Read acpi memory info from uefi shannon.zhao at linaro.org
2015-11-26 16:18   ` Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 40/62] arm/acpi: Estimate memory required for acpi/efi tables shannon.zhao at linaro.org
2015-11-26 16:39   ` Stefano Stabellini
2015-12-31  9:16     ` Shannon Zhao
2016-01-04 14:35       ` Stefano Stabellini
2015-11-30 15:14   ` [Xen-devel] " Julien Grall
2016-01-04  9:03     ` Shannon Zhao
2016-01-04 14:34       ` Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 41/62] arm/acpi: Add a helper function to get the acpi table offset shannon.zhao at linaro.org
2015-11-26 17:02   ` Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 42/62] arm/acpi: Prepare FADT table for Dom0 shannon.zhao at linaro.org
2015-11-26 17:19   ` [Xen-devel] " Stefano Stabellini
2015-11-27  9:50     ` Ian Campbell
2015-11-17  9:40 ` [PATCH v3 43/62] arm/acpi: Prepare MADT " shannon.zhao at linaro.org
2015-11-26 17:48   ` Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 44/62] ACPICA: ACPI 6.0: Add support for STAO table shannon.zhao at linaro.org
2015-11-27 11:15   ` Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 45/62] arm/acpi: Prepare STAO table for Dom0 shannon.zhao at linaro.org
2015-11-27 11:24   ` [Xen-devel] " Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 46/62] arm/acpi: Prepare XSDT " shannon.zhao at linaro.org
2015-11-27 11:58   ` [Xen-devel] " Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 47/62] arm/p2m: Add helper functions to map memory regions shannon.zhao at linaro.org
2015-11-27 12:04   ` Stefano Stabellini
2015-11-30 15:22     ` Julien Grall
2016-01-05  3:50       ` Shannon Zhao
2015-11-30 15:23   ` [Xen-devel] " Julien Grall
2015-11-17  9:40 ` [PATCH v3 48/62] arm/acpi: Prepare RSDP table for Dom0 shannon.zhao at linaro.org
2015-11-27 12:10   ` Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 49/62] arm/acpi: Map rest tables " shannon.zhao at linaro.org
2015-11-27 12:16   ` Stefano Stabellini
2015-11-30 15:25     ` Julien Grall
2015-11-17  9:40 ` [PATCH v3 50/62] xen/efi: store EFI system table in efi structure shannon.zhao at linaro.org
2015-11-17 11:07   ` Jan Beulich
2015-11-17 11:57   ` Julien Grall
2015-11-18  3:17     ` Shannon Zhao
2015-11-17  9:40 ` [PATCH v3 51/62] arm/acpi: Prepare EFI system table for Dom0 shannon.zhao at linaro.org
2015-11-17 12:02   ` Julien Grall
2015-11-18 12:09   ` [Xen-devel] " Julien Grall
2015-11-27 14:13   ` Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 52/62] arm/acpi: Prepare EFI memory descriptor " shannon.zhao at linaro.org
2015-11-27 14:30   ` Stefano Stabellini
2015-12-31  7:40     ` Shannon Zhao
2016-01-04 14:54       ` Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 53/62] arm/acpi: Map the new created EFI and ACPI tables to Dom0 shannon.zhao at linaro.org
2015-11-27 14:34   ` Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 54/62] arm/acpi: Create min DT stub for Dom0 shannon.zhao at linaro.org
2015-11-27 14:44   ` [Xen-devel] " Stefano Stabellini
2015-11-17  9:40 ` [PATCH v3 55/62] arm/acpi: Route all Xen unused SPIs to Dom0 shannon.zhao at linaro.org
2015-11-17 12:33   ` Julien Grall
2015-11-27 15:04   ` Stefano Stabellini
2015-11-30 15:41     ` [Xen-devel] " Julien Grall
2015-11-17  9:40 ` [PATCH v3 56/62] arm/acpi: Deny MMIO access of UART shannon.zhao at linaro.org
2015-11-17 12:04   ` Julien Grall
2015-11-17 13:10     ` Shannon Zhao
2015-11-27 14:50       ` Stefano Stabellini
2015-11-30 15:30       ` Julien Grall
2015-11-17  9:40 ` [PATCH v3 57/62] hvm/params: Add a new dilivery type for event-channel in HVM_PARAM_CALLBACK_IRQ shannon.zhao at linaro.org
2015-11-24  7:35   ` Jan Beulich
2015-11-17  9:40 ` [PATCH v3 58/62] xen/acpi: Fix event-channel interrupt when booting with ACPI shannon.zhao at linaro.org
2015-11-27 15:12   ` Stefano Stabellini
2015-11-30 15:30     ` Julien Grall
2015-11-17  9:40 ` [PATCH v3 59/62] xen/arm: Add a hypercall for device mmio mapping shannon.zhao at linaro.org
2015-11-17 11:04   ` Jan Beulich
2016-01-07  6:58     ` Shannon Zhao
2016-01-07  7:45       ` Jan Beulich
2016-01-07  9:11         ` Shannon Zhao
2016-01-07 10:50           ` Jan Beulich
2016-01-07 21:40             ` Daniel De Graaf
2016-01-08  2:12               ` Shannon Zhao
2015-11-17  9:40 ` [PATCH v3 60/62] arm/acpi: Configure interrupts dynamically shannon.zhao at linaro.org
2015-11-27 16:13   ` Stefano Stabellini
2015-11-27 16:19     ` Stefano Stabellini
2015-11-30 15:42   ` [Xen-devel] " Julien Grall
2016-01-05 11:51     ` Shannon Zhao
2016-01-05 14:18       ` Stefano Stabellini
2015-11-17  9:41 ` [PATCH v3 61/62] arm/acpi: Add acpi parameter to enable/disable acpi shannon.zhao at linaro.org
2015-11-17 12:26   ` Julien Grall [this message]
2015-11-17 12:57     ` Shannon Zhao
2015-11-17 14:32       ` Julien Grall
2015-11-17  9:41 ` [PATCH v3 62/62] xen/arm64: Add ACPI support shannon.zhao at linaro.org
2015-11-27 15:16   ` [Xen-devel] " Stefano Stabellini
2015-11-30 15:44   ` Julien Grall
2015-11-17 10:59 ` [PATCH v3 00/62] Add ACPI support for arm64 on Xen Jan Beulich
2015-11-17 11:10   ` David Vrabel
2015-11-17 13:02     ` Shannon Zhao
2015-11-17 11:52 ` Julien Grall
2015-11-18  8:03   ` Shannon Zhao
2015-11-18 12:18     ` Julien Grall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=564B1CEE.9030008@citrix.com \
    --to=julien.grall@citrix$(echo .)com \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox