Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 3

2015-09-02 Thread Ian Campbell
On Tue, 2015-08-18 at 12:00 -0700, Julien Grall wrote: > Hi, > > On 18/08/2015 02:34, Shannon Zhao wrote: > > IIUC, this is a requirement for Linux. Because when Linux parses the > > minimal DT, it uses below dt_params to match the DT properties. If it > > doesn't match any of them, it will fial.

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 3

2015-08-18 Thread Julien Grall
On 18/08/2015 00:01, Jan Beulich wrote: On 18.08.15 at 08:43, wrote: Hi Jan, On 17/08/2015 22:10, Jan Beulich wrote: Julien Grall 08/17/15 6:27 PM >>> On 17/08/2015 08:33, Jan Beulich wrote: On 14.08.15 at 16:59, wrote: b) Create EFI_MEMORY_DESCRIPTOR table. This will add memory start

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 3

2015-08-18 Thread Julien Grall
Hi, On 18/08/2015 02:34, Shannon Zhao wrote: IIUC, this is a requirement for Linux. Because when Linux parses the minimal DT, it uses below dt_params to match the DT properties. If it doesn't match any of them, it will fial. See efi_get_fdt_params in drivers/firmware/efi/efi.c. This is *not* a

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 3

2015-08-18 Thread Julien Grall
On 18/08/2015 00:23, Shannon Zhao wrote: On 2015/8/18 14:36, Julien Grall wrote: On 17/08/2015 20:19, Shannon Zhao wrote: Yes, I think it's good to drop the "linux," too. But if we drop the linux, would it impact the linux kernel booting with UEFI? And why we don't do it to Xen since Xen

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 3

2015-08-18 Thread Shannon Zhao
On 2015/8/18 17:11, Jan Beulich wrote: On 18.08.15 at 10:21, wrote: > >> >> On 2015/8/18 16:15, Jan Beulich wrote: >> On 18.08.15 at 09:35, wrote: Hi Jan, On 2015/8/18 13:14, Jan Beulich wrote: Shannon Zhao 08/18/15 5:46 AM >>> >> On 2015/8/17 23:33, Jan B

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 3

2015-08-18 Thread Jan Beulich
>>> On 18.08.15 at 10:21, wrote: > > On 2015/8/18 16:15, Jan Beulich wrote: > On 18.08.15 at 09:35, wrote: >>> Hi Jan, >>> >>> On 2015/8/18 13:14, Jan Beulich wrote: >>> Shannon Zhao 08/18/15 5:46 AM >>> > On 2015/8/17 23:33, Jan Beulich wrote: > On 14.08.15 at 16:59, wrot

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 3

2015-08-18 Thread Shannon Zhao
On 2015/8/18 16:15, Jan Beulich wrote: On 18.08.15 at 09:35, wrote: >> Hi Jan, >> >> On 2015/8/18 13:14, Jan Beulich wrote: >> Shannon Zhao 08/18/15 5:46 AM >>> On 2015/8/17 23:33, Jan Beulich wrote: On 14.08.15 at 16:59, wrote: >> 1. Copy and change some EFI and ACP

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 3

2015-08-18 Thread Shannon Zhao
On 2015/8/18 15:01, Jan Beulich wrote: On 18.08.15 at 08:43, wrote: >> > Hi Jan, >> > >> > On 17/08/2015 22:10, Jan Beulich wrote: >> > Julien Grall 08/17/15 6:27 PM >>> >>> On 17/08/2015 08:33, Jan Beulich wrote: >>> On 14.08.15 at 16:59, wrote: >> > b)

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 3

2015-08-18 Thread Jan Beulich
>>> On 18.08.15 at 09:35, wrote: > Hi Jan, > > On 2015/8/18 13:14, Jan Beulich wrote: > Shannon Zhao 08/18/15 5:46 AM >>> >>> On 2015/8/17 23:33, Jan Beulich wrote: >>> On 14.08.15 at 16:59, wrote: > 1. Copy and change some EFI and ACPI tables > -

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 3

2015-08-18 Thread Shannon Zhao
Hi Jan, On 2015/8/18 13:14, Jan Beulich wrote: Shannon Zhao 08/18/15 5:46 AM >>> >> On 2015/8/17 23:33, Jan Beulich wrote: >> On 14.08.15 at 16:59, wrote: 1. Copy and change some EFI and ACPI tables --- >>> >>> While some explanation on

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 3

2015-08-18 Thread Shannon Zhao
On 2015/8/18 14:36, Julien Grall wrote: > > > On 17/08/2015 20:19, Shannon Zhao wrote: Yes, I think it's good to drop the "linux," too. But if we drop the linux, would it impact the linux kernel booting with UEFI? And why we don't do it to Xen since Xen still uses "linux,"? >>> >

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 3

2015-08-18 Thread Jan Beulich
>>> On 18.08.15 at 08:43, wrote: > Hi Jan, > > On 17/08/2015 22:10, Jan Beulich wrote: > Julien Grall 08/17/15 6:27 PM >>> >>> On 17/08/2015 08:33, Jan Beulich wrote: >>> On 14.08.15 at 16:59, wrote: > b) Create EFI_MEMORY_DESCRIPTOR table. This will add memory start and > size

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 3

2015-08-17 Thread Julien Grall
Hi Jan, On 17/08/2015 22:10, Jan Beulich wrote: Julien Grall 08/17/15 6:27 PM >>> On 17/08/2015 08:33, Jan Beulich wrote: On 14.08.15 at 16:59, wrote: b) Create EFI_MEMORY_DESCRIPTOR table. This will add memory start and size information of Dom0. And Dom0 will get the memory information thr

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 3

2015-08-17 Thread Julien Grall
On 17/08/2015 20:19, Shannon Zhao wrote: Yes, I think it's good to drop the "linux," too. But if we drop the linux, would it impact the linux kernel booting with UEFI? And why we don't do it to Xen since Xen still uses "linux,"? I don't understand your second question. I mean that Xen is us

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 3

2015-08-17 Thread Jan Beulich
>>> Shannon Zhao 08/18/15 5:46 AM >>> >On 2015/8/17 23:33, Jan Beulich wrote: > On 14.08.15 at 16:59, wrote: >>> 1. Copy and change some EFI and ACPI tables >>> --- >> >> While some explanation on the reasons for this was given in the past >> discussio

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 3

2015-08-17 Thread Jan Beulich
>>> Julien Grall 08/17/15 6:27 PM >>> >On 17/08/2015 08:33, Jan Beulich wrote: > On 14.08.15 at 16:59, wrote: >>> b) Create EFI_MEMORY_DESCRIPTOR table. This will add memory start and >>> size information of Dom0. And Dom0 will get the memory information >>> through this EFI table. >> >> To s

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 3

2015-08-17 Thread Shannon Zhao
Hi Jan, On 2015/8/17 23:33, Jan Beulich wrote: On 14.08.15 at 16:59, wrote: >> 1. Copy and change some EFI and ACPI tables >> --- > > While some explanation on the reasons for this was given in the past > discussion, I'm still missing a word on the "w

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 3

2015-08-17 Thread Shannon Zhao
Hi Julien, On 2015/8/18 0:10, Julien Grall wrote: > Hi, > > On 17/08/2015 06:01, Shannon Zhao wrote: >> >> >> On 2015/8/14 23:17, Julien Grall wrote: >>> On 14/08/15 15:59, Shannon Zhao wrote: 2. Create minimal DT to pass required information to Dom0

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 3

2015-08-17 Thread Julien Grall
On 17/08/2015 08:33, Jan Beulich wrote: On 14.08.15 at 16:59, wrote: 1. Copy and change some EFI and ACPI tables --- While some explanation on the reasons for this was given in the past discussion, I'm still missing a word on the "why" for each of the

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 3

2015-08-17 Thread Julien Grall
Hi, On 17/08/2015 06:01, Shannon Zhao wrote: On 2015/8/14 23:17, Julien Grall wrote: On 14/08/15 15:59, Shannon Zhao wrote: 2. Create minimal DT to pass required information to Dom0 -- The minimal DT mainly passes Dom0 bootargs, address

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 3

2015-08-17 Thread Jan Beulich
>>> On 14.08.15 at 16:59, wrote: > 1. Copy and change some EFI and ACPI tables > --- While some explanation on the reasons for this was given in the past discussion, I'm still missing a word on the "why" for each of these here. > a) Copy EFI_SYSTEM_TABLE a

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 3

2015-08-17 Thread Shannon Zhao
On 2015/8/14 23:17, Julien Grall wrote: On 14/08/15 15:59, Shannon Zhao wrote: 2. Create minimal DT to pass required information to Dom0 -- The minimal DT mainly passes Dom0 bootargs, address and size of initrd (if available), address and

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 3

2015-08-14 Thread Konrad Rzeszutek Wilk
On Fri, Aug 14, 2015 at 10:59:19PM +0800, Shannon Zhao wrote: > This document is going to explain the design details of Xen booting with > ACPI on ARM. Maybe parts of it may not be appropriate. Any comments are > welcome. > > Changes v2->v3: > * remove the two HVM_PARAMs for grant table and let li

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 3

2015-08-14 Thread Julien Grall
On 14/08/15 15:59, Shannon Zhao wrote: > 2. Create minimal DT to pass required information to Dom0 > -- > The minimal DT mainly passes Dom0 bootargs, address and size of initrd > (if available), address and size of uefi system table, address a

[Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 3

2015-08-14 Thread Shannon Zhao
This document is going to explain the design details of Xen booting with ACPI on ARM. Maybe parts of it may not be appropriate. Any comments are welcome. Changes v2->v3: * remove the two HVM_PARAMs for grant table and let linux kernel use xlated_setup_gnttab_pages() to setup grant table. * don'