Re: [PATCH] PCI: Add ACS quirk for Cavium ThunderX 2 root port devices

2019-08-05 Thread Shannon Zhao
basically extends that commit, so the subject should be very similar. On Fri, Jul 19, 2019 at 09:10:35PM +0800, Shannon Zhao wrote: From: Shannon Zhao Like commit f2ddaf8(PCI: Apply Cavium ThunderX ACS quirk to more Root Ports), it should apply ACS quirk to ThunderX 2 root port devices. s/root

[PATCH] PCI: Add ACS quirk for Cavium ThunderX 2 root port devices

2019-07-18 Thread Shannon Zhao
From: Shannon Zhao Like commit f2ddaf8(PCI: Apply Cavium ThunderX ACS quirk to more Root Ports), it should apply ACS quirk to ThunderX 2 root port devices. Signed-off-by: Shannon Zhao --- drivers/pci/quirks.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/pci

Re: [PATCH v3 51/59] KVM: arm/arm64: GICv4: Add doorbell interrupt handling

2017-09-06 Thread Shannon Zhao
On 2017/8/1 1:26, Marc Zyngier wrote: > When a vPE is not running, a VLPI being made pending results in a > doorbell interrupt being delivered. Let's handle this interrupt > and update the pending_last flag that indicates that VLPIs are > pending. The corresponding vcpu is also kicked into

Re: [PATCH v3 51/59] KVM: arm/arm64: GICv4: Add doorbell interrupt handling

2017-09-06 Thread Shannon Zhao
On 2017/8/1 1:26, Marc Zyngier wrote: > When a vPE is not running, a VLPI being made pending results in a > doorbell interrupt being delivered. Let's handle this interrupt > and update the pending_last flag that indicates that VLPIs are > pending. The corresponding vcpu is also kicked into

Re: [PATCH v11 2/6] ACPI: Add APEI GHES Table Generation support

2017-08-25 Thread Shannon Zhao
On 2017/8/25 19:20, gengdongjiu wrote: >>> diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-build.c >>> >> index 3d78ff6..def1ec1 100644 >>> >> --- a/hw/arm/virt-acpi-build.c >>> >> +++ b/hw/arm/virt-acpi-build.c >>> >> @@ -45,6 +45,7 @@ >>> >> #include "hw/arm/virt.h" >>> >> #include

Re: [PATCH v11 2/6] ACPI: Add APEI GHES Table Generation support

2017-08-25 Thread Shannon Zhao
On 2017/8/25 19:20, gengdongjiu wrote: >>> diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-build.c >>> >> index 3d78ff6..def1ec1 100644 >>> >> --- a/hw/arm/virt-acpi-build.c >>> >> +++ b/hw/arm/virt-acpi-build.c >>> >> @@ -45,6 +45,7 @@ >>> >> #include "hw/arm/virt.h" >>> >> #include

Re: [PATCH v11 1/6] ACPI: add APEI/HEST/CPER structures and macros

2017-08-25 Thread Shannon Zhao
On 2017/8/25 18:37, gengdongjiu wrote: >>> + >>> >> +/* From the ACPI 6.1 spec, "18.3.2.9 Hardware Error Notification" */ >>> >> + >> > It's better to refer to the first spec version of this structure and >> > same with others you define. > do you mean which spec version? the definition is

Re: [PATCH v11 1/6] ACPI: add APEI/HEST/CPER structures and macros

2017-08-25 Thread Shannon Zhao
On 2017/8/25 18:37, gengdongjiu wrote: >>> + >>> >> +/* From the ACPI 6.1 spec, "18.3.2.9 Hardware Error Notification" */ >>> >> + >> > It's better to refer to the first spec version of this structure and >> > same with others you define. > do you mean which spec version? the definition is

Re: [PATCH v11 3/6] ACPI: build and enable APEI GHES in the Makefile and configuration

2017-08-24 Thread Shannon Zhao
On 2017/8/18 22:23, Dongjiu Geng wrote: > Add CONFIG_ACPI_APEI configuration in the Makefile and > enable it in the arm-softmmu.mak > > Signed-off-by: Dongjiu Geng > --- > default-configs/arm-softmmu.mak | 1 + > hw/acpi/Makefile.objs | 1 + > 2 files

Re: [PATCH v11 3/6] ACPI: build and enable APEI GHES in the Makefile and configuration

2017-08-24 Thread Shannon Zhao
On 2017/8/18 22:23, Dongjiu Geng wrote: > Add CONFIG_ACPI_APEI configuration in the Makefile and > enable it in the arm-softmmu.mak > > Signed-off-by: Dongjiu Geng > --- > default-configs/arm-softmmu.mak | 1 + > hw/acpi/Makefile.objs | 1 + > 2 files changed, 2 insertions(+) > >

Re: [PATCH v11 2/6] ACPI: Add APEI GHES Table Generation support

2017-08-24 Thread Shannon Zhao
On 2017/8/18 22:23, Dongjiu Geng wrote: > This implements APEI GHES Table by passing the error CPER info > to the guest via a fw_cfg_blob. After a CPER info is recorded, an > SEA(Synchronous External Abort)/SEI(SError Interrupt) exception > will be injected into the guest OS. > > Below is the

Re: [PATCH v11 2/6] ACPI: Add APEI GHES Table Generation support

2017-08-24 Thread Shannon Zhao
On 2017/8/18 22:23, Dongjiu Geng wrote: > This implements APEI GHES Table by passing the error CPER info > to the guest via a fw_cfg_blob. After a CPER info is recorded, an > SEA(Synchronous External Abort)/SEI(SError Interrupt) exception > will be injected into the guest OS. > > Below is the

Re: [PATCH v11 1/6] ACPI: add APEI/HEST/CPER structures and macros

2017-08-24 Thread Shannon Zhao
On 2017/8/18 22:23, Dongjiu Geng wrote: > (1) Add related APEI/HEST table structures and macros, these > definition refer to ACPI 6.1 and UEFI 2.6 spec. > (2) Add generic error status block and CPER memory section > definition, user space only handle memory section errors. > >

Re: [PATCH v11 1/6] ACPI: add APEI/HEST/CPER structures and macros

2017-08-24 Thread Shannon Zhao
On 2017/8/18 22:23, Dongjiu Geng wrote: > (1) Add related APEI/HEST table structures and macros, these > definition refer to ACPI 6.1 and UEFI 2.6 spec. > (2) Add generic error status block and CPER memory section > definition, user space only handle memory section errors. > >

[PATCH v2] Xen: EFI: Parse DT parameters for Xen specific UEFI

2016-05-12 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> The EFI DT parameters for bare metal are located under /chosen node, while for Xen Dom0 they are located under /hyperviosr/uefi node. These parameters under /chosen and /hyperviosr/uefi are not expected to appear at the same time. Parse the

[PATCH v2] Xen: EFI: Parse DT parameters for Xen specific UEFI

2016-05-12 Thread Shannon Zhao
From: Shannon Zhao The EFI DT parameters for bare metal are located under /chosen node, while for Xen Dom0 they are located under /hyperviosr/uefi node. These parameters under /chosen and /hyperviosr/uefi are not expected to appear at the same time. Parse these EFI parameters and initialize EFI

Re: [PATCH] Xen: EFI: Parse DT parameters for Xen specific UEFI

2016-05-11 Thread Shannon Zhao
On 2016/5/12 7:24, Matt Fleming wrote: > On Wed, 11 May, at 09:35:47PM, Shannon Zhao wrote: >>> > > >>> > > Also, why do you need to setup efi.runtime_version here? Isn't that >>> > > done inside uefi_init()? >>> > > >>

Re: [PATCH] Xen: EFI: Parse DT parameters for Xen specific UEFI

2016-05-11 Thread Shannon Zhao
On 2016/5/12 7:24, Matt Fleming wrote: > On Wed, 11 May, at 09:35:47PM, Shannon Zhao wrote: >>> > > >>> > > Also, why do you need to setup efi.runtime_version here? Isn't that >>> > > done inside uefi_init()? >>> > > >>

Re: [PATCH] Xen: EFI: Parse DT parameters for Xen specific UEFI

2016-05-11 Thread Shannon Zhao
On 2016年05月11日 20:27, Matt Fleming wrote: > On Fri, 06 May, at 04:32:06PM, Shannon Zhao wrote: >> > From: Shannon Zhao <shannon.z...@linaro.org> >> > >> > Add a new function to parse DT parameters for Xen specific UEFI just >> > like the way for normal

Re: [PATCH] Xen: EFI: Parse DT parameters for Xen specific UEFI

2016-05-11 Thread Shannon Zhao
On 2016年05月11日 20:27, Matt Fleming wrote: > On Fri, 06 May, at 04:32:06PM, Shannon Zhao wrote: >> > From: Shannon Zhao >> > >> > Add a new function to parse DT parameters for Xen specific UEFI just >> > like the way for normal UEFI. Then it could reus

[PATCH] Xen: EFI: Parse DT parameters for Xen specific UEFI

2016-05-06 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Add a new function to parse DT parameters for Xen specific UEFI just like the way for normal UEFI. Then it could reuse the existing codes. If Xen supports EFI, initialize runtime services. CC: Matt Fleming <m...@codeblueprint.co.uk>

[PATCH] Xen: EFI: Parse DT parameters for Xen specific UEFI

2016-05-06 Thread Shannon Zhao
From: Shannon Zhao Add a new function to parse DT parameters for Xen specific UEFI just like the way for normal UEFI. Then it could reuse the existing codes. If Xen supports EFI, initialize runtime services. CC: Matt Fleming Signed-off-by: Shannon Zhao --- Drop using of EFI_PARAVIRT

Re: [Xen-devel] efi_enabled(EFI_PARAVIRT) use

2016-05-03 Thread Shannon Zhao
On 2016/4/30 22:14, Shannon Zhao wrote: >> I already proposed when this patch was first under review to make the >> > arm_enable_runtime_services() function bail early without error if the >> > EFI_RUNTIME_SERVICES flag is already set, and the xen code could set &g

Re: [Xen-devel] efi_enabled(EFI_PARAVIRT) use

2016-05-03 Thread Shannon Zhao
On 2016/4/30 22:14, Shannon Zhao wrote: >> I already proposed when this patch was first under review to make the >> > arm_enable_runtime_services() function bail early without error if the >> > EFI_RUNTIME_SERVICES flag is already set, and the xen code could set &g

Re: [Xen-devel] efi_enabled(EFI_PARAVIRT) use

2016-05-02 Thread Shannon Zhao
On 2016/5/2 18:45, Matt Fleming wrote: > On Sun, 01 May, at 10:36:51PM, Shannon Zhao wrote: >> So is there any other way you suggest? > > Would this work (compile tested but not runtime tested)? > > --- > > diff --git a/drivers/firmware/efi/efi.c b/drivers

Re: [Xen-devel] efi_enabled(EFI_PARAVIRT) use

2016-05-02 Thread Shannon Zhao
On 2016/5/2 18:45, Matt Fleming wrote: > On Sun, 01 May, at 10:36:51PM, Shannon Zhao wrote: >> So is there any other way you suggest? > > Would this work (compile tested but not runtime tested)? > > --- > > diff --git a/drivers/firmware/efi/efi.c b/drivers

Re: efi_enabled(EFI_PARAVIRT) use

2016-05-01 Thread Shannon Zhao
On 2016年05月01日 21:26, Matt Fleming wrote: > On Sun, 01 May, at 11:24:18AM, Shannon Zhao wrote: >> Because the UEFI params for Dom0 are located under /hypervisor/uefi node >> instead of /chosen. So it needs to check whether it's a Dom0 then search >> and parse different node

Re: efi_enabled(EFI_PARAVIRT) use

2016-05-01 Thread Shannon Zhao
On 2016年05月01日 21:26, Matt Fleming wrote: > On Sun, 01 May, at 11:24:18AM, Shannon Zhao wrote: >> Because the UEFI params for Dom0 are located under /hypervisor/uefi node >> instead of /chosen. So it needs to check whether it's a Dom0 then search >> and parse different node

Re: efi_enabled(EFI_PARAVIRT) use

2016-04-30 Thread Shannon Zhao
On 2016年05月01日 04:44, Matt Fleming wrote: >> While I still have a question, in this patch we use >> > efi_enabled(EFI_PARAVIRT) as a condition to make fdt_find_uefi_params() >> > and efi_get_fdt_params() execute different ways. So it needs to find a >> > new condition for that if we need to get

Re: efi_enabled(EFI_PARAVIRT) use

2016-04-30 Thread Shannon Zhao
On 2016年05月01日 04:44, Matt Fleming wrote: >> While I still have a question, in this patch we use >> > efi_enabled(EFI_PARAVIRT) as a condition to make fdt_find_uefi_params() >> > and efi_get_fdt_params() execute different ways. So it needs to find a >> > new condition for that if we need to get

Re: efi_enabled(EFI_PARAVIRT) use

2016-04-30 Thread Shannon Zhao
On 2016年04月29日 22:53, Ard Biesheuvel wrote: > On 29 April 2016 at 16:39, Matt Fleming wrote: >> On Fri, 29 Apr, at 11:34:45AM, Stefano Stabellini wrote: >>> On Fri, 29 Apr 2016, Ingo Molnar wrote: Also, it would be nice to have all things EFI in a single tree, the

Re: efi_enabled(EFI_PARAVIRT) use

2016-04-30 Thread Shannon Zhao
On 2016年04月29日 22:53, Ard Biesheuvel wrote: > On 29 April 2016 at 16:39, Matt Fleming wrote: >> On Fri, 29 Apr, at 11:34:45AM, Stefano Stabellini wrote: >>> On Fri, 29 Apr 2016, Ingo Molnar wrote: Also, it would be nice to have all things EFI in a single tree, the conflicts are

Re: efi_enabled(EFI_PARAVIRT) use

2016-04-30 Thread Shannon Zhao
On 2016年04月29日 23:37, Stefano Stabellini wrote: > On Fri, 29 Apr 2016, Stefano Stabellini wrote: >> On Fri, 29 Apr 2016, Matt Fleming wrote: >>> On Fri, 29 Apr, at 11:34:45AM, Stefano Stabellini wrote: On Fri, 29 Apr 2016, Ingo Molnar wrote: > Also, it would be nice to have all things EFI

Re: efi_enabled(EFI_PARAVIRT) use

2016-04-30 Thread Shannon Zhao
On 2016年04月29日 23:37, Stefano Stabellini wrote: > On Fri, 29 Apr 2016, Stefano Stabellini wrote: >> On Fri, 29 Apr 2016, Matt Fleming wrote: >>> On Fri, 29 Apr, at 11:34:45AM, Stefano Stabellini wrote: On Fri, 29 Apr 2016, Ingo Molnar wrote: > Also, it would be nice to have all things EFI

Re: [PATCH v11 01/17] Xen: ACPI: Hide UART used by Xen

2016-04-15 Thread Shannon Zhao
Hi Rafael, Could you please give your comments on this patch? Thanks in advanced! On 2016/4/7 20:03, Shannon Zhao wrote: > From: Shannon Zhao <shannon.z...@linaro.org> > > ACPI 6.0 introduces a new table STAO to list the devices which are used > by Xen and can't be used by Do

Re: [PATCH v11 01/17] Xen: ACPI: Hide UART used by Xen

2016-04-15 Thread Shannon Zhao
Hi Rafael, Could you please give your comments on this patch? Thanks in advanced! On 2016/4/7 20:03, Shannon Zhao wrote: > From: Shannon Zhao > > ACPI 6.0 introduces a new table STAO to list the devices which are used > by Xen and can't be used by Dom0. On Xen virtual platforms,

[PATCH v11 05/17] xen: memory : Add new XENMAPSPACE type XENMAPSPACE_dev_mmio

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Add a new type of Xen map space for Dom0 to map device's MMIO region. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Julien Grall <julien.gr...@arm.com> --- include/xen/interface/memory.h | 1 + 1 file ch

[PATCH v11 02/17] xen/grant-table: Move xlated_setup_gnttab_pages to common place

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Move xlated_setup_gnttab_pages to common place, so it can be reused by ARM to setup grant table. Rename it to xen_xlate_map_ballooned_pages. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefano Stabellini <

[PATCH v11 03/17] Xen: xlate: Use page_to_xen_pfn instead of page_to_pfn

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Make xen_xlate_map_ballooned_pages work with 64K pages. In that case Kernel pages are 64K in size but Xen pages remain 4K in size. Xen pfns refer to 4K pages. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefan

[PATCH v11 08/17] Xen: public/hvm: sync changes of HVM_PARAM_CALLBACK_VIA ABI from Xen

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Sync the changes of HVM_PARAM_CALLBACK_VIA ABI introduced by Xen commit (public/hvm: export the HVM_PARAM_CALLBACK_VIA ABI in the API). Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Stefano Stabellini <

[PATCH v11 05/17] xen: memory : Add new XENMAPSPACE type XENMAPSPACE_dev_mmio

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao Add a new type of Xen map space for Dom0 to map device's MMIO region. Signed-off-by: Shannon Zhao Reviewed-by: Julien Grall --- include/xen/interface/memory.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/xen/interface/memory.h b/include/xen/interface

[PATCH v11 02/17] xen/grant-table: Move xlated_setup_gnttab_pages to common place

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao Move xlated_setup_gnttab_pages to common place, so it can be reused by ARM to setup grant table. Rename it to xen_xlate_map_ballooned_pages. Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini Reviewed-by: Julien Grall --- arch/x86/xen/grant-table.c | 57

[PATCH v11 03/17] Xen: xlate: Use page_to_xen_pfn instead of page_to_pfn

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao Make xen_xlate_map_ballooned_pages work with 64K pages. In that case Kernel pages are 64K in size but Xen pages remain 4K in size. Xen pfns refer to 4K pages. Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini Reviewed-by: Julien Grall --- drivers/xen/xlate_mmu.c

[PATCH v11 08/17] Xen: public/hvm: sync changes of HVM_PARAM_CALLBACK_VIA ABI from Xen

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao Sync the changes of HVM_PARAM_CALLBACK_VIA ABI introduced by Xen commit (public/hvm: export the HVM_PARAM_CALLBACK_VIA ABI in the API). Signed-off-by: Shannon Zhao Acked-by: Stefano Stabellini --- include/xen/interface/hvm/params.h | 27 +-- 1 file

[PATCH v11 01/17] Xen: ACPI: Hide UART used by Xen

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> ACPI 6.0 introduces a new table STAO to list the devices which are used by Xen and can't be used by Dom0. On Xen virtual platforms, the physical UART is used by Xen. So here it hides UART from Dom0. CC: "Rafael J. Wysocki" <

[PATCH v11 09/17] xen/hvm/params: Add a new delivery type for event-channel in HVM_PARAM_CALLBACK_IRQ

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> This new delivery type which is for ARM shares the same value with HVM_PARAM_CALLBACK_TYPE_VECTOR which is for x86. val[15:8] is flag: val[7:0] is a PPI. To the flag, bit 8 stands the interrupt mode is edge(1) or level(0) and bit 9

[PATCH v11 01/17] Xen: ACPI: Hide UART used by Xen

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao ACPI 6.0 introduces a new table STAO to list the devices which are used by Xen and can't be used by Dom0. On Xen virtual platforms, the physical UART is used by Xen. So here it hides UART from Dom0. CC: "Rafael J. Wysocki" (supporter:ACPI) CC: Len Brown (supporte

[PATCH v11 09/17] xen/hvm/params: Add a new delivery type for event-channel in HVM_PARAM_CALLBACK_IRQ

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao This new delivery type which is for ARM shares the same value with HVM_PARAM_CALLBACK_TYPE_VECTOR which is for x86. val[15:8] is flag: val[7:0] is a PPI. To the flag, bit 8 stands the interrupt mode is edge(1) or level(0) and bit 9 stands the interrupt polarity is active low

[PATCH v11 12/17] ARM64: ACPI: Check if it runs on Xen to enable or disable ACPI

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> When it's a Xen domain0 booting with ACPI, it will supply a /chosen and a /hypervisor node in DT. So check if it needs to enable ACPI. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefano Stabellini <

[PATCH v11 14/17] XEN: EFI: Move x86 specific codes to architecture directory

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Move x86 specific codes to architecture directory and export those EFI runtime service functions. This will be useful for initializing runtime service on ARM later. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefan

[PATCH v11 06/17] Xen: ARM: Add support for mapping platform device mmio

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Add a bus_notifier for platform bus device in order to map the device mmio regions when DOM0 booting with ACPI. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com>

[PATCH v11 14/17] XEN: EFI: Move x86 specific codes to architecture directory

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao Move x86 specific codes to architecture directory and export those EFI runtime service functions. This will be useful for initializing runtime service on ARM later. Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini --- arch/x86/xen/efi.c| 112

[PATCH v11 06/17] Xen: ARM: Add support for mapping platform device mmio

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao Add a bus_notifier for platform bus device in order to map the device mmio regions when DOM0 booting with ACPI. Signed-off-by: Shannon Zhao Acked-by: Stefano Stabellini --- drivers/xen/Makefile | 1 + drivers/xen/arm-device.c | 153

[PATCH v11 12/17] ARM64: ACPI: Check if it runs on Xen to enable or disable ACPI

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao When it's a Xen domain0 booting with ACPI, it will supply a /chosen and a /hypervisor node in DT. So check if it needs to enable ACPI. Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini Acked-by: Hanjun Guo --- arch/arm64/kernel/acpi.c | 14 ++ 1 file

[PATCH v11 04/17] arm/xen: Use xen_xlate_map_ballooned_pages to setup grant table

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Use xen_xlate_map_ballooned_pages to setup grant table. Then it doesn't rely on DT or ACPI to pass the start address and size of grant table. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Stefano Stabellini <

[PATCH v11 07/17] Xen: ARM: Add support for mapping AMBA device mmio

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Add a bus_notifier for AMBA bus device in order to map the device mmio regions when DOM0 booting with ACPI. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> R

[PATCH v11 16/17] FDT: Add a helper to get the subnode by given name

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Sometimes it needs to check if there is a subnode of given node in FDT by given name. Introduce this helper to get the subnode if it exists. CC: Rob Herring <r...@kernel.org> Signed-off-by: Shannon Zhao <shannon.z...@linaro.org>

[PATCH v11 07/17] Xen: ARM: Add support for mapping AMBA device mmio

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao Add a bus_notifier for AMBA bus device in order to map the device mmio regions when DOM0 booting with ACPI. Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini Reviewed-by: Julien Grall --- drivers/xen/arm-device.c | 43

[PATCH v11 16/17] FDT: Add a helper to get the subnode by given name

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao Sometimes it needs to check if there is a subnode of given node in FDT by given name. Introduce this helper to get the subnode if it exists. CC: Rob Herring Signed-off-by: Shannon Zhao Acked-by: Stefano Stabellini Acked-by: Rob Herring --- drivers/of/fdt.c | 13

[PATCH v11 04/17] arm/xen: Use xen_xlate_map_ballooned_pages to setup grant table

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao Use xen_xlate_map_ballooned_pages to setup grant table. Then it doesn't rely on DT or ACPI to pass the start address and size of grant table. Signed-off-by: Shannon Zhao Acked-by: Stefano Stabellini Reviewed-by: Julien Grall --- arch/arm/xen/enlighten.c | 13

[PATCH v11 13/17] ARM: Xen: Document UEFI support on Xen ARM virtual platforms

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Add a "uefi" node under /hypervisor node in FDT, then Linux kernel could scan this to get the UEFI information. CC: Rob Herring <r...@kernel.org> Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Rob Herrin

[PATCH v11 11/17] ARM: XEN: Move xen_early_init() before efi_init()

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Move xen_early_init() before efi_init(), then when calling efi_init() could initialize Xen specific UEFI. Check if it runs on Xen hypervisor through the flat dts. Cc: Russell King <li...@arm.linux.org.uk> Signed-off-by: Shannon Zha

[PATCH v11 10/17] arm/xen: Get event-channel irq through HVM_PARAM when booting with ACPI

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> The kernel will get the event-channel IRQ through HVM_PARAM_CALLBACK_IRQ. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> Reviewed-by: Julien Grall <

[PATCH v11 13/17] ARM: Xen: Document UEFI support on Xen ARM virtual platforms

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao Add a "uefi" node under /hypervisor node in FDT, then Linux kernel could scan this to get the UEFI information. CC: Rob Herring Signed-off-by: Shannon Zhao Acked-by: Rob Herring Reviewed-by: Stefano Stabellini --- Documentation/devicetree/bindings/arm/xe

[PATCH v11 11/17] ARM: XEN: Move xen_early_init() before efi_init()

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao Move xen_early_init() before efi_init(), then when calling efi_init() could initialize Xen specific UEFI. Check if it runs on Xen hypervisor through the flat dts. Cc: Russell King Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini Reviewed-by: Julien Grall

[PATCH v11 10/17] arm/xen: Get event-channel irq through HVM_PARAM when booting with ACPI

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao The kernel will get the event-channel IRQ through HVM_PARAM_CALLBACK_IRQ. Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini Reviewed-by: Julien Grall --- arch/arm/xen/enlighten.c | 36 +++- 1 file changed, 35 insertions(+), 1

[PATCH v11 17/17] Xen: EFI: Parse DT parameters for Xen specific UEFI

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Add a new function to parse DT parameters for Xen specific UEFI just like the way for normal UEFI. Then it could reuse the existing codes. If Xen supports EFI, initialize runtime services. CC: Matt Fleming <m...@codeblueprint.co.uk>

[PATCH v11 15/17] ARM64: XEN: Add a function to initialize Xen specific UEFI runtime services

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> When running on Xen hypervisor, runtime services are supported through hypercall. Add a Xen specific function to initialize runtime services. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefano Stabellini <

[PATCH v11 00/17] Add ACPI support for Xen Dom0 on ARM64

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> This patch set adds ACPI support for Xen Dom0 on ARM64. The relevant Xen ACPI on ARM64 design document could be found from [1]. This patch set adds a new FDT node "uefi" under /hypervisor to pass UEFI information. Introduce a bus

[PATCH v11 17/17] Xen: EFI: Parse DT parameters for Xen specific UEFI

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao Add a new function to parse DT parameters for Xen specific UEFI just like the way for normal UEFI. Then it could reuse the existing codes. If Xen supports EFI, initialize runtime services. CC: Matt Fleming Signed-off-by: Shannon Zhao Reviewed-by: Matt Fleming Reviewed

[PATCH v11 15/17] ARM64: XEN: Add a function to initialize Xen specific UEFI runtime services

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao When running on Xen hypervisor, runtime services are supported through hypercall. Add a Xen specific function to initialize runtime services. Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini --- arch/arm/include/asm/xen/xen-ops.h | 6 ++ arch/arm/xen

[PATCH v11 00/17] Add ACPI support for Xen Dom0 on ARM64

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao This patch set adds ACPI support for Xen Dom0 on ARM64. The relevant Xen ACPI on ARM64 design document could be found from [1]. This patch set adds a new FDT node "uefi" under /hypervisor to pass UEFI information. Introduce a bus notifier of AMBA and Platform

Re: [PATCH v10 06/17] Xen: ARM: Add support for mapping platform device mmio

2016-04-07 Thread Shannon Zhao
On 2016/4/7 18:32, Julien Grall wrote: > Hi Shannon, > > On 07/04/16 02:37, Shannon Zhao wrote: >> >> >> On 2016/4/6 20:16, Julien Grall wrote: >>>> +gpfns[j] = XEN_PFN_DOWN(r->start) + j; >>>

Re: [PATCH v10 06/17] Xen: ARM: Add support for mapping platform device mmio

2016-04-07 Thread Shannon Zhao
On 2016/4/7 18:32, Julien Grall wrote: > Hi Shannon, > > On 07/04/16 02:37, Shannon Zhao wrote: >> >> >> On 2016/4/6 20:16, Julien Grall wrote: >>>> +gpfns[j] = XEN_PFN_DOWN(r->start) + j; >>>

Re: [PATCH v10 00/17] Add ACPI support for Xen Dom0 on ARM64

2016-04-06 Thread Shannon Zhao
Hi Julien, On 2016/4/6 19:32, Julien Grall wrote: > Hi Shannon, > > On 01/04/2016 16:48, Shannon Zhao wrote: >> This patch set adds ACPI support for Xen Dom0 on ARM64. The relevant Xen >> ACPI on ARM64 design document could be found from [1]. >> >> This patch set

Re: [PATCH v10 00/17] Add ACPI support for Xen Dom0 on ARM64

2016-04-06 Thread Shannon Zhao
Hi Julien, On 2016/4/6 19:32, Julien Grall wrote: > Hi Shannon, > > On 01/04/2016 16:48, Shannon Zhao wrote: >> This patch set adds ACPI support for Xen Dom0 on ARM64. The relevant Xen >> ACPI on ARM64 design document could be found from [1]. >> >> This patch set

Re: [PATCH v10 06/17] Xen: ARM: Add support for mapping platform device mmio

2016-04-06 Thread Shannon Zhao
On 2016/4/6 20:16, Julien Grall wrote: >> +gpfns[j] = XEN_PFN_DOWN(r->start) + j; >> +idxs[j] = XEN_PFN_DOWN(r->start) + j; >> +} >> + >> +xatp.domid = DOMID_SELF; >> +xatp.size = nr; >> +xatp.space = XENMAPSPACE_dev_mmio; >> + >> +

Re: [PATCH v10 06/17] Xen: ARM: Add support for mapping platform device mmio

2016-04-06 Thread Shannon Zhao
On 2016/4/6 20:16, Julien Grall wrote: >> +gpfns[j] = XEN_PFN_DOWN(r->start) + j; >> +idxs[j] = XEN_PFN_DOWN(r->start) + j; >> +} >> + >> +xatp.domid = DOMID_SELF; >> +xatp.size = nr; >> +xatp.space = XENMAPSPACE_dev_mmio; >> + >> +

[PATCH v10 07/17] Xen: ARM: Add support for mapping AMBA device mmio

2016-04-01 Thread Shannon Zhao
Add a bus_notifier for AMBA bus device in order to map the device mmio regions when DOM0 booting with ACPI. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> --- drivers/xen/arm-d

[PATCH v10 07/17] Xen: ARM: Add support for mapping AMBA device mmio

2016-04-01 Thread Shannon Zhao
Add a bus_notifier for AMBA bus device in order to map the device mmio regions when DOM0 booting with ACPI. Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini --- drivers/xen/arm-device.c | 43 +++ 1 file changed, 43 insertions(+) diff --git

[PATCH v10 02/17] xen/grant-table: Move xlated_setup_gnttab_pages to common place

2016-04-01 Thread Shannon Zhao
Move xlated_setup_gnttab_pages to common place, so it can be reused by ARM to setup grant table. Rename it to xen_xlate_map_ballooned_pages. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> --- arch/x86/xen/g

[PATCH v10 02/17] xen/grant-table: Move xlated_setup_gnttab_pages to common place

2016-04-01 Thread Shannon Zhao
Move xlated_setup_gnttab_pages to common place, so it can be reused by ARM to setup grant table. Rename it to xen_xlate_map_ballooned_pages. Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini --- arch/x86/xen/grant-table.c | 57 +-- drivers/xen

[PATCH v10 13/17] ARM: Xen: Document UEFI support on Xen ARM virtual platforms

2016-04-01 Thread Shannon Zhao
Add a "uefi" node under /hypervisor node in FDT, then Linux kernel could scan this to get the UEFI information. CC: Rob Herring <r...@kernel.org> Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Rob Herring <r...@kernel.org> Reviewed-by: Stefano

[PATCH v10 10/17] arm/xen: Get event-channel irq through HVM_PARAM when booting with ACPI

2016-04-01 Thread Shannon Zhao
The kernel will get the event-channel IRQ through HVM_PARAM_CALLBACK_IRQ. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> --- arch/arm/xen/enlighten.c | 36 +++- 1 file changed, 3

[PATCH v10 11/17] ARM: XEN: Move xen_early_init() before efi_init()

2016-04-01 Thread Shannon Zhao
Move xen_early_init() before efi_init(), then when calling efi_init() could initialize Xen specific UEFI. Check if it runs on Xen hypervisor through the flat dts. Cc: Russell King <li...@arm.linux.org.uk> Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefan

[PATCH v10 17/17] Xen: EFI: Parse DT parameters for Xen specific UEFI

2016-04-01 Thread Shannon Zhao
Add a new function to parse DT parameters for Xen specific UEFI just like the way for normal UEFI. Then it could reuse the existing codes. If Xen supports EFI, initialize runtime services. CC: Matt Fleming <m...@codeblueprint.co.uk> Signed-off-by: Shannon Zhao <shannon.z...@linaro.org&

[PATCH v10 14/17] XEN: EFI: Move x86 specific codes to architecture directory

2016-04-01 Thread Shannon Zhao
Move x86 specific codes to architecture directory and export those EFI runtime service functions. This will be useful for initializing runtime service on ARM later. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com&g

[PATCH v10 16/17] FDT: Add a helper to get the subnode by given name

2016-04-01 Thread Shannon Zhao
Sometimes it needs to check if there is a subnode of given node in FDT by given name. Introduce this helper to get the subnode if it exists. CC: Rob Herring <r...@kernel.org> Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Stefano Stabellini <stefano.stabell..

[PATCH v10 13/17] ARM: Xen: Document UEFI support on Xen ARM virtual platforms

2016-04-01 Thread Shannon Zhao
Add a "uefi" node under /hypervisor node in FDT, then Linux kernel could scan this to get the UEFI information. CC: Rob Herring Signed-off-by: Shannon Zhao Acked-by: Rob Herring Reviewed-by: Stefano Stabellini --- Documentation/devicetree/bindings/arm/xe

[PATCH v10 10/17] arm/xen: Get event-channel irq through HVM_PARAM when booting with ACPI

2016-04-01 Thread Shannon Zhao
The kernel will get the event-channel IRQ through HVM_PARAM_CALLBACK_IRQ. Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini --- arch/arm/xen/enlighten.c | 36 +++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/arch/arm/xen/enlighten.c b

[PATCH v10 11/17] ARM: XEN: Move xen_early_init() before efi_init()

2016-04-01 Thread Shannon Zhao
Move xen_early_init() before efi_init(), then when calling efi_init() could initialize Xen specific UEFI. Check if it runs on Xen hypervisor through the flat dts. Cc: Russell King Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini --- arch/arm/kernel/setup.c | 2 +- arch/arm/xen

[PATCH v10 17/17] Xen: EFI: Parse DT parameters for Xen specific UEFI

2016-04-01 Thread Shannon Zhao
Add a new function to parse DT parameters for Xen specific UEFI just like the way for normal UEFI. Then it could reuse the existing codes. If Xen supports EFI, initialize runtime services. CC: Matt Fleming Signed-off-by: Shannon Zhao Reviewed-by: Matt Fleming Reviewed-by: Stefano Stabellini

[PATCH v10 14/17] XEN: EFI: Move x86 specific codes to architecture directory

2016-04-01 Thread Shannon Zhao
Move x86 specific codes to architecture directory and export those EFI runtime service functions. This will be useful for initializing runtime service on ARM later. Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini --- arch/x86/xen/efi.c| 112

[PATCH v10 16/17] FDT: Add a helper to get the subnode by given name

2016-04-01 Thread Shannon Zhao
Sometimes it needs to check if there is a subnode of given node in FDT by given name. Introduce this helper to get the subnode if it exists. CC: Rob Herring Signed-off-by: Shannon Zhao Acked-by: Stefano Stabellini Acked-by: Rob Herring --- drivers/of/fdt.c | 13 + include

[PATCH v10 15/17] ARM64: XEN: Add a function to initialize Xen specific UEFI runtime services

2016-04-01 Thread Shannon Zhao
When running on Xen hypervisor, runtime services are supported through hypercall. Add a Xen specific function to initialize runtime services. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> --- arch/arm/include

[PATCH v10 12/17] ARM64: ACPI: Check if it runs on Xen to enable or disable ACPI

2016-04-01 Thread Shannon Zhao
When it's a Xen domain0 booting with ACPI, it will supply a /chosen and a /hypervisor node in DT. So check if it needs to enable ACPI. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> Acked-by: Hanjun

[PATCH v10 09/17] xen/hvm/params: Add a new delivery type for event-channel in HVM_PARAM_CALLBACK_IRQ

2016-04-01 Thread Shannon Zhao
). Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> --- include/xen/interface/hvm/params.h | 13 + 1 file changed, 13 insertions(+) diff --git a/include/xen/interface/hvm/params.h b/include/xen/interface/hvm/pa

[PATCH v10 12/17] ARM64: ACPI: Check if it runs on Xen to enable or disable ACPI

2016-04-01 Thread Shannon Zhao
When it's a Xen domain0 booting with ACPI, it will supply a /chosen and a /hypervisor node in DT. So check if it needs to enable ACPI. Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini Acked-by: Hanjun Guo --- arch/arm64/kernel/acpi.c | 14 ++ 1 file changed, 10

[PATCH v10 09/17] xen/hvm/params: Add a new delivery type for event-channel in HVM_PARAM_CALLBACK_IRQ

2016-04-01 Thread Shannon Zhao
). Signed-off-by: Shannon Zhao Acked-by: Stefano Stabellini --- include/xen/interface/hvm/params.h | 13 + 1 file changed, 13 insertions(+) diff --git a/include/xen/interface/hvm/params.h b/include/xen/interface/hvm/params.h index 70ad208..4d61fc5 100644 --- a/include/xen/interface/hvm

[PATCH v10 15/17] ARM64: XEN: Add a function to initialize Xen specific UEFI runtime services

2016-04-01 Thread Shannon Zhao
When running on Xen hypervisor, runtime services are supported through hypercall. Add a Xen specific function to initialize runtime services. Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini --- arch/arm/include/asm/xen/xen-ops.h | 6 ++ arch/arm/xen/Makefile

  1   2   3   4   5   >