Re: [PATCH v2 1/4] uprobes: add trap variant helper

2013-03-26 Thread Srikar Dronamraju
* Ananth N Mavinakayanahalli [2013-03-22 20:46:27]: > From: Ananth N Mavinakayanahalli > > Some architectures like powerpc have multiple variants of the trap > instruction. Introduce an additional helper is_trap_insn() for run-time > handling of non-uprobe traps on such architectures. > > Whil

Re: [PATCH v2 2/4] uprobes: refuse uprobe on trap variants

2013-03-26 Thread Srikar Dronamraju
* Ananth N Mavinakayanahalli [2013-03-22 20:47:58]: > From: Ananth N Mavinakayanahalli > > Refuse to place a uprobe if a trap variant already exists in the > file copy at the address. > > Signed-off-by: Ananth N Mavinakayanahalli Acked-by: Srikar Dronamraju > --- > kernel/events/uprobes.c

Re: [PATCH v2 3/4] uprobes/powerpc: teach uprobes to ignore gdb breakpoints

2013-03-26 Thread Srikar Dronamraju
* Ananth N Mavinakayanahalli [2013-03-22 20:48:38]: > From: Ananth N Mavinakayanahalli > > Powerpc has many trap variants that could be used by entities like gdb. > Currently, running gdb on a program being traced by uprobes causes an > endless loop since uprobes doesn't understand that the tra

Re: [PATCH v2 4/4] uprobes/powerpc: remove additional trap instruction check

2013-03-26 Thread Srikar Dronamraju
* Ananth N Mavinakayanahalli [2013-03-22 20:49:46]: > From: Ananth N Mavinakayanahalli > > prepare_uprobe() already checks if the underlying unstruction > (on file) is a trap variant. We don't need to check this again. > > Signed-off-by: Ananth N Mavinakayanahalli Acked-by: Srikar Dronamraju

[PATCH v3, part4 28/39] mm/ppc: prepare for removing num_physpages and simplify mem_init()

2013-03-26 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-ker...@vger.kernel.org --- Hi all, Sorry for my mistake that my previous patch series has been screwed up. So I

Re: [PATCH 2/3] powerpc/mpic: add global timer support

2013-03-26 Thread Scott Wood
On 03/25/2013 10:29:58 PM, Wang Dongsheng-B40534 wrote: > -Original Message- > From: Wood Scott-B07421 > Sent: Saturday, March 23, 2013 6:30 AM > To: Wang Dongsheng-B40534 > Cc: Wood Scott-B07421; Gala Kumar-B11780; linuxppc-dev@lists.ozlabs.org; > Li Yang-R58472 > Subject: Re: [PATC

Re: [PATCH] [RFC] powerpc: Add VDSO version of time

2013-03-26 Thread Adhemerval Zanella
Hi all, Just sending a ping about this patch. On 21-03-2013 10:40, Adhemerval Zanella wrote: > On 20-03-2013 02:00, Benjamin Herrenschmidt wrote: >> On Tue, 2013-03-19 at 16:55 -0300, Adhemerval Zanella wrote: >>> I focused on 64 bit kernel, do I need to provide a scheme for 32 bits >>> as well?

Re: [PATCH 3/3] powerpc/fsl: add MPIC timer wakeup support

2013-03-26 Thread Scott Wood
On 03/25/2013 10:27:24 PM, Wang Dongsheng-B40534 wrote: > -Original Message- > From: Wood Scott-B07421 > Sent: Saturday, March 23, 2013 6:11 AM > To: Wang Dongsheng-B40534 > Cc: Wood Scott-B07421; Gala Kumar-B11780; linuxppc-dev@lists.ozlabs.org; > Zhao Chenhui-B35336; Li Yang-R58472

[PATCH 0/3] mm: avoid duplication of setup_nr_node_ids()

2013-03-26 Thread Cody P Schafer
In arch/powerpc, arch/x86, and mm/page_alloc code to setup nr_node_ids based on node_possible_map is duplicated. This patchset switches those copies to calling the function provided by page_alloc. ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs

[PATCH 1/3] page_alloc: make setup_nr_node_ids() usable for arch init code

2013-03-26 Thread Cody P Schafer
powerpc and x86 were opencoding copies of setup_nr_node_ids(), which page_alloc provides but makes static. Make it avaliable to the archs in linux/mm.h. Signed-off-by: Cody P Schafer --- include/linux/mm.h | 6 ++ mm/page_alloc.c| 6 +- 2 files changed, 7 insertions(+), 5 deletions(-

[PATCH 3/3] powerpc/mm/numa: use setup_nr_node_ids() instead of opencoding.

2013-03-26 Thread Cody P Schafer
Signed-off-by: Cody P Schafer --- arch/powerpc/mm/numa.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index bba87ca..7574ae3 100644 --- a/arch/powerpc/mm/numa.c +++ b/arch/powerpc/mm/numa.c @@ -62,14 +62,11 @@ static

[PATCH 2/3] x86/mm/numa: use setup_nr_node_ids() instead of opencoding.

2013-03-26 Thread Cody P Schafer
Signed-off-by: Cody P Schafer --- arch/x86/mm/numa.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/arch/x86/mm/numa.c b/arch/x86/mm/numa.c index 72fe01e..a71c4e2 100644 --- a/arch/x86/mm/numa.c +++ b/arch/x86/mm/numa.c @@ -114,14 +114,11 @@ void numa_clear_node(int

Re: [PATCH 2/3] x86/mm/numa: use setup_nr_node_ids() instead of opencoding.

2013-03-26 Thread Yinghai Lu
On Tue, Mar 26, 2013 at 10:46 AM, Cody P Schafer wrote: > Signed-off-by: Cody P Schafer > --- > arch/x86/mm/numa.c | 9 +++-- > 1 file changed, 3 insertions(+), 6 deletions(-) > > diff --git a/arch/x86/mm/numa.c b/arch/x86/mm/numa.c > index 72fe01e..a71c4e2 100644 > --- a/arch/x86/mm/numa.c

Re: [PATCHv2 1/3] pci: added pcie_get_speed_cap_mask function

2013-03-26 Thread Bjorn Helgaas
On Tue, Mar 19, 2013 at 11:24 PM, Lucas Kannebley Tavares wrote: > Added function to gather the speed cap for a device and return a mask to > supported speeds. The function is divided into an interface and a weak > implementation so that architecture-specific functions can be called. > > This is t

[PATCH 4/7 v2] KVM: PPC: e500: Add support for EPTCFG register

2013-03-26 Thread Mihai Caraman
EPTCFG register defined by E.PT is accessed unconditionally by Linux guests in the presence of MAV 2.0. Support it now. Signed-off-by: Mihai Caraman --- v2: - Use has_feature() function Documentation/virtual/kvm/api.txt |1 + arch/powerpc/include/asm/kvm_host.h |1 + arch/powerpc/inc

[PATCH 5/7 v2] KVM: PPC: e500: Remove E.PT and E.HV.LRAT categories from VCPUs

2013-03-26 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 and E.HV.LRAT categories from VCPUs. Signed-off-by: Mihai Caraman --- v2: - Remove E.HV.LRAT from vcpus arch/powerpc/kvm/e500_mmu.c |6 ++ 1 f

[PATCH 7/7 v2] KVM: PPC: e500: Add e6500 core to Kconfig description

2013-03-26 Thread Mihai Caraman
Add e6500 core to Kconfig description. Signed-off-by: Mihai Caraman --- v2: - New patch arch/powerpc/kvm/Kconfig |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kvm/Kconfig b/arch/powerpc/kvm/Kconfig index 63c67ec..4489520 100644 --- a/arch/powerpc/kv

[PATCH 6/7 v2] KVM: PPC: e500mc: Enable e6500 cores

2013-03-26 Thread Mihai Caraman
Extend processor compatibility names to e6500 cores. Signed-off-by: Mihai Caraman Reviewed-by: Alexander Graf --- v2: - No change 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 ab0

[PATCH 3/7 v2] KVM: PPC: e500: Add support for TLBnPS registers

2013-03-26 Thread Mihai Caraman
Add support for TLBnPS registers available in MMU Architecture Version (MAV) 2.0. Signed-off-by: Mihai Caraman --- v2: - Add vcpu generic function has_feature() Documentation/virtual/kvm/api.txt |4 arch/powerpc/include/asm/kvm_host.h |1 + arch/powerpc/include/uapi/asm/kvm.h |

[PATCH 1/7 v2] KVM: PPC: e500: Expose MMU registers via ONE_REG

2013-03-26 Thread Mihai Caraman
MMU registers were exposed to user-space using sregs interface. Add them to ONE_REG interface and use kvmppc_get_one_reg/kvmppc_set_one_reg delegation interface introduced by book3s. Signed-off-by: Mihai Caraman --- v2: - Restrict set_one_reg operation for MMU registers to HW values Documentat

[PATCH 2/7 v2] KVM: PPC: e500: Move vcpu's MMU configuration to dedicated functions

2013-03-26 Thread Mihai Caraman
Vcpu's MMU default configuration and geometry update logic was buried in a chunk of code. Move them to dedicated functions to add more clarity. Signed-off-by: Mihai Caraman --- v2: - Add better patch description. Hopefully :) arch/powerpc/kvm/e500_mmu.c | 60 +++--

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

2013-03-26 Thread Mihai Caraman
Enable basic support for Freescale e6500 core, adding MAV 2.0 support. Validated on T4240QDS platfrom. Altivec, Multithreading and HW Tablewalk are not addressed by this patchset. Mihai Caraman (7): KVM: PPC: e500: Expose MMU registers via ONE_REG KVM: PPC: e500: Move vcpu's MMU configuration

Re: [PATCH 3/7 v2] KVM: PPC: e500: Add support for TLBnPS registers

2013-03-26 Thread Scott Wood
On 03/26/2013 05:05:08 PM, Mihai Caraman wrote: diff --git a/arch/powerpc/kvm/e500.h b/arch/powerpc/kvm/e500.h index b73ca7a..795934d 100644 --- a/arch/powerpc/kvm/e500.h +++ b/arch/powerpc/kvm/e500.h @@ -23,6 +23,8 @@ #include #include +#define VCPU_FTR_MMU_V20 enum? We d

RE: [PATCH 3/3] powerpc/fsl: add MPIC timer wakeup support

2013-03-26 Thread Wang Dongsheng-B40534
> -Original Message- > From: Wood Scott-B07421 > Sent: Wednesday, March 27, 2013 1:36 AM > To: Wang Dongsheng-B40534 > Cc: Wood Scott-B07421; Gala Kumar-B11780; linuxppc-dev@lists.ozlabs.org; > Zhao Chenhui-B35336; Li Yang-R58472 > Subject: Re: [PATCH 3/3] powerpc/fsl: add MPIC timer wake

RE: [PATCH 2/3] powerpc/mpic: add global timer support

2013-03-26 Thread Wang Dongsheng-B40534
> -Original Message- > From: Wood Scott-B07421 > Sent: Wednesday, March 27, 2013 1:32 AM > To: Wang Dongsheng-B40534 > Cc: Wood Scott-B07421; Gala Kumar-B11780; linuxppc-dev@lists.ozlabs.org; > Li Yang-R58472 > Subject: Re: [PATCH 2/3] powerpc/mpic: add global timer support > > On 03/25/

[upstream] mtd/ifc: fix ifc driver memory release issue

2013-03-26 Thread Roy Zang
memory is allocated by devm_kzalloc, so release it using devm_kfree() instead kfree(); Signed-off-by: Li Hao Signed-off-by: Cao Yonghua Signed-off-by: Roy Zang --- drivers/mtd/nand/fsl_ifc_nand.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/fsl_ifc_