[PATCH 2/2] mmc: block: remove unused name_idx

2012-08-06 Thread Dirk Behme
With the previous patch "mmc: block: mmcblkN: use slot index instead of dynamic name index" name_idx is not needed any more. Signed-off-by: Dirk Behme CC: Jassi Brar CC: Chris Ball --- drivers/mmc/card/block.c | 16 1 files changed, 0 insertions(+), 16 deletions(-) diff --g

[PATCH 1/2] mmc: block: mmcblkN: use slot index instead of dynamic name index

2012-08-06 Thread Dirk Behme
On embedded devices, often there is a combination of removable mmc devices (e.g. MMC/SD cards) and hard wired ones (e.g. eMMC). Depending on the hardware configuration, the 'mmcblkN' node might change if the removable device is available or not at boot time. E.g. if the removable device is attache

Re: [PATH v3 2/2] v4l: Add v4l2 subdev driver for S5K4ECGX sensor

2012-08-06 Thread Sangwook Lee
Hi Sylwester On 2 August 2012 22:18, Sylwester Nawrocki wrote: > On 08/02/2012 03:42 PM, Sangwook Lee wrote: > > This driver implements preview mode of the S5K4ECGX sensor. > > capture (snapshot) operation, face detection are missing now. > > > > Following controls are supported: > > contrast/sat

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

2012-08-06 Thread Stefano Stabellini
On Wed, 1 Aug 2012, Konrad Rzeszutek Wilk wrote: > 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 defa

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

2012-08-06 Thread Stefano Stabellini
On Thu, 2 Aug 2012, Konrad Rzeszutek Wilk wrote: > On Thu, Aug 02, 2012 at 08:35:51AM +0100, Ian Campbell wrote: > > On Wed, 2012-08-01 at 19:27 +0100, Rob Herring wrote: > > > On 07/26/2012 10:33 AM, Stefano Stabellini wrote: > > > > - Basic hypervisor.h and interface.h definitions. > > > > - Skel

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

2012-08-06 Thread Stefano Stabellini
On Wed, 1 Aug 2012, Konrad Rzeszutek Wilk wrote: > > > > +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? >

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

2012-08-06 Thread Stefano Stabellini
On Wed, 1 Aug 2012, Konrad Rzeszutek Wilk wrote: > 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_loc

[PATCH v2 00/23] Introduce Xen support on ARM

2012-08-06 Thread Stefano Stabellini
Hi all, this patch series implements Xen support for ARMv7 with virtualization extensions. It allows a Linux guest to boot as dom0 and as domU on Xen on ARM. PV console, disk and network frontends and backends are all working correctly. It has been tested on a Versatile Express Cortex A15 emulato

[PATCH v2 10/23] xen/arm: compile and run xenbus

2012-08-06 Thread Stefano Stabellini
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. Changes in v2: - refactor xenbus_init. Signed-off-by: Stefano Stabellini ---

[PATCH v2 04/23] xen/arm: sync_bitops

2012-08-06 Thread Stefano Stabellini
sync_bitops functions are equivalent to the SMP implementation of the original functions, independently from CONFIG_SMP being defined. We need them because _set_bit etc are not SMP safe if !CONFIG_SMP. But under Xen you might be communicating with a completely external entity who might be on anoth

[PATCH v2 07/23] xen/arm: Xen detection and shared_info page mapping

2012-08-06 Thread Stefano Stabellini
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. Changes in v2: - replace pr_info with pr_debug. Signed-off-by: Stefano Stabelli

[PATCH v2 03/23] xen/arm: page.h definitions

2012-08-06 Thread Stefano Stabellini
ARM Xen guests always use paging in hardware, like PV on HVM guests in the X86 world. Signed-off-by: Stefano Stabellini --- arch/arm/include/asm/xen/page.h | 79 +++ 1 files changed, 79 insertions(+), 0 deletions(-) create mode 100644 arch/arm/include/asm/x

[PATCH v2 08/23] xen/arm: Introduce xen_pfn_t for pfn and mfn types

2012-08-06 Thread Stefano Stabellini
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. Bring back xen_pfn_t and let each architecture define xen_pfn_t as they see fit.

[PATCH v2 09/23] xen/arm: Introduce xen_ulong_t for unsigned long

2012-08-06 Thread Stefano Stabellini
All the original Xen headers have xen_ulong_t as unsigned long type, however when they have been imported in Linux, xen_ulong_t has been replaced with unsigned long. That might work for x86 and ia64 but it does not for arm. Bring back xen_ulong_t and let each architecture define xen_ulong_t as they

[PATCH v2 05/23] xen/arm: empty implementation of grant_table arch specific functions

2012-08-06 Thread Stefano Stabellini
Changes in v2: - return -ENOSYS rather than -1. 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 mode 100644 arch/arm/xen/grant-ta

[PATCH v2 02/23] xen/arm: hypercalls

2012-08-06 Thread Stefano Stabellini
Use r12 to pass the hypercall number to the hypervisor. We need a register to pass the hypercall number because we might not know it at compile time and HVC only takes an immediate argument. Among the available registers r12 seems to be the best choice because it is defined as "intra-procedure ca

[PATCH v2 06/23] xen: missing includes

2012-08-06 Thread Stefano Stabellini
Changes in v2: - remove pvclock hack; - remove include linux/types.h from xen/interface/xen.h. Signed-off-by: Stefano Stabellini --- arch/x86/include/asm/xen/interface.h |2 ++ drivers/tty/hvc/hvc_xen.c |2 ++ drivers/xen/grant-table.c |1 + dr

[PATCH v2 01/23] arm: initial Xen support

2012-08-06 Thread Stefano Stabellini
- Basic hypervisor.h and interface.h definitions. - Skeleton enlighten.c, set xen_start_info to an empty struct. - Make xen_initial_domain dependent on the SIF_PRIVILIGED_BIT. The new code only compiles when CONFIG_XEN is set, that is going to be added to arch/arm/Kconfig in patch #11 "xen/arm: in

[PATCH v2 22/23] arm/v2m: initialize arch_timers even if v2m_timer is not present

2012-08-06 Thread Stefano Stabellini
Signed-off-by: Stefano Stabellini CC: Russell King --- arch/arm/mach-vexpress/v2m.c | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-vexpress/v2m.c b/arch/arm/mach-vexpress/v2m.c index fde26ad..dee1451 100644 --- a/arch/arm/mach-vexpress/v2m.c +++

[PATCH v2 17/23] xen/arm: implement alloc/free_xenballooned_pages with alloc_pages/kfree

2012-08-06 Thread Stefano Stabellini
Only until we get the balloon driver to work. Signed-off-by: Stefano Stabellini --- arch/arm/xen/enlighten.c | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/arch/arm/xen/enlighten.c b/arch/arm/xen/enlighten.c index 87b17f0..c244583 100644 --- a/arch/arm

[PATCH v2 19/23] xen/arm: compile blkfront and blkback

2012-08-06 Thread Stefano Stabellini
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-blkback/blkback.c b/drivers/block/xen-blkback/blkback.c index 73f196c..63dd5b9 10

[PATCH v2 16/23] xen: clear IRQ_NOAUTOEN and IRQ_NOREQUEST

2012-08-06 Thread Stefano Stabellini
Reset the IRQ_NOAUTOEN and IRQ_NOREQUEST flags that are enabled by default on ARM. If IRQ_NOAUTOEN is set, __setup_irq doesn't call irq_startup, that is responsible for calling irq_unmask at startup time. As a result event channels remain masked. Signed-off-by: Stefano Stabellini --- drivers/xen

[PATCH v2 12/23] xen/arm: introduce CONFIG_XEN on ARM

2012-08-06 Thread Stefano Stabellini
Changes in v2: - mark Xen guest support on ARM as EXPERIMENTAL. 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..f14664b 100644 --- a/arch/arm/Kconfig +++

[PATCH v2 14/23] xen/arm: initialize grant_table on ARM

2012-08-06 Thread Stefano Stabellini
Initialize the grant table mapping at the address specified at index 0 in the DT under the /xen node. After the grant table is initialized, call xenbus_probe (if not dom0). Changes in v2: - introduce GRANT_TABLE_PHYSADDR; - remove unneeded initialization of boot_max_nr_grant_frames. Signed-off-b

[PATCH v2 15/23] xen/arm: receive Xen events on ARM

2012-08-06 Thread Stefano Stabellini
Compile events.c on ARM. Parse, map and enable the IRQ to get event notifications from the device tree (node "/xen"). Signed-off-by: Stefano Stabellini --- arch/arm/include/asm/xen/events.h | 18 ++ arch/arm/xen/enlighten.c | 33 + arc

[PATCH v2 13/23] xen/arm: get privilege status

2012-08-06 Thread Stefano Stabellini
Use Xen features to figure out if we are privileged. XENFEAT_dom0 was introduced by 23735 in xen-unstable.hg. Signed-off-by: Stefano Stabellini --- arch/arm/xen/enlighten.c |7 +++ include/xen/interface/features.h |3 +++ 2 files changed, 10 insertions(+), 0 deletions(-) di

[PATCH v2 18/23] xen: allow privcmd for HVM guests

2012-08-06 Thread Stefano Stabellini
This patch removes the "return -ENOSYS" for auto_translated_physmap guests from privcmd_mmap, thus it allows ARM guests to issue privcmd mmap calls. However privcmd mmap calls are still going to fail for HVM and hybrid guests on x86 because the xen_remap_domain_mfn_range implementation is currently

[PATCH v2 20/23] xen/arm: compile netback

2012-08-06 Thread Stefano Stabellini
Signed-off-by: Stefano Stabellini --- arch/arm/include/asm/xen/hypercall.h | 19 +++ drivers/net/xen-netback/netback.c|1 + drivers/net/xen-netfront.c |1 + 3 files changed, 21 insertions(+), 0 deletions(-) diff --git a/arch/arm/include/asm/xen/hypercall.h

[PATCH v2 21/23] xen: update xen_add_to_physmap interface

2012-08-06 Thread Stefano Stabellini
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 + summary: mm: New XENMEM space, XENMAPSPACE_gmfn_range According to the c

[PATCH v2 11/23] xen: do not compile manage, balloon, pci, acpi and cpu_hotplug on ARM

2012-08-06 Thread Stefano Stabellini
Changes in v2: - make pci.o depend on CONFIG_PCI and acpi.o depend on CONFIG_ACPI. Signed-off-by: Stefano Stabellini --- drivers/xen/Makefile | 11 --- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/xen/Makefile b/drivers/xen/Makefile index fc34886..bee02b2 100

[PATCH v2 23/23] [HACK] xen/arm: implement xen_remap_domain_mfn_range

2012-08-06 Thread Stefano Stabellini
From: Ian Campbell Do not apply! This is a simple, hacky implementation of xen_remap_domain_mfn_range, using XENMAPSPACE_gmfn_foreign. It should use same interface as hybrid x86. Changes in v2: - retain binary compatibility in xen_add_to_physmap: use a union. Signed-off-by: Ian Campbell Sig

Re: [PATCH 1/2] mmc: block: mmcblkN: use slot index instead of dynamic name index

2012-08-06 Thread Chris Ball
Hi, On Mon, Aug 06 2012, Dirk Behme wrote: > On embedded devices, often there is a combination of removable mmc > devices (e.g. MMC/SD cards) and hard wired ones (e.g. eMMC). > Depending on the hardware configuration, the 'mmcblkN' node might > change if the removable device is available or not at

Re: [PATCH 1/2] mmc: block: mmcblkN: use slot index instead of dynamic name index

2012-08-06 Thread Jassi Brar
On 6 August 2012 21:01, Chris Ball wrote: > Hi, > > On Mon, Aug 06 2012, Dirk Behme wrote: >> On embedded devices, often there is a combination of removable mmc >> devices (e.g. MMC/SD cards) and hard wired ones (e.g. eMMC). >> Depending on the hardware configuration, the 'mmcblkN' node might >> c

Re: [Xen-devel] [PATCH v2 07/23] xen/arm: Xen detection and shared_info page mapping

2012-08-06 Thread David Vrabel
On 06/08/12 15:27, 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. > > Changes in v2: > > -