Re: [Xen-devel] [PATCH v2 32/41] arm : acpi dynamically map mmio regions

2015-07-30 Thread Parth Dixit
On 31 July 2015 at 00:01, Julien Grall wrote: > Hi, > > On 30/07/15 19:02, Parth Dixit wrote: >> instead of getting mmio information for individual >> devices from dsdt, we will map all the non-ram regions described in >> uefi. AML interpreter optio

Re: [Xen-devel] [PATCH v2 32/41] arm : acpi dynamically map mmio regions

2015-07-30 Thread Parth Dixit
wiki for the reasoning behind it. regards parth On 30 July 2015 at 17:49, Shannon Zhao wrote: > > > On 2015/7/5 21:30, Parth Dixit wrote: >> +shannon >> >> On 15 June 2015 at 06:49, Julien Grall wrote: >>> Hi Parth, >>> >>> On 14/06/2015 11:27

Re: [Xen-devel] [PATCH v2 01/41] arm/acpi: Build numa for x86 only

2015-07-05 Thread Parth Dixit
On 5 July 2015 at 23:09, Julien Grall wrote: > Hi, > > On 05/07/2015 13:59, Parth Dixit wrote: >> >> +shannon > > > I've just received ~50 mails "+shannon". Couldn't you have forward all the > email privately rather replying to every single m

Re: [Xen-devel] [PATCH v2 41/41] arm : acpi route irq's at time of boot

2015-07-05 Thread Parth Dixit
+shannon On 8 June 2015 at 23:14, Julien Grall wrote: > Hi, > > On 17/05/2015 21:04, Parth Dixit wrote: >> >> NOTE: This is a wrokaround to be fixed later. > > > How do you plan to fix it? > >> Route all the irq's to Dom0 at the time of booting. >

Re: [Xen-devel] [PATCH v2 40/41] xen: arm64: Add ACPI support

2015-07-05 Thread Parth Dixit
+shannon On 18 May 2015 at 01:34, Parth Dixit wrote: > From: Naresh Bhat > > Add ACPI support on arm64 xen hypervisor. > > Signed-off-by: Naresh Bhat > --- > config/arm64.mk | 1 + > xen/include/asm-arm/config.h | 5 + > 2 files changed, 6 ins

Re: [Xen-devel] [PATCH v2 39/41] arm : acpi configure interrupts dynamically

2015-07-05 Thread Parth Dixit
+shannon On 8 June 2015 at 23:09, Julien Grall wrote: > Hi Parth, > > On 17/05/2015 21:04, Parth Dixit wrote: >> >> Interrupt information is described in DSDT and is not available at >> the time of booting. Configure the interrupts dynamically when requested >> b

Re: [Xen-devel] [PATCH v2 38/41] arm : acpi enable efi for acpi

2015-07-05 Thread Parth Dixit
+shannon On 20 May 2015 at 21:57, Jan Beulich wrote: On 17.05.15 at 22:04, wrote: >> @@ -104,6 +105,7 @@ static void __init parse_acpi_param(char *s) >> else if ( !strcmp(s, "force") ) >> { >> acpi_disabled = 0; >> +efi_enabled = 1; > > What has "acpi=force" to do

Re: [Xen-devel] [PATCH v2 36/41] arm : acpi pass rsdp and memory via efi table

2015-07-05 Thread Parth Dixit
+shannon On 18 May 2015 at 01:34, Parth Dixit wrote: > Create EFI table and populate it with DOM0 memory and address > of RSDP. Fix device tree with correct addresses of EFI table > and start of memory descriptor address. > > Signed-off-by: Parth Dixit > --- > xen/arch/arm

Re: [Xen-devel] [PATCH v2 35/41] arm : acpi add helper function to calculate crc32

2015-07-05 Thread Parth Dixit
+shannon On 8 June 2015 at 22:29, Julien Grall wrote: > Hi, > > On 17/05/2015 21:04, Parth Dixit wrote: >> >> Add helper functions for calculating crc32. >> This is required for computing crc of efi table. >> These functions are copied from here >> http://m

Re: [Xen-devel] [PATCH v2 34/41] arm : acpi create and map acpi tables

2015-07-05 Thread Parth Dixit
+shannon On 18 May 2015 at 01:34, Parth Dixit wrote: > XSDT table cannot be passed as is to DOM0 because xen creates additional > tables which have to be added to XSDT table entry. > Copy existing XSDT and modify table to add new entries. > Create status override table,xen envir

Re: [Xen-devel] [PATCH v2 33/41] arm : acpi prepare acpi tables for dom0

2015-07-05 Thread Parth Dixit
+shannon On 8 June 2015 at 22:24, Julien Grall wrote: > > > On 17/05/2015 21:04, Parth Dixit wrote: >> >> Map acpi tables described in uefi table to DOM0 address space >> >> Signed-off-by: Parth Dixit >> --

Re: [Xen-devel] [PATCH v2 32/41] arm : acpi dynamically map mmio regions

2015-07-05 Thread Parth Dixit
+shannon On 15 June 2015 at 06:49, Julien Grall wrote: > Hi Parth, > > On 14/06/2015 11:27, Parth Dixit wrote: >> >> On 8 June 2015 at 22:20, Julien Grall wrote: >>> >>> Hi Parth, >>> >>> On 17/05/2015 21:03, Parth Dixit wrote: >&g

Re: [Xen-devel] [PATCH v2 31/41] arm : acpi estimate memory required for acpi/efi tables

2015-07-05 Thread Parth Dixit
+shannon On 8 June 2015 at 22:14, Julien Grall wrote: > Hi Parth, > > I think it misses a ":" between acpi and estimate. > > On 17/05/2015 21:03, Parth Dixit wrote: >> >> Estimate the memory required for loading acpi/efi tablee >> in DOM0. Initialize

Re: [Xen-devel] [PATCH v2 30/41] arm : acpi add placeholder for acpi load address

2015-07-05 Thread Parth Dixit
+shannon On 8 June 2015 at 21:49, Julien Grall wrote: > Hi Parth, > > On 17/05/2015 21:03, Parth Dixit wrote: >> >> EFI table, memory description table and some of acpi tables >> will reside in DOM0 memory. Add placeholder for starting >> address for loading in D

Re: [Xen-devel] [PATCH v2 29/41] arm : acpi read acpi memory info from uefi

2015-07-05 Thread Parth Dixit
+shannon On 8 June 2015 at 21:39, Julien Grall wrote: > Hi Parth, > > On 17/05/2015 21:03, Parth Dixit wrote: >> >> ACPI memory is seperate from conventional memory and should > > > s/seperate/separate/ > >> be marked as reserved while passing to DOM0. Cre

Re: [Xen-devel] [PATCH v2 28/41] arm : acpi add efi structures to common efi header

2015-07-05 Thread Parth Dixit
+shannon On 20 May 2015 at 21:55, Jan Beulich wrote: On 17.05.15 at 22:03, wrote: >> add efi table and memory descriptor structures >> to common efi header file and pass efi system table address >> retrieved from uefi.This is required for >> creating efi table and passing memory information

Re: [Xen-devel] [PATCH v2 27/41] arm : add helper functions to map memory regions

2015-07-05 Thread Parth Dixit
+shannon On 8 June 2015 at 19:35, Julien Grall wrote: > Hi Parth, > > On 17/05/2015 21:03, Parth Dixit wrote: >> >> creates a helper function for mapping with cached attributes >> >> Signed-off-by: Parth Dixit >> --- >> xen/arch/arm/p2m.c

Re: [Xen-devel] [PATCH v2 26/41] arm : acpi add xen environment table

2015-07-05 Thread Parth Dixit
+shannon On 29 May 2015 at 16:13, Jan Beulich wrote: On 29.05.15 at 12:31, wrote: >> On Thu, 28 May 2015, Jan Beulich wrote: >>> >>> On 28.05.15 at 14:12, wrote: >>> > Could you please make a concrete suggestion with table names and fields? >>> >>> I already pointed you at 6.0's new FADT f

Re: [Xen-devel] [PATCH v2 25/41] arm : acpi add status override table

2015-07-05 Thread Parth Dixit
+shannon On 18 May 2015 at 01:33, Parth Dixit wrote: > Status override table is used to hide devices from DOM0 > that are used by xen > > Signed-off-by: Parth Dixit > --- > xen/include/acpi/actbl2.h | 14 ++ > 1 file changed, 14 insertions(+) > > di

Re: [Xen-devel] [PATCH v2 24/41] arm : acpi create efi node for DOM0

2015-07-05 Thread Parth Dixit
+shannon On 26 May 2015 at 13:51, Jan Beulich wrote: On 24.05.15 at 08:30, wrote: >> On 20 May 2015 at 21:46, Jan Beulich wrote: >> >>> >>> On 17.05.15 at 22:03, wrote: >>> > --- a/xen/include/xen/efi.h >>> > +++ b/xen/include/xen/efi.h >>> > @@ -8,7 +8,7 @@ >>> > extern const bool_t efi

Re: [Xen-devel] [PATCH v2 23/41] arm : acpi create chosen node for DOM0

2015-07-05 Thread Parth Dixit
+shannon On 2 June 2015 at 23:10, Julien Grall wrote: > Hi Parth, > > On 17/05/15 21:03, Parth Dixit wrote: >> Create a chosen node for DOM0 with >> - bootargs >> - initrd > > I would have merge this patch with #22. It doesn't contain > controversial/d

Re: [Xen-devel] [PATCH v2 22/41] arm : acpi create min DT stub for DOM0

2015-07-05 Thread Parth Dixit
+shannon On 2 June 2015 at 22:57, Julien Grall wrote: > Hi Parth, > > On 17/05/15 21:03, Parth Dixit wrote: >> Create a DT for DOM0 for ACPI-case only. >> DT contains minmal required informations such as > > s/minmal/minimal/ > >> DOM0 bootargs, initrd, efi

Re: [Xen-devel] [PATCH v2 21/41] arm : acpi Initialize serial port from ACPI SPCR table

2015-07-05 Thread Parth Dixit
+shannon On 26 May 2015 at 20:34, Julien Grall wrote: > Hi Parth, > > On 17/05/2015 22:03, Parth Dixit wrote: >> >> @@ -307,6 +308,54 @@ DT_DEVICE_START(pl011, "PL011 UART", DEVICE_SERIAL) >> .init = dt_pl011_uart_init, >> DT_DEVICE_END >

Re: [Xen-devel] [PATCH v2 20/41] arm : create generic uart initialization function

2015-07-05 Thread Parth Dixit
+shannon On 24 May 2015 at 13:18, Julien Grall wrote: > > On 24/05/2015 08:07, Parth Dixit wrote: >> >> >> >> On 21 May 2015 at 16:58, Julien Grall > <mailto:julien.gr...@citrix.com>> wrote: >> >> Hi Parth, >> >> On 1

Re: [Xen-devel] [PATCH v2 19/41] arm : acpi Add GIC specific ACPI boot support

2015-07-05 Thread Parth Dixit
+shannon On 21 May 2015 at 17:59, Julien Grall wrote: > Hi Parth, > > On 17/05/15 21:03, Parth Dixit wrote: >> ACPI on Xen hypervisor uses MADT table for proper GIC initialization. >> It needs to parse GIC related subtables, collect CPU interface and >> distributor &

Re: [Xen-devel] [PATCH v2 18/41] arm: Introduce a generic way to use a device from acpi

2015-07-05 Thread Parth Dixit
+shannon On 25 May 2015 at 17:08, Parth Dixit wrote: > On 25 May 2015 at 15:30, Julien Grall wrote: >> Hi Parth, >> >> On 25/05/2015 07:58, Parth Dixit wrote: >>> >>> On 24 May 2015 at 13:10, Julien Grall wrote: >>&

Re: [Xen-devel] [PATCH v2 17/41] arm : refactor gic into generic and dt specific parts

2015-07-05 Thread Parth Dixit
+shannon On 21 May 2015 at 17:52, Julien Grall wrote: > On 17/05/15 21:03, Parth Dixit wrote: >> refactor gic related functions into dt and generic parts >> this will be helpful when adding acpi support for gic >> >> Signed-off-by: Parth Dixit >> -

Re: [Xen-devel] [PATCH v2 16/41] acpi : Introduce acpi_parse_entries

2015-07-05 Thread Parth Dixit
+shannon On 21 May 2015 at 14:50, Jan Beulich wrote: On 21.05.15 at 11:14, wrote: >> On 20 May 2015 at 21:43, Jan Beulich wrote: >> >>> >>> On 17.05.15 at 22:03, wrote: >>> > add new function acpi_parse_entries which takes >>> > acpi table as argument. This will avoid fetching table >>> >

Re: [Xen-devel] [PATCH v2 15/41] arm : acpi parse GTDT to initialize timer

2015-07-05 Thread Parth Dixit
+shannon On 24 May 2015 at 12:30, Parth Dixit wrote: > > > On 20 May 2015 at 23:33, Julien Grall wrote: >> >> Hi Parth, >> >> On 17/05/15 21:03, Parth Dixit wrote: >> > Parse GTDT (Generic Timer Descriptor Table) to initialize timer. >> > Us

Re: [Xen-devel] [PATCH v2 13/41] arm/acpi : parse MADT to map logical cpu to MPIDR and get cpu_possible_map

2015-07-05 Thread Parth Dixit
+shannon On 20 May 2015 at 22:08, Julien Grall wrote: > Hi Parth, > > On 17/05/15 21:03, Parth Dixit wrote: >> MADT contains the information for MPIDR which is essential for >> SMP initialization, parse the GIC cpu interface structures to >> get the MPIDR value an

Re: [Xen-devel] [PATCH v2 14/41] arm : acpi add helper function for setting interrupt type

2015-07-05 Thread Parth Dixit
+shannon On 20 May 2015 at 22:51, Julien Grall wrote: > Hi, > > On 17/05/15 21:03, Parth Dixit wrote: >> set edge/level type information for an interrupt >> >> Signed-off-by: Parth Dixit >> --- >> xen/arch/arm/irq.c | 17 ++

Re: [Xen-devel] [PATCH v2 12/41] arm : move dt specific code in smp to seperate functions

2015-07-05 Thread Parth Dixit
+shannon On 20 May 2015 at 21:13, Julien Grall wrote: > Hi Parth, > > On 17/05/15 21:03, Parth Dixit wrote: >> +void __init smp_init_cpus(void) >> +{ >> +int rc; > > Missing blank line here. > >> +/* initialize PSCI and set a global variable */

Re: [Xen-devel] [PATCH v2 11/41] arm/acpi : add GTDT support updated by ACPI 5.1

2015-07-05 Thread Parth Dixit
+shannon On 24 May 2015 at 11:36, Parth Dixit wrote: > > > On 18 May 2015 at 20:41, Julien Grall wrote: >> >> Hi Parth, >> >> On 17/05/15 21:03, Parth Dixit wrote: >> > With ACPI 5.0, we got per-processor timer support in GTDT, >> > and A

Re: [Xen-devel] [PATCH v2 10/41] arm/acpi : Print GIC information when MADT is parsed

2015-07-05 Thread Parth Dixit
+shannon On 24 May 2015 at 11:39, Parth Dixit wrote: > > > On 18 May 2015 at 20:36, Julien Grall wrote: >> >> Hi Parth, >> >> On 17/05/15 21:03, Parth Dixit wrote: >> > From: Naresh Bhat >> > >> > When MADT is parsed,

Re: [Xen-devel] [PATCH v2 09/41] arm/acpi : Add Generic Interrupt and Distributor struct

2015-07-05 Thread Parth Dixit
+shannon On 18 May 2015 at 01:33, Parth Dixit wrote: > Add Generic Interrupt and Distributor (ACPI 5.0) structure. > Add new features for MADT introduced by ACPI 5.1. > Comment on the GIC ID field of the GIC structure which is replaced > by CPU Interface Number. > Add new fields

Re: [Xen-devel] [PATCH v2 08/41] arm/acpi : Parse FADT table and get PSCI flags

2015-07-05 Thread Parth Dixit
+shannon On 24 May 2015 at 11:35, Parth Dixit wrote: > > > On 18 May 2015 at 20:28, Julien Grall wrote: >> >> Hi Parth, >> >> On 17/05/15 21:03, Parth Dixit wrote: >> > There are two flags: PSCI_COMPLIANT and PSCI_USE_HVC. When set, >> > the

Re: [Xen-devel] [PATCH v2 07/41] arm/acpi : Introduce ARM Boot Architecture Flags in FADT

2015-07-05 Thread Parth Dixit
+shannon On 24 May 2015 at 11:33, Parth Dixit wrote: > > > On 18 May 2015 at 19:59, Julien Grall wrote: >> >> Hi Parth, >> >> On 17/05/15 21:03, Parth Dixit wrote: >> > The Power State Coordination Interface (PSCI) defines an API that >> >

Re: [Xen-devel] [PATCH v2 06/41] arm/acpi : Add basic ACPI initialization

2015-07-05 Thread Parth Dixit
+shannon On 24 May 2015 at 11:32, Parth Dixit wrote: > > > On 18 May 2015 at 19:41, Julien Grall wrote: >> >> Hi Parth, >> >> On 17/05/15 21:03, Parth Dixit wrote: >> > acpi_boot_table_init() will be called in start_xen >> > to get the RSDP a

Re: [Xen-devel] [PATCH v2 05/41] acpi : add helper function for mapping memory

2015-07-05 Thread Parth Dixit
+shannon On 24 May 2015 at 13:01, Julien Grall wrote: > Hi Parth, > > On 24/05/2015 07:40, Parth Dixit wrote: >> >> On 17/05/15 21:03, Parth Dixit wrote: >> > diff --git a/xen/arch/arm/Makefile b/xen/arch/arm/Makefile >> > index 935999e..096e

Re: [Xen-devel] [PATCH v2 04/41] arm/acpi : add arm specific acpi header file

2015-07-05 Thread Parth Dixit
+shannon On 24 May 2015 at 11:29, Parth Dixit wrote: > > > On 18 May 2015 at 18:42, Julien Grall wrote: >> >> Hi Parth, >> >> On 17/05/15 21:03, Parth Dixit wrote: >> > +#ifndef _ASM_ARM64_ACPI_H >> > +#define _ASM_ARM64_ACPI_H >> >>

Re: [Xen-devel] [PATCH v2 02/41] arm/acpi: Build pmstat for x86 only

2015-07-05 Thread Parth Dixit
+shannon On 24 May 2015 at 11:40, Parth Dixit wrote: > > > On 20 May 2015 at 20:42, Jan Beulich wrote: >> >> >>> On 17.05.15 at 22:03, wrote: >> > Pmstat is currently not supported for arm in xen. >> > Configure and build pmstat for x86 architect

Re: [Xen-devel] [PATCH v2 03/41] arm/acpi : emulate io ports for arm

2015-07-05 Thread Parth Dixit
+shannon On 18 May 2015 at 18:33, Julien Grall wrote: > Hi Parth, > > On 17/05/15 21:03, Parth Dixit wrote: >> add macros to emulate x86 style ports for arm. >> This avoids modification in common code for acpi. > > This patch looks wrong to me. On ARM ioport a

Re: [Xen-devel] [PATCH v2 01/41] arm/acpi: Build numa for x86 only

2015-07-05 Thread Parth Dixit
+shannon On 20 May 2015 at 22:01, Jan Beulich wrote: On 20.05.15 at 17:49, wrote: >> What about defining a new define HAVE_NUMA? > > That might be an acceptable compromise. > > Jan > ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists

Re: [Xen-devel] [PATCH v2 32/41] arm : acpi dynamically map mmio regions

2015-06-14 Thread Parth Dixit
On 8 June 2015 at 22:20, Julien Grall wrote: > Hi Parth, > > On 17/05/2015 21:03, Parth Dixit wrote: >> >> In ACPI mmio regions are described in DSDT which requires >> AML interpreter. Defer the mapping of mmio until DSDT is parsed in >> DOM0 and map mmio

Re: [Xen-devel] [edk2] MMIO regions in GetMemoryMap ()0 (fwd)

2015-06-13 Thread Parth Dixit
+xen dev list On 24 February 2015 at 20:25, Stefano Stabellini wrote: > On Fri, 13 Feb 2015, Julien Grall wrote: >> On 13/02/2015 11:44, Ard Biesheuvel wrote: >> > On 13 February 2015 at 11:12, Julien Grall wrote: >> > > >> > > >> > > On 13/02/2015 10:29, Stefano Stabellini wrote: >> > > > >> >

Re: [Xen-devel] [PATCH v2 18/41] arm: Introduce a generic way to use a device from acpi

2015-05-25 Thread Parth Dixit
On 25 May 2015 at 15:30, Julien Grall wrote: > Hi Parth, > > On 25/05/2015 07:58, Parth Dixit wrote: >> >> On 24 May 2015 at 13:10, Julien Grall wrote: >>> >>> On 24/05/2015 08:06, Parth Dixit wrote: >>>> >>>> >>&

Re: [Xen-devel] [PATCH v2 18/41] arm: Introduce a generic way to use a device from acpi

2015-05-24 Thread Parth Dixit
On 24 May 2015 at 13:10, Julien Grall wrote: > Hi Parth, > > > On 24/05/2015 08:06, Parth Dixit wrote: >> >> > +struct acpi_device_desc { >> > +/* Device name */ >> > +const char *name; >> > +/*

Re: [Xen-devel] [PATCH v2 26/41] arm : acpi add xen environment table

2015-05-24 Thread Parth Dixit
On 21 May 2015 at 17:11, Julien Grall wrote: > On 21/05/15 12:38, Jan Beulich wrote: > On 21.05.15 at 12:52, wrote: > >> On 21/05/15 11:46, Jan Beulich wrote: > >> On 21.05.15 at 12:34, wrote: > On 21/05/15 07:22, Jan Beulich wrote: > > The linked to document (on our wiki) is

Re: [Xen-devel] [PATCH v2 20/41] arm : create generic uart initialization function

2015-05-24 Thread Parth Dixit
On 21 May 2015 at 16:58, Julien Grall wrote: > Hi Parth, > > On 17/05/15 21:03, Parth Dixit wrote: > > Rename dt-uart.c to arm-uart.c and create new generic uart init function. > > move dt_uart_init to uart_init.Refactor pl011 driver to dt and common > > initialization

Re: [Xen-devel] [PATCH v2 18/41] arm: Introduce a generic way to use a device from acpi

2015-05-24 Thread Parth Dixit
On 21 May 2015 at 16:49, Julien Grall wrote: > Hi Parth, > > On 17/05/15 21:03, Parth Dixit wrote: > > add generic way to use device from acpi similar to > > the way it is supported in device tree. > > > > Signed-off-by: Parth Dixit > > ---

Re: [Xen-devel] [PATCH v2 15/41] arm : acpi parse GTDT to initialize timer

2015-05-24 Thread Parth Dixit
On 20 May 2015 at 23:33, Julien Grall wrote: > Hi Parth, > > On 17/05/15 21:03, Parth Dixit wrote: > > Parse GTDT (Generic Timer Descriptor Table) to initialize timer. > > Using the information presented by GTDT to initialize the arch > > timer (not memory-mapped). &

Re: [Xen-devel] [PATCH v2 05/41] acpi : add helper function for mapping memory

2015-05-23 Thread Parth Dixit
On 18 May 2015 at 18:56, Julien Grall wrote: > Hi Parth, > > On 17/05/15 21:03, Parth Dixit wrote: > > diff --git a/xen/arch/arm/Makefile b/xen/arch/arm/Makefile > > index 935999e..096e9ef 100644 > > --- a/xen/arch/arm/Makefile > > +++ b/xen/arch/arm/Makefile &

Re: [Xen-devel] [PATCH v2 24/41] arm : acpi create efi node for DOM0

2015-05-23 Thread Parth Dixit
On 20 May 2015 at 21:46, Jan Beulich wrote: > >>> On 17.05.15 at 22:03, wrote: > > --- a/xen/include/xen/efi.h > > +++ b/xen/include/xen/efi.h > > @@ -8,7 +8,7 @@ > > extern const bool_t efi_enabled; > > > > #define EFI_INVALID_TABLE_ADDR (~0UL) > > - > > +#define EFI_MEM_DESC_V1 1 > > /* Add

Re: [Xen-devel] [PATCH v2 02/41] arm/acpi: Build pmstat for x86 only

2015-05-23 Thread Parth Dixit
On 20 May 2015 at 20:42, Jan Beulich wrote: > >>> On 17.05.15 at 22:03, wrote: > > Pmstat is currently not supported for arm in xen. > > Configure and build pmstat for x86 architecture only. > > Same here as for patch 1. If the architecture can be expected to > eventually support a feature, I'd

Re: [Xen-devel] [PATCH v2 10/41] arm/acpi : Print GIC information when MADT is parsed

2015-05-23 Thread Parth Dixit
On 18 May 2015 at 20:36, Julien Grall wrote: > Hi Parth, > > On 17/05/15 21:03, Parth Dixit wrote: > > From: Naresh Bhat > > > > When MADT is parsed, print GIC information to make the boot > > log look pretty. > > > > Signed-off-by: Hanjun Guo >

Re: [Xen-devel] [PATCH v2 11/41] arm/acpi : add GTDT support updated by ACPI 5.1

2015-05-23 Thread Parth Dixit
On 18 May 2015 at 20:41, Julien Grall wrote: > Hi Parth, > > On 17/05/15 21:03, Parth Dixit wrote: > > With ACPI 5.0, we got per-processor timer support in GTDT, > > and ACPI 5.1 introduced the support for platform (memory-mapped) > > timers: GT Block and SBSA watchdog

Re: [Xen-devel] [PATCH v2 08/41] arm/acpi : Parse FADT table and get PSCI flags

2015-05-23 Thread Parth Dixit
On 18 May 2015 at 20:28, Julien Grall wrote: > Hi Parth, > > On 17/05/15 21:03, Parth Dixit wrote: > > There are two flags: PSCI_COMPLIANT and PSCI_USE_HVC. When set, > > the former signals to the OS that the hardware is PSCI compliant. > > The latter selects the a

Re: [Xen-devel] [PATCH v2 07/41] arm/acpi : Introduce ARM Boot Architecture Flags in FADT

2015-05-23 Thread Parth Dixit
On 18 May 2015 at 19:59, Julien Grall wrote: > Hi Parth, > > On 17/05/15 21:03, Parth Dixit wrote: > > The Power State Coordination Interface (PSCI) defines an API that > > can be used to coordinate power control amongst the various supervisory > > systems concurrentl

Re: [Xen-devel] [PATCH v2 06/41] arm/acpi : Add basic ACPI initialization

2015-05-23 Thread Parth Dixit
On 18 May 2015 at 19:41, Julien Grall wrote: > Hi Parth, > > On 17/05/15 21:03, Parth Dixit wrote: > > acpi_boot_table_init() will be called in start_xen > > to get the RSDP and all the table pointers. with this patch, > > we can get ACPI boot-time tables from firmwa

Re: [Xen-devel] [PATCH v2 04/41] arm/acpi : add arm specific acpi header file

2015-05-23 Thread Parth Dixit
On 18 May 2015 at 18:42, Julien Grall wrote: > Hi Parth, > > On 17/05/15 21:03, Parth Dixit wrote: > > +#ifndef _ASM_ARM64_ACPI_H > > +#define _ASM_ARM64_ACPI_H > > s/_ASM_ARM64_ACPI_H/_ASM_ARM_ACPI_H/ > > > + > > +#include > > + > > +#de

Re: [Xen-devel] [PATCH v2 16/41] acpi : Introduce acpi_parse_entries

2015-05-21 Thread Parth Dixit
On 20 May 2015 at 21:43, Jan Beulich wrote: > >>> On 17.05.15 at 22:03, wrote: > > add new function acpi_parse_entries which takes > > acpi table as argument. This will avoid fetching table > > everytime in acpi_table_parse_entries. > > This explanation doesn't make a lot of sense to me - I don'

Re: [Xen-devel] [PATCH v2 00/41] Add ACPI support for arm64 on Xen

2015-05-18 Thread Parth Dixit
On 18 May 2015 at 13:55, Jan Beulich wrote: > >>> On 17.05.15 at 22:03, wrote: > > Naresh Bhat (3): > > arm/acpi: Build numa for x86 only > > arm/acpi : Print GIC information when MADT is parsed > > xen: arm64: Add ACPI support > > > > Pa

[Xen-devel] [PATCH v2 38/41] arm : acpi enable efi for acpi

2015-05-17 Thread Parth Dixit
efi should be enabled to fetch the root pointer from uefi Signed-off-by: Parth Dixit --- xen/arch/arm/setup.c | 2 ++ xen/common/efi/runtime.c | 2 +- xen/include/xen/efi.h| 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c

[Xen-devel] [PATCH v2 39/41] arm : acpi configure interrupts dynamically

2015-05-17 Thread Parth Dixit
Interrupt information is described in DSDT and is not available at the time of booting. Configure the interrupts dynamically when requested by Dom0 Signed-off-by: Parth Dixit --- xen/arch/arm/vgic.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/xen/arch/arm/vgic.c b

[Xen-devel] [PATCH v2 37/41] arm : acpi add acpi parameter to enable/disable acpi

2015-05-17 Thread Parth Dixit
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 1b2d74

[Xen-devel] [PATCH v2 40/41] xen: arm64: Add ACPI support

2015-05-17 Thread Parth Dixit
From: Naresh Bhat Add ACPI support on arm64 xen hypervisor. Signed-off-by: Naresh Bhat --- config/arm64.mk | 1 + xen/include/asm-arm/config.h | 5 + 2 files changed, 6 insertions(+) diff --git a/config/arm64.mk b/config/arm64.mk index e24c1d1..bce9107 100644 --- a/config/arm

[Xen-devel] [PATCH v2 41/41] arm : acpi route irq's at time of boot

2015-05-17 Thread Parth Dixit
NOTE: This is a wrokaround to be fixed later. Route all the irq's to Dom0 at the time of booting. Trigger and polarity will be set dyanmaically when Dom0 request's for it. Signed-off-by: Parth Dixit --- xen/arch/arm/domain_build.c | 20 1 file changed, 20

[Xen-devel] [PATCH v2 36/41] arm : acpi pass rsdp and memory via efi table

2015-05-17 Thread Parth Dixit
Create EFI table and populate it with DOM0 memory and address of RSDP. Fix device tree with correct addresses of EFI table and start of memory descriptor address. Signed-off-by: Parth Dixit --- xen/arch/arm/domain_build.c | 106 1 file changed, 106

[Xen-devel] [PATCH v2 30/41] arm : acpi add placeholder for acpi load address

2015-05-17 Thread Parth Dixit
EFI table, memory description table and some of acpi tables will reside in DOM0 memory. Add placeholder for starting address for loading in DOM0 and get/set acpi size helpers. Signed-off-by: Parth Dixit --- xen/arch/arm/acpi/lib.c| 12 xen/arch/arm/kernel.c | 5 - xen

[Xen-devel] [PATCH v2 29/41] arm : acpi read acpi memory info from uefi

2015-05-17 Thread Parth Dixit
ACPI memory is seperate from conventional memory and should be marked as reserved while passing to DOM0. Create a new meminfo structure to store all the acpi tables listed in uefi. Signed-off-by: Parth Dixit --- xen/arch/arm/domain_build.c | 2 ++ xen/arch/arm/efi/efi-boot.h | 20

[Xen-devel] [PATCH v2 34/41] arm : acpi create and map acpi tables

2015-05-17 Thread Parth Dixit
XSDT table cannot be passed as is to DOM0 because xen creates additional tables which have to be added to XSDT table entry. Copy existing XSDT and modify table to add new entries. Create status override table,xen environment table. Copy the tables to DOM0 memory. Signed-off-by: Parth Dixit

[Xen-devel] [PATCH v2 33/41] arm : acpi prepare acpi tables for dom0

2015-05-17 Thread Parth Dixit
Map acpi tables described in uefi table to DOM0 address space Signed-off-by: Parth Dixit --- xen/arch/arm/domain_build.c | 59 - 1 file changed, 58 insertions(+), 1 deletion(-) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c

[Xen-devel] [PATCH v2 24/41] arm : acpi create efi node for DOM0

2015-05-17 Thread Parth Dixit
later Signed-off-by: Parth Dixit --- xen/arch/arm/domain_build.c | 50 + xen/include/xen/efi.h | 11 +- 2 files changed, 60 insertions(+), 1 deletion(-) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index e688a78

[Xen-devel] [PATCH v2 25/41] arm : acpi add status override table

2015-05-17 Thread Parth Dixit
Status override table is used to hide devices from DOM0 that are used by xen Signed-off-by: Parth Dixit --- xen/include/acpi/actbl2.h | 14 ++ 1 file changed, 14 insertions(+) diff --git a/xen/include/acpi/actbl2.h b/xen/include/acpi/actbl2.h index 25be429..9c8d807 100644 --- a/xen

[Xen-devel] [PATCH v2 27/41] arm : add helper functions to map memory regions

2015-05-17 Thread Parth Dixit
creates a helper function for mapping with cached attributes Signed-off-by: Parth Dixit --- xen/arch/arm/p2m.c| 26 ++ xen/include/asm-arm/p2m.h | 10 ++ 2 files changed, 36 insertions(+) diff --git a/xen/arch/arm/p2m.c b/xen/arch/arm/p2m.c index 903fa3f

[Xen-devel] [PATCH v2 35/41] arm : acpi add helper function to calculate crc32

2015-05-17 Thread Parth Dixit
Add helper functions for calculating crc32. This is required for computing crc of efi table. These functions are copied from here http://mirrors.neusoft.edu.cn/rpi-kernel/lib/xz/xz_crc32.c Original author's are Lasse Collin and Igor Pavlov. Signed-off-by: Parth Dixit --- xen/arc

[Xen-devel] [PATCH v2 26/41] arm : acpi add xen environment table

2015-05-17 Thread Parth Dixit
Xen environment table is ACPI table that is used to pass grant table and event channel interrupt information to dom0. Signed-off-by: Parth Dixit --- xen/include/acpi/actbl2.h | 20 1 file changed, 20 insertions(+) diff --git a/xen/include/acpi/actbl2.h b/xen/include/acpi

[Xen-devel] [PATCH v2 32/41] arm : acpi dynamically map mmio regions

2015-05-17 Thread Parth Dixit
In ACPI mmio regions are described in DSDT which requires AML interpreter. Defer the mapping of mmio until DSDT is parsed in DOM0 and map mmio's dynamically at the time of request. Signed-off-by: Parth Dixit --- xen/arch/arm/traps.c | 51 +

[Xen-devel] [PATCH v2 31/41] arm : acpi estimate memory required for acpi/efi tables

2015-05-17 Thread Parth Dixit
Estimate the memory required for loading acpi/efi tablee in DOM0. Initialize the size of acpi/efi tables. Signed-off-by: Parth Dixit --- xen/arch/arm/domain_build.c | 54 - 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/xen/arch/arm

[Xen-devel] [PATCH v2 23/41] arm : acpi create chosen node for DOM0

2015-05-17 Thread Parth Dixit
Create a chosen node for DOM0 with - bootargs - initrd Signed-off-by: Naresh Bhat Signed-off-by: Parth Dixit --- xen/arch/arm/domain_build.c | 46 + 1 file changed, 46 insertions(+) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm

[Xen-devel] [PATCH v2 28/41] arm : acpi add efi structures to common efi header

2015-05-17 Thread Parth Dixit
add efi table and memory descriptor structures to common efi header file and pass efi system table address retrieved from uefi.This is required for creating efi table and passing memory information to DOM0 Signed-off-by: Parth Dixit --- xen/common/efi/boot.c | 2 ++ xen/include/xen/efi.h | 54

[Xen-devel] [PATCH v2 19/41] arm : acpi Add GIC specific ACPI boot support

2015-05-17 Thread Parth Dixit
table to clear GICH and GICV which are not needed in Dom0. NOTE: This commit allow to initialize GICv2 only. Signed-off-by: Tomasz Nowicki Signed-off-by: Hanjun Guo Signed-off-by: Naresh Bhat Signed-off-by: Parth Dixit --- xen/arch/arm/gic-v2.c | 132

[Xen-devel] [PATCH v2 20/41] arm : create generic uart initialization function

2015-05-17 Thread Parth Dixit
Rename dt-uart.c to arm-uart.c and create new generic uart init function. move dt_uart_init to uart_init. Refactor pl011 driver to dt and common initialization parts. This will be useful later when acpi specific uart initialization function is introduced. Signed-off-by: Parth Dixit --- xen/arch

[Xen-devel] [PATCH v2 22/41] arm : acpi create min DT stub for DOM0

2015-05-17 Thread Parth Dixit
ff-by: Naresh Bhat Signed-off-by: Parth Dixit --- xen/arch/arm/domain_build.c | 75 - xen/include/asm-arm/acpi.h | 10 ++ 2 files changed, 84 insertions(+), 1 deletion(-) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index 1e

[Xen-devel] [PATCH v2 21/41] arm : acpi Initialize serial port from ACPI SPCR table

2015-05-17 Thread Parth Dixit
Parse ACPI SPCR (Serial Port Console Redirection table) table and initialize the serial port pl011. Signed-off-by: Naresh Bhat Signed-off-by: Parth Dixit --- xen/drivers/char/pl011.c | 49 +++ xen/include/acpi/actbl2.h | 5 + 2 files changed

[Xen-devel] [PATCH v2 17/41] arm : refactor gic into generic and dt specific parts

2015-05-17 Thread Parth Dixit
refactor gic related functions into dt and generic parts this will be helpful when adding acpi support for gic Signed-off-by: Parth Dixit --- xen/arch/arm/gic-v2.c | 13 ++--- xen/arch/arm/gic.c| 7 ++- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/xen/arch

[Xen-devel] [PATCH v2 18/41] arm: Introduce a generic way to use a device from acpi

2015-05-17 Thread Parth Dixit
add generic way to use device from acpi similar to the way it is supported in device tree. Signed-off-by: Parth Dixit --- xen/arch/arm/device.c| 19 +++ xen/arch/arm/xen.lds.S | 7 +++ xen/include/asm-arm/device.h | 30 ++ 3 files

[Xen-devel] [PATCH v2 15/41] arm : acpi parse GTDT to initialize timer

2015-05-17 Thread Parth Dixit
Parse GTDT (Generic Timer Descriptor Table) to initialize timer. Using the information presented by GTDT to initialize the arch timer (not memory-mapped). Clear all el2 fields in GTDT table after initialization for passing it to Dom0. Signed-off-by: Naresh Bhat Signed-off-by: Parth Dixit

[Xen-devel] [PATCH v2 14/41] arm : acpi add helper function for setting interrupt type

2015-05-17 Thread Parth Dixit
set edge/level type information for an interrupt Signed-off-by: Parth Dixit --- xen/arch/arm/irq.c | 17 + xen/include/asm-arm/acpi.h | 26 ++ xen/include/asm-arm/irq.h | 2 ++ 3 files changed, 45 insertions(+) diff --git a/xen/arch/arm/irq.c b

[Xen-devel] [PATCH v2 16/41] acpi : Introduce acpi_parse_entries

2015-05-17 Thread Parth Dixit
add new function acpi_parse_entries which takes acpi table as argument. This will avoid fetching table everytime in acpi_table_parse_entries. Signed-off-by: Naresh Bhat Signed-off-by: Parth Dixit --- xen/drivers/acpi/tables.c | 60 +-- xen/include

[Xen-devel] [PATCH v2 10/41] arm/acpi : Print GIC information when MADT is parsed

2015-05-17 Thread Parth Dixit
From: Naresh Bhat When MADT is parsed, print GIC information to make the boot log look pretty. Signed-off-by: Hanjun Guo Signed-off-by: Tomasz Nowicki Signed-off-by: Naresh Bhat --- xen/drivers/acpi/tables.c | 39 +++ 1 file changed, 39 insertions(+) diff

[Xen-devel] [PATCH v2 09/41] arm/acpi : Add Generic Interrupt and Distributor struct

2015-05-17 Thread Parth Dixit
MSI frame and GICR. Add flag definition for GICC flags. Signed-off-by: Tomasz Nowicki Signed-off-by: Hanjun Guo Signed-off-by: Naresh Bhat Signed-off-by: Parth Dixit --- xen/include/acpi/actbl1.h | 62 +-- 1 file changed, 60 insertions(+), 2 deletions

[Xen-devel] [PATCH v2 11/41] arm/acpi : add GTDT support updated by ACPI 5.1

2015-05-17 Thread Parth Dixit
With ACPI 5.0, we got per-processor timer support in GTDT, and ACPI 5.1 introduced the support for platform (memory-mapped) timers: GT Block and SBSA watchdog timer, add the code needed for the spec change. Signed-off-by: Hanjun Guo Signed-off-by: Naresh Bhat Signed-off-by: Parth Dixit

[Xen-devel] [PATCH v2 12/41] arm : move dt specific code in smp to seperate functions

2015-05-17 Thread Parth Dixit
partition smp initialization functions into generic and dt specific parts, this will be useful when introducing new functions for smp initialization based on acpi Signed-off-by: Parth Dixit --- xen/arch/arm/arm64/smpboot.c | 7 ++- xen/arch/arm/smpboot.c | 28

[Xen-devel] [PATCH v2 13/41] arm/acpi : parse MADT to map logical cpu to MPIDR and get cpu_possible_map

2015-05-17 Thread Parth Dixit
Signed-off-by: Naresh Bhat Signed-off-by: Parth Dixit --- xen/arch/arm/acpi/boot.c | 135 +++ xen/arch/arm/arm64/smpboot.c | 7 ++- xen/arch/arm/psci.c | 16 + xen/arch/arm/smpboot.c | 7 ++- xen/include/asm-arm/acpi.h | 2

[Xen-devel] [PATCH v2 08/41] arm/acpi : Parse FADT table and get PSCI flags

2015-05-17 Thread Parth Dixit
ion less than 5.1, OS will be messed up with those information, so disable ACPI if we get an FADT table with version less that 5.1. Modify FADT table before passing it to Dom0. Set PSCI_COMPLIANT and PSCI_USE_HVC. Signed-off-by: Hanjun Guo Signed-off-by: Naresh Bhat Signed-off-by: Parth Di

[Xen-devel] [PATCH v2 07/41] arm/acpi : Introduce ARM Boot Architecture Flags in FADT

2015-05-17 Thread Parth Dixit
The Power State Coordination Interface (PSCI) defines an API that can be used to coordinate power control amongst the various supervisory systems concurrently running on a device. ACPI support for this technology would require the addition of two flags: PSCI_COMPLIANT and PSCI_USE_HVC. When set, th

[Xen-devel] [PATCH v2 03/41] arm/acpi : emulate io ports for arm

2015-05-17 Thread Parth Dixit
add macros to emulate x86 style ports for arm. This avoids modification in common code for acpi. Signed-off-by: Parth Dixit --- xen/include/asm-arm/arm64/io.h | 14 ++ 1 file changed, 14 insertions(+) diff --git a/xen/include/asm-arm/arm64/io.h b/xen/include/asm-arm/arm64/io.h

[Xen-devel] [PATCH v2 04/41] arm/acpi : add arm specific acpi header file

2015-05-17 Thread Parth Dixit
add architecture specific definitions and calls required for acpi in new header file Signed-off-by: Parth Dixit --- xen/include/asm-arm/acpi.h | 38 ++ 1 file changed, 38 insertions(+) create mode 100644 xen/include/asm-arm/acpi.h diff --git a/xen/include

[Xen-devel] [PATCH v2 05/41] acpi : add helper function for mapping memory

2015-05-17 Thread Parth Dixit
common acpi code for memory mapping is specific to x86. Add a new helper function for mapping memory based on architecture. Signed-off-by: Parth Dixit --- xen/arch/arm/Makefile | 1 + xen/arch/arm/acpi/Makefile | 1 + xen/arch/arm/acpi/lib.c| 8 xen/arch/x86/acpi/lib.c

  1   2   >