Re: [Powertop] [PATCH] fix cpuidle state name parsing

2012-08-01 Thread Rajagopal Venkat
On 1 August 2012 03:34, Chris Ferron wrote: > > This patch fixes powertop to display cpuidle states on platforms > > where cpuidle stateX directory name field does not contain > > "CX" string. On some platforms, the name field contains meaningful > > strings like WFI, Sleep, DeepSleep. > > > > Pl

Compiler errors for UCM Android

2012-08-01 Thread Asha Anand
After copying the kurt-taylor alsa-ucm and android-ucm releated files to device/linaro/pandaboard/audio The following compiler errors are observed in use-case.c 1) include alsa/asoundlib.h error asoundlib.h not found (should be tinyalsa/asoundlib.h) 2 #include "../include/use-case.h" ( should be

Re: [Xen-devel] [PATCH 01/24] arm: initial Xen support

2012-08-01 Thread Konrad Rzeszutek Wilk
> > > +struct pvclock_wall_clock { > > > + u32 version; > > > + u32 sec; > > > + u32 nsec; > > > +} __attribute__((__packed__)); > > > > That is weird. It is 4+4+4 = 12 bytes? Don't you want it to be 16 bytes? > > I agree that 16 bytes would be a better choice, but it needs to match > the s

Re: [PATCH 05/24] xen/arm: empty implementation of grant_table arch specific functions

2012-08-01 Thread Konrad Rzeszutek Wilk
On Thu, Jul 26, 2012 at 04:33:47PM +0100, Stefano Stabellini wrote: > Signed-off-by: Stefano Stabellini > --- > arch/arm/xen/Makefile |2 +- > arch/arm/xen/grant-table.c | 53 > > 2 files changed, 54 insertions(+), 1 deletions(-) > create

Re: [PATCH 07/24] xen/arm: Xen detection and shared_info page mapping

2012-08-01 Thread Konrad Rzeszutek Wilk
On Thu, Jul 26, 2012 at 04:33:49PM +0100, Stefano Stabellini wrote: > Check for a "/xen" node in the device tree, if it is present set > xen_domain_type to XEN_HVM_DOMAIN and continue initialization. > > Map the real shared info page using XENMEM_add_to_physmap with > XENMAPSPACE_shared_info. > >

Re: [PATCH 08/24] xen/arm: Introduce xen_pfn_t for pfn and mfn types

2012-08-01 Thread Konrad Rzeszutek Wilk
On Thu, Jul 26, 2012 at 04:33:50PM +0100, Stefano Stabellini wrote: > All the original Xen headers have xen_pfn_t as mfn and pfn type, however > when they have been imported in Linux, xen_pfn_t has been replaced with > unsigned long. That might work for x86 and ia64 but it does not for arm. How co

Re: [PATCH 09/24] xen/arm: compile and run xenbus

2012-08-01 Thread Konrad Rzeszutek Wilk
On Thu, Jul 26, 2012 at 04:33:51PM +0100, Stefano Stabellini wrote: > bind_evtchn_to_irqhandler can legitimately return 0 (irq 0): it is not > an error. > > If Linux is running as an HVM domain and is running as Dom0, use > xenstored_local_init to initialize the xenstore page and event channel. >

Re: [Xen-devel] [PATCH 11/24] xen/arm: introduce CONFIG_XEN on ARM

2012-08-01 Thread Konrad Rzeszutek Wilk
On Thu, Jul 26, 2012 at 04:33:53PM +0100, Stefano Stabellini wrote: > Signed-off-by: Stefano Stabellini > --- > arch/arm/Kconfig | 10 ++ > 1 files changed, 10 insertions(+), 0 deletions(-) > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index a91009c..9c54cb4 100644 > --- a/arc

Re: [Xen-devel] [PATCH 04/24] xen/arm: sync_bitops

2012-08-01 Thread Konrad Rzeszutek Wilk
On Fri, Jul 27, 2012 at 10:28:25AM +0100, Ian Campbell wrote: > On Thu, 2012-07-26 at 17:37 +0100, Konrad Rzeszutek Wilk wrote: > > On Thu, Jul 26, 2012 at 04:33:46PM +0100, Stefano Stabellini wrote: > > > sync_bitops functions are equivalent to the SMP implementation of the > > > original function

Re: [PATCH 12/24] xen/arm: Introduce xen_guest_init

2012-08-01 Thread Konrad Rzeszutek Wilk
On Thu, Jul 26, 2012 at 04:33:54PM +0100, Stefano Stabellini wrote: > We used to rely on a core_initcall to initialize Xen on ARM, however > core_initcalls are actually called after early consoles are initialized. > That means that hvc_xen.c is going to be initialized before Xen. > > Given the lac

Re: [PATCH 13/24] xen/arm: get privilege status

2012-08-01 Thread Konrad Rzeszutek Wilk
On Fri, Jul 27, 2012 at 03:33:50PM +0100, Ian Campbell wrote: > On Fri, 2012-07-27 at 15:25 +0100, Stefano Stabellini wrote: > > On Fri, 27 Jul 2012, Ian Campbell wrote: > > > On Thu, 2012-07-26 at 16:33 +0100, Stefano Stabellini wrote: > > > > Use Xen features to figure out if we are privileged. >

Re: [PATCH 14/24] xen/arm: initialize grant_table on ARM

2012-08-01 Thread Konrad Rzeszutek Wilk
On Thu, Jul 26, 2012 at 04:33:56PM +0100, Stefano Stabellini wrote: > Initialize the grant table mapping at the address specified at index 0 > in the DT under the /xen node. Is it always index 0? If so, should it have a #define for the other index values? > After the grant table is initialized, c

Re: [PATCH 15/24] xen/arm: receive Xen events on ARM

2012-08-01 Thread Konrad Rzeszutek Wilk
On Thu, Jul 26, 2012 at 04:33:57PM +0100, Stefano Stabellini wrote: > Compile events.c on ARM. > Parse, map and enable the IRQ to get event notifications from the device > tree (node "/xen"). > > On ARM Linux irqs are not enabled by default: > > - call enable_percpu_irq for xen_events_irq (driver

Re: [PATCH 18/24] xen/arm: compile blkfront and blkback

2012-08-01 Thread Konrad Rzeszutek Wilk
On Thu, Jul 26, 2012 at 04:34:00PM +0100, Stefano Stabellini wrote: > Signed-off-by: Stefano Stabellini > --- > drivers/block/xen-blkback/blkback.c |1 + > include/xen/interface/io/protocols.h |3 +++ > 2 files changed, 4 insertions(+), 0 deletions(-) > > diff --git a/drivers/block/xen-

Re: [Xen-devel] [PATCH 17/24] xen: allow privcmd for HVM guests

2012-08-01 Thread Konrad Rzeszutek Wilk
On Fri, Jul 27, 2012 at 03:10:13PM +0100, Stefano Stabellini wrote: > On Fri, 27 Jul 2012, Jan Beulich wrote: > > >>> On 26.07.12 at 17:33, Stefano Stabellini > > >>> wrote: > > > In order for privcmd mmap to work correctly, xen_remap_domain_mfn_range > > > needs to be implemented for HVM guests.

Re: [PATCH 20/24] xen: update xen_add_to_physmap interface

2012-08-01 Thread Konrad Rzeszutek Wilk
On Thu, Jul 26, 2012 at 04:34:02PM +0100, Stefano Stabellini wrote: > Update struct xen_add_to_physmap to be in sync with Xen's version of the > structure. > The size field was introduced by: > > changeset: 24164:707d27fe03e7 > user:Jean Guyader > date:Fri Nov 18 13:42:08 2011 +

Re: [PATCH 21/24] arm/v2m: initialize arch_timers even if v2m_timer is not present

2012-08-01 Thread Konrad Rzeszutek Wilk
On Thu, Jul 26, 2012 at 04:34:03PM +0100, Stefano Stabellini wrote: > Signed-off-by: Stefano Stabellini Should the maintainer of the v2m be CC-ed here? This looks like a bug-fix of itself? > --- > arch/arm/mach-vexpress/v2m.c | 11 ++- > 1 files changed, 6 insertions(+), 5 deletions(-

Re: [PATCH 23/24] hvc_xen: allow dom0_write_console for HVM guests

2012-08-01 Thread Konrad Rzeszutek Wilk
On Thu, Jul 26, 2012 at 04:34:05PM +0100, Stefano Stabellini wrote: > On ARM all guests are HVM guests, including Dom0. > Allow dom0_write_console to be called by an HVM domain. Um, but xen_hvm_domain() != xen_pv_domain() so won't this return without printing anything? > > Signed-off-by: Stefano

Re: [PATCH 24/24] [HACK] xen/arm: implement xen_remap_domain_mfn_range

2012-08-01 Thread Konrad Rzeszutek Wilk
On Thu, Jul 26, 2012 at 04:34:06PM +0100, Stefano Stabellini wrote: > From: Ian Campbell > > Do not apply! Mukesh, I believe this is similar to what you had in mind. > > This is a simple, hacky implementation of xen_remap_domain_mfn_range, > using XENMAPSPACE_gmfn_foreign. > > It should use s

Re: [PATCH 07/24] xen/arm: Xen detection and shared_info page mapping

2012-08-01 Thread Stefano Stabellini
On Wed, 1 Aug 2012, Konrad Rzeszutek Wilk wrote: > On Thu, Jul 26, 2012 at 04:33:49PM +0100, Stefano Stabellini wrote: > > Check for a "/xen" node in the device tree, if it is present set > > xen_domain_type to XEN_HVM_DOMAIN and continue initialization. > > > > Map the real shared info page using

Re: [PATCH 05/24] xen/arm: empty implementation of grant_table arch specific functions

2012-08-01 Thread Stefano Stabellini
On Wed, 1 Aug 2012, Konrad Rzeszutek Wilk wrote: > On Thu, Jul 26, 2012 at 04:33:47PM +0100, Stefano Stabellini wrote: > > Signed-off-by: Stefano Stabellini > > --- > > arch/arm/xen/Makefile |2 +- > > arch/arm/xen/grant-table.c | 53 > > >

Re: [PATCH 08/24] xen/arm: Introduce xen_pfn_t for pfn and mfn types

2012-08-01 Thread Stefano Stabellini
On Wed, 1 Aug 2012, Konrad Rzeszutek Wilk wrote: > On Thu, Jul 26, 2012 at 04:33:50PM +0100, Stefano Stabellini wrote: > > All the original Xen headers have xen_pfn_t as mfn and pfn type, however > > when they have been imported in Linux, xen_pfn_t has been replaced with > > unsigned long. That mig

Re: [PATCH 23/24] hvc_xen: allow dom0_write_console for HVM guests

2012-08-01 Thread Stefano Stabellini
On Wed, 1 Aug 2012, Konrad Rzeszutek Wilk wrote: > On Thu, Jul 26, 2012 at 04:34:05PM +0100, Stefano Stabellini wrote: > > On ARM all guests are HVM guests, including Dom0. > > Allow dom0_write_console to be called by an HVM domain. > > Um, but xen_hvm_domain() != xen_pv_domain() so won't this ret

Re: [PATCH 21/24] arm/v2m: initialize arch_timers even if v2m_timer is not present

2012-08-01 Thread Stefano Stabellini
On Wed, 1 Aug 2012, Konrad Rzeszutek Wilk wrote: > On Thu, Jul 26, 2012 at 04:34:03PM +0100, Stefano Stabellini wrote: > > Signed-off-by: Stefano Stabellini > > Should the maintainer of the v2m be CC-ed here? > This looks like a bug-fix of itself? I think so. I'll CC Russell King next time. > >

Re: [Xen-devel] [PATCH 04/24] xen/arm: sync_bitops

2012-08-01 Thread Stefano Stabellini
On Wed, 1 Aug 2012, Konrad Rzeszutek Wilk wrote: > On Fri, Jul 27, 2012 at 10:28:25AM +0100, Ian Campbell wrote: > > On Thu, 2012-07-26 at 17:37 +0100, Konrad Rzeszutek Wilk wrote: > > > On Thu, Jul 26, 2012 at 04:33:46PM +0100, Stefano Stabellini wrote: > > > > sync_bitops functions are equivalent

Re: [PATCH 20/24] xen: update xen_add_to_physmap interface

2012-08-01 Thread Stefano Stabellini
On Wed, 1 Aug 2012, Konrad Rzeszutek Wilk wrote: > On Thu, Jul 26, 2012 at 04:34:02PM +0100, Stefano Stabellini wrote: > > Update struct xen_add_to_physmap to be in sync with Xen's version of the > > structure. > > The size field was introduced by: > > > > changeset: 24164:707d27fe03e7 > > user:

Re: [PATCH 18/24] xen/arm: compile blkfront and blkback

2012-08-01 Thread Stefano Stabellini
On Wed, 1 Aug 2012, Konrad Rzeszutek Wilk wrote: > On Thu, Jul 26, 2012 at 04:34:00PM +0100, Stefano Stabellini wrote: > > Signed-off-by: Stefano Stabellini > > --- > > drivers/block/xen-blkback/blkback.c |1 + > > include/xen/interface/io/protocols.h |3 +++ > > 2 files changed, 4 inser

Re: [PATCH 13/24] xen/arm: get privilege status

2012-08-01 Thread Stefano Stabellini
On Wed, 1 Aug 2012, Konrad Rzeszutek Wilk wrote: > On Fri, Jul 27, 2012 at 03:33:50PM +0100, Ian Campbell wrote: > > On Fri, 2012-07-27 at 15:25 +0100, Stefano Stabellini wrote: > > > On Fri, 27 Jul 2012, Ian Campbell wrote: > > > > On Thu, 2012-07-26 at 16:33 +0100, Stefano Stabellini wrote: > > >

Re: [PATCH 14/24] xen/arm: initialize grant_table on ARM

2012-08-01 Thread Stefano Stabellini
On Wed, 1 Aug 2012, Konrad Rzeszutek Wilk wrote: > On Thu, Jul 26, 2012 at 04:33:56PM +0100, Stefano Stabellini wrote: > > Initialize the grant table mapping at the address specified at index 0 > > in the DT under the /xen node. > > Is it always index 0? If so, should it have a #define for the > o

Re: [PATCH 20/24] xen: update xen_add_to_physmap interface

2012-08-01 Thread Mukesh Rathor
On Wed, 1 Aug 2012 10:52:15 -0400 Konrad Rzeszutek Wilk wrote: > On Thu, Jul 26, 2012 at 04:34:02PM +0100, Stefano Stabellini wrote: > > Update struct xen_add_to_physmap to be in sync with Xen's version > > of the structure. > > The size field was introduced by: > > > > changeset: 24164:707d27

Re: [PATCH 01/24] arm: initial Xen support

2012-08-01 Thread Rob Herring
On 07/26/2012 10:33 AM, Stefano Stabellini wrote: > - Basic hypervisor.h and interface.h definitions. > - Skelethon enlighten.c, set xen_start_info to an empty struct. > - Do not limit xen_initial_domain to PV guests. > > The new code only compiles when CONFIG_XEN is set, that is going to be > add