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..096e9ef 100644 >> > --- a/xen/arch/arm/M

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

2015-05-24 Thread Julien Grall
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..096e9ef 100644 > --- a/xen/arch/arm/Makefile > +++ b/xen/arch/arm/Makefile > @@ -2,6 +2,7 @@ subdir-$

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 > > @@ -2,6 +2,7 @@ subdir-$(arm32) +

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

2015-05-20 Thread Julien Grall
On 20/05/15 17:03, Jan Beulich wrote: On 17.05.15 at 22:03, wrote: >> --- a/xen/drivers/acpi/osl.c >> +++ b/xen/drivers/acpi/osl.c >> @@ -87,16 +87,7 @@ acpi_physical_address __init >> acpi_os_get_root_pointer(void) >> void __iomem * >> acpi_os_map_memory(acpi_physical_address phys, acpi_s

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

2015-05-20 Thread Jan Beulich
>>> On 17.05.15 at 22:03, wrote: > --- a/xen/drivers/acpi/osl.c > +++ b/xen/drivers/acpi/osl.c > @@ -87,16 +87,7 @@ acpi_physical_address __init acpi_os_get_root_pointer(void) > void __iomem * > acpi_os_map_memory(acpi_physical_address phys, acpi_size size) > { > - if (system_state >= SYS_S

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

2015-05-18 Thread Julien Grall
On 18/05/15 15:32, Jan Beulich wrote: On 18.05.15 at 16:20, wrote: >> Although, acpi_os_map_iomem is also part of the ACPI CA. Would a >> function arch_acpi_os_map_memory suit for you? > > Only if we - other than Linux - really need this to be arch dependent. The current implementation of a

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

2015-05-18 Thread Jan Beulich
>>> On 18.05.15 at 16:20, wrote: > Although, acpi_os_map_iomem is also part of the ACPI CA. Would a > function arch_acpi_os_map_memory suit for you? Only if we - other than Linux - really need this to be arch dependent. Jan ___ Xen-devel mailing list

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

2015-05-18 Thread Julien Grall
On 18/05/15 15:01, Jan Beulich wrote: On 18.05.15 at 15:26, wrote: >> On 17/05/15 21:03, Parth Dixit wrote: >>> --- /dev/null >>> +++ b/xen/arch/arm/acpi/lib.c >>> @@ -0,0 +1,8 @@ >>> +#include >>> +#include >>> + >>> +void __iomem * >>> +acpi_os_map_iomem(acpi_physical_address phys, acpi_s

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

2015-05-18 Thread Jan Beulich
>>> On 18.05.15 at 15:26, wrote: > On 17/05/15 21:03, Parth Dixit wrote: >> --- /dev/null >> +++ b/xen/arch/arm/acpi/lib.c >> @@ -0,0 +1,8 @@ >> +#include >> +#include >> + >> +void __iomem * >> +acpi_os_map_iomem(acpi_physical_address phys, acpi_size size) >> +{ >> +return __va(phys); >> +}

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

2015-05-18 Thread Julien Grall
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 > @@ -2,6 +2,7 @@ subdir-$(arm32) += arm32 > subdir-$(arm64) += arm64 > subdir-y += platforms >

[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|