Re: [PATCH v6 00/15] memory-hotplug: hot-remove physical memory

2013-01-30 Thread Tang Chen
On 01/31/2013 02:19 PM, Simon Jeons wrote: Hi Tang, On Thu, 2013-01-31 at 11:31 +0800, Tang Chen wrote: Hi Simon, Please see below. :) On 01/31/2013 09:22 AM, Simon Jeons wrote: Sorry, I still confuse. :( update node_states[N_NORMAL_MEMORY] to node_states[N_MEMORY] or node_states[N_NORMAL_ME

Re: [PATCH v6 00/15] memory-hotplug: hot-remove physical memory

2013-01-30 Thread Simon Jeons
Hi Tang, On Thu, 2013-01-31 at 11:31 +0800, Tang Chen wrote: > Hi Simon, > > Please see below. :) > > On 01/31/2013 09:22 AM, Simon Jeons wrote: > > > > Sorry, I still confuse. :( > > update node_states[N_NORMAL_MEMORY] to node_states[N_MEMORY] or > > node_states[N_NORMAL_MEMOR] present 0...ZONE_

Re: [RFC PATCH v2 01/12] Add sys_hotplug.h for system device hotplug framework

2013-01-30 Thread Greg KH
On Wed, Jan 30, 2013 at 06:15:12PM -0700, Toshi Kani wrote: > > Please make it a "real" pointer, and not a void *, those shouldn't be > > used at all if possible. > > How about changing the "void *handle" to acpi_dev_node below? > >struct acpi_dev_nodeacpi_node; > > Basically, it has

[PATCH][UPSTEAM] powerpc/mpic: add irq_set_wake support

2013-01-30 Thread Wang Dongsheng
Add irq_set_wake support. Just add IRQF_NO_SUSPEND to desc->action->flag. So the wake up interrupt will not be disable in suspend_device_irqs. Signed-off-by: Wang Dongsheng --- arch/powerpc/sysdev/mpic.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/arch

Re: [PATCH v6 00/15] memory-hotplug: hot-remove physical memory

2013-01-30 Thread Tang Chen
Hi Simon, Please see below. :) On 01/31/2013 09:22 AM, Simon Jeons wrote: Sorry, I still confuse. :( update node_states[N_NORMAL_MEMORY] to node_states[N_MEMORY] or node_states[N_NORMAL_MEMOR] present 0...ZONE_MOVABLE? node_states is what? node_states[N_NORMAL_MEMOR] or node_states[N_MEMORY]?

Re: [RFC PATCH v2 01/12] Add sys_hotplug.h for system device hotplug framework

2013-01-30 Thread Toshi Kani
On Tue, 2013-01-29 at 23:58 -0500, Greg KH wrote: > On Thu, Jan 10, 2013 at 04:40:19PM -0700, Toshi Kani wrote: > > +/* > > + * Hot-plug device information > > + */ > > Again, stop it with the "generic" hotplug term here, and everywhere > else. You are doing a very _specific_ type of hotplug devi

Re: [PATCH 0/3] Enable multiple MSI feature in pSeries

2013-01-30 Thread Mike
Hi all Any comments about my patchset? Thanks Mike 在 2013-01-15二的 15:38 +0800,Mike Qiu写道: > Currently, multiple MSI feature hasn't been enabled in pSeries, > These patches try to enbale this feature. > > These patches have been tested by using ipr driver, and the driver patch > has been made b

Re: [RFC PATCH v2 03/12] drivers/base: Add system device hotplug framework

2013-01-30 Thread Toshi Kani
On Tue, 2013-01-29 at 23:54 -0500, Greg KH wrote: > On Thu, Jan 10, 2013 at 04:40:21PM -0700, Toshi Kani wrote: > > Added sys_hotplug.c, which is the system device hotplug framework code. > > > > shp_register_handler() allows modules to register their hotplug handlers > > to the framework. shp_su

Re: [RFC PATCH v2 01/12] Add sys_hotplug.h for system device hotplug framework

2013-01-30 Thread Toshi Kani
On Tue, 2013-01-29 at 23:53 -0500, Greg KH wrote: > On Thu, Jan 10, 2013 at 04:40:19PM -0700, Toshi Kani wrote: > > Added include/linux/sys_hotplug.h, which defines the system device > > hotplug framework interfaces used by the framework itself and > > handlers. > > > > The order values define the

Re: [RFC PATCH v2 02/12] ACPI: Add sys_hotplug.h for system device hotplug framework

2013-01-30 Thread Toshi Kani
On Tue, 2013-01-29 at 23:51 -0500, Greg KH wrote: > On Mon, Jan 14, 2013 at 12:21:30PM -0700, Toshi Kani wrote: > > On Mon, 2013-01-14 at 20:07 +0100, Rafael J. Wysocki wrote: > > > On Monday, January 14, 2013 11:42:09 AM Toshi Kani wrote: > > > > On Mon, 2013-01-14 at 19:47 +0100, Rafael J. Wysock

Re: [RFC PATCH v2 01/12] Add sys_hotplug.h for system device hotplug framework

2013-01-30 Thread Toshi Kani
On Tue, 2013-01-29 at 23:48 -0500, Greg KH wrote: > On Mon, Jan 14, 2013 at 12:02:04PM -0700, Toshi Kani wrote: > > On Mon, 2013-01-14 at 19:48 +0100, Rafael J. Wysocki wrote: > > > On Monday, January 14, 2013 08:33:48 AM Toshi Kani wrote: > > > > On Fri, 2013-01-11 at 22:23 +0100, Rafael J. Wysock

Re: [PATCH v6 00/15] memory-hotplug: hot-remove physical memory

2013-01-30 Thread Simon Jeons
Hi Tang, On Wed, 2013-01-30 at 18:15 +0800, Tang Chen wrote: > Hi Simon, > > Please see below. :) > > On 01/29/2013 08:52 PM, Simon Jeons wrote: > > Hi Tang, > > > > On Wed, 2013-01-09 at 17:32 +0800, Tang Chen wrote: > >> Here is the physical memory hot-remove patch-set based on 3.8rc-2. > > > >

powerpc/usb: machine check when writing to portsc in ehci-fsl

2013-01-30 Thread Guy Yribarren
Currently using kernel 3.7.1 with mpc8315e, I am observing instability during the usb initialisation. The usb controller is set as a host controller with internal PHY defined in UTMI mode. This issue appears sometimes after a warm reset. The kernel hangs and the log buffer contents shows that a mac

[GIT PULL 00/21] perf/core improvements and fixes

2013-01-30 Thread Arnaldo Carvalho de Melo
Hi Ingo, Please consider pulling. Namhyung, Jiri, the 'group report' patches are at acme/perf/group, will send a pull req later if it survives further testing. - Arnaldo The following changes since commit a2d28d0c198b65fac28ea6212f5f8edc77b29c27: Merge tag 'perf-core-for-ming

[PATCH 16/21] perf tools, powerpc: Fix compile warnings in tests/attr.c

2013-01-30 Thread Arnaldo Carvalho de Melo
From: Sukadev Bhattiprolu We print several '__u64' quantities using '%llu'. On powerpc, we by default include ' which results in __u64 being an unsigned long. This causes compile warnings which are treated as errors due to '-Werror'. By defining __SANE_USERSPACE_TYPES__ we include and define __

[PATCH 5/5] KVM: PPC: e500mc: Enable e6500 cores

2013-01-30 Thread Mihai Caraman
Extend processor compatibility names to e6500 cores. Signed-off-by: Mihai Caraman --- arch/powerpc/kvm/e500mc.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/kvm/e500mc.c b/arch/powerpc/kvm/e500mc.c index 1f89d26..6c87299 100644 --- a/arch/powerpc/kvm/e50

[PATCH 4/5] KVM: PPC: e500: Emulate EPTCFG register

2013-01-30 Thread Mihai Caraman
EPTCFG register defined by E.PT is accessed unconditionally by Linux guests in the presence of MAV 2.0. Emulate EPTCFG register now. Signed-off-by: Mihai Caraman --- arch/powerpc/include/asm/kvm_host.h |1 + arch/powerpc/kvm/e500.h |6 ++ arch/powerpc/kvm/e500_emulate.c

[PATCH 3/5] KVM: PPC: e500: Remove E.PT category from VCPUs

2013-01-30 Thread Mihai Caraman
Embedded.Page Table (E.PT) category in VMs requires indirect tlb entries emulation which is not supported yet. Configure TLBnCFG to remove E.PT category from VCPUs. Signed-off-by: Mihai Caraman --- arch/powerpc/kvm/e500_mmu.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) d

[PATCH 0/5] KVM: PPC: e500: Enable FSL e6500 core

2013-01-30 Thread Mihai Caraman
Enable Freescale e6500 core adding missing MAV 2.0 support. LRAT and Page Table are not addresses by this commit. Mihai Caraman (5): KVM: PPC: e500: Move VCPU's MMUCFG register initialization earlier KVM: PPC: e500: Emulate TLBnPS registers KVM: PPC: e500: Remove E.PT category from VCPUs K

[PATCH 2/5] KVM: PPC: e500: Emulate TLBnPS registers

2013-01-30 Thread Mihai Caraman
Emulate TLBnPS registers which are available in MMU Architecture Version (MAV) 2.0. Signed-off-by: Mihai Caraman --- arch/powerpc/include/asm/kvm_host.h |1 + arch/powerpc/kvm/e500.h |5 + arch/powerpc/kvm/e500_emulate.c | 10 ++ arch/powerpc/kvm/e500_mmu.c

[PATCH 1/5] KVM: PPC: e500: Move VCPU's MMUCFG register initialization earlier

2013-01-30 Thread Mihai Caraman
VCPU's MMUCFG register initialization should not depend on KVM_CAP_SW_TLB ioctl call. Move it earlier into tlb initalization phase. Signed-off-by: Mihai Caraman --- arch/powerpc/kvm/e500_mmu.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kvm/e500_mmu.c

[RFC PATCH 2/3] arch/powerpc: Reduce the PTE_INDEX_SIZE

2013-01-30 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" This make one PMD cover 16MB range. That helps in easier implementation of THP on power. THP core code make use of one pmd entry to track the huge page and the range mapped by a single pmd entry should be equal to the huge page size supported by the hardware. Signed-off-

[RFC PATCH 3/3] powerpc: Reduce PTE table memory wastage

2013-01-30 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" We now have PTE page consuming only 2K of the 64K page.This is in order to facilitate transparent huge page support, which works much better if our PMDs cover 16MB instead of 256MB. Inorder to reduce the wastage, we now have multiple PTE page fragment from the same PTE p

[RFC PATCH 1/3] powerpc: Don't hard code the size of pte page

2013-01-30 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" USE PTRS_PER_PTE to indicate the size of pte page. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/pgtable.h |6 ++ arch/powerpc/mm/hash_low_64.S |4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/include/

[RFC PATCH 1/3] powerpc: Add support for multiple PTE page fragment in PTE page

2013-01-30 Thread Aneesh Kumar K.V
Hello, This is the preparatory patchset for supporting THP on powerpc. I am sending this across so that we can get review on this change. For full THP support on powerpc, I have an early version that boots and runs few test. But I am still running into few issues, like Firmware NMI etc. Once t

Re: [PATCH v2] ppc/iommu: use find_first_bit to look up entries in the iommu table

2013-01-30 Thread Thadeu Lima de Souza Cascardo
On Tue, Jan 29, 2013 at 11:35:56AM +1100, Benjamin Herrenschmidt wrote: > On Thu, 2013-01-10 at 17:33 -0200, Thadeu Lima de Souza Cascardo wrote: > > Signed-off-by: Thadeu Lima de Souza Cascardo > > --- > > v2: > > Remove the unneeded extra variable i, which caused build failure. > > I believe so

Re: [PATCH v6 00/15] memory-hotplug: hot-remove physical memory

2013-01-30 Thread Tang Chen
On 01/30/2013 06:15 PM, Tang Chen wrote: Hi Simon, Please see below. :) On 01/29/2013 08:52 PM, Simon Jeons wrote: Hi Tang, On Wed, 2013-01-09 at 17:32 +0800, Tang Chen wrote: Here is the physical memory hot-remove patch-set based on 3.8rc-2. Some questions ask you, not has relationship wi

Re: [PATCH v6 00/15] memory-hotplug: hot-remove physical memory

2013-01-30 Thread Tang Chen
Hi Simon, Please see below. :) On 01/29/2013 08:52 PM, Simon Jeons wrote: Hi Tang, On Wed, 2013-01-09 at 17:32 +0800, Tang Chen wrote: Here is the physical memory hot-remove patch-set based on 3.8rc-2. Some questions ask you, not has relationship with this patchset, but is memory hotplug st

Re: PREMPT_RT

2013-01-30 Thread Vineeth
Hi, I've added a VDSO patch on my 2.6.32 kernel. When i enabled PREMPT_RT i am getting the below oops messages. What is the reason for this ? When googled, it was mentioned in many places that it is caused by the get_cpu()/put_cpu() preempt disabled region. Can someone help me to understand this ?

PREMPT_RT

2013-01-30 Thread Vineeth
Hi, I've added a VDSO patch on my 2.6.32 kernel. When i enabled PREMPT_RT i am getting the below oops messages. What is the reason for this ? When googled, it was mentioned in many places that it is caused by the get_cpu()/put_cpu() preempt disabled region. Can someone help me to understand this ?

Re: [RFC PATCH v2 01/12] Add sys_hotplug.h for system device hotplug framework

2013-01-30 Thread Greg KH
On Thu, Jan 10, 2013 at 04:40:19PM -0700, Toshi Kani wrote: > +/* > + * Hot-plug device information > + */ Again, stop it with the "generic" hotplug term here, and everywhere else. You are doing a very _specific_ type of hotplug devices, so spell it out. We've worked hard to hotplug _everything_

Re: [RFC PATCH v2 03/12] drivers/base: Add system device hotplug framework

2013-01-30 Thread Greg KH
On Thu, Jan 10, 2013 at 04:40:21PM -0700, Toshi Kani wrote: > Added sys_hotplug.c, which is the system device hotplug framework code. > > shp_register_handler() allows modules to register their hotplug handlers > to the framework. shp_submit_req() provides the interface to submit > a hotplug or o

Re: [RFC PATCH v2 01/12] Add sys_hotplug.h for system device hotplug framework

2013-01-30 Thread Greg KH
On Thu, Jan 10, 2013 at 04:40:19PM -0700, Toshi Kani wrote: > Added include/linux/sys_hotplug.h, which defines the system device > hotplug framework interfaces used by the framework itself and > handlers. > > The order values define the calling sequence of handlers. For add > execute, the orderin

Re: [RFC PATCH v2 02/12] ACPI: Add sys_hotplug.h for system device hotplug framework

2013-01-30 Thread Greg KH
On Mon, Jan 14, 2013 at 12:21:30PM -0700, Toshi Kani wrote: > On Mon, 2013-01-14 at 20:07 +0100, Rafael J. Wysocki wrote: > > On Monday, January 14, 2013 11:42:09 AM Toshi Kani wrote: > > > On Mon, 2013-01-14 at 19:47 +0100, Rafael J. Wysocki wrote: > > > > On Monday, January 14, 2013 08:53:53 AM T

Re: [RFC PATCH v2 01/12] Add sys_hotplug.h for system device hotplug framework

2013-01-30 Thread Greg KH
On Mon, Jan 14, 2013 at 12:02:04PM -0700, Toshi Kani wrote: > On Mon, 2013-01-14 at 19:48 +0100, Rafael J. Wysocki wrote: > > On Monday, January 14, 2013 08:33:48 AM Toshi Kani wrote: > > > On Fri, 2013-01-11 at 22:23 +0100, Rafael J. Wysocki wrote: > > > > On Thursday, January 10, 2013 04:40:19 PM