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

2013-03-21 Thread Ananth N Mavinakayanahalli
On Wed, Mar 20, 2013 at 05:06:44PM +0100, Oleg Nesterov wrote: > On 03/20, Ananth N Mavinakayanahalli wrote: > > > > On Wed, Mar 20, 2013 at 01:26:39PM +0100, Oleg Nesterov wrote: > > > > > But, at the same time, is the new definition fine for verify_opcode()? > > > > > > IOW, powerpc has another i

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

2013-03-21 Thread Ananth N Mavinakayanahalli
On Wed, Mar 20, 2013 at 05:07:28PM +0100, Oleg Nesterov wrote: > On 03/20, Ananth N Mavinakayanahalli wrote: > > > > On Wed, Mar 20, 2013 at 01:43:01PM +0100, Oleg Nesterov wrote: > > > On 03/20, Oleg Nesterov wrote: > > > > > > > > But we did not install UPROBE_SWBP_INSN. Is it fine? I hope yes, j

Re: [RFC PATCH -V2 00/21] THP support for PPC64

2013-03-21 Thread Simon Jeons
Hi Aneesh, On 02/22/2013 12:47 AM, Aneesh Kumar K.V wrote: Hi, This patchset adds transparent huge page support for PPC64. I am marking the series to linux-mm because the PPC64 implementation required few interface changes to core THP code. I still have considerable number of FIXME!! in the pat

Re: [PATCH] powerpc: add CONFIG(s) require for using flash controller

2013-03-21 Thread Kumar Gala
On Mar 18, 2013, at 3:31 AM, Prabhakar Kushwaha wrote: > Add CONFIG(s) required for NAND and NOR flash controller usage. > It defines MTD, Jffs2 and UBIFS file system required for controllers. > > It also enables IFC controller > > Signed-off-by: Prabhakar Kushwaha > --- > Based upon http://gi

MPC5121e, Linux, simple IO ports

2013-03-21 Thread CF Studelec
Hello, This is a simple board base on mpc5121e MCU. Gpio is detected: kernel is compiled with its support - i got gpiochip_find_base: found new base @224 in dmesg - on kernel 3.0.4. But i'm unable to access it through /sys/class/gpio. I can successfully export a pin (ie, if i type cat 224 > e

Re: [PATCH 2/2] powerpc/fsl-booke: Update DCSR EPU device tree entries

2013-03-21 Thread Kumar Gala
On Mar 18, 2013, at 2:11 PM, Kumar Gala wrote: > From: Stephen George > > Identifies the epu as compatible with Chassis v1 Debug IP. > > Signed-off-by: Stephen George > Signed-off-by: Kumar Gala > --- > arch/powerpc/boot/dts/fsl/p2041si-post.dtsi |2 +- > arch/powerpc/boot/dts/fsl/p3041si

Re: [PATCH 1/2] powerpc/fsl-booke: Added device tree DCSR entries for

2013-03-21 Thread Kumar Gala
On Mar 18, 2013, at 2:11 PM, Kumar Gala wrote: > From: Stephen George > > Signed-off-by: Stephen George > Signed-off-by: Kumar Gala > --- > arch/powerpc/boot/dts/fsl/t4240si-post.dtsi | 131 +++ > arch/powerpc/boot/dts/fsl/t4240si-pre.dtsi | 25 ++--- > arch/powerpc/

[PATCH] memblock: kill "config MAX_ACTIVE_REGIONS"

2013-03-21 Thread Paul Bolle
The Kconfig symbol MAX_ACTIVE_REGIONS is unused. Commit 0ee332c1451869963626bf9cac88f165a90990e1 ("memblock: Kill early_node_map[]") removed the only place were it was actually used. But it did not remove its Kconfig entries (for powerpc and sh). Remove those two entries (and the entry for metag,

Re: [PATCH] memblock: kill "config MAX_ACTIVE_REGIONS"

2013-03-21 Thread Paul Mundt
On Thu, Mar 21, 2013 at 10:27:56AM +0100, Paul Bolle wrote: > The Kconfig symbol MAX_ACTIVE_REGIONS is unused. Commit > 0ee332c1451869963626bf9cac88f165a90990e1 ("memblock: Kill > early_node_map[]") removed the only place were it was actually used. But > it did not remove its Kconfig entries (for p

Re: [PATCH] memblock: kill "config MAX_ACTIVE_REGIONS"

2013-03-21 Thread James Hogan
On 21/03/13 09:34, Paul Mundt wrote: > On Thu, Mar 21, 2013 at 10:27:56AM +0100, Paul Bolle wrote: >> The Kconfig symbol MAX_ACTIVE_REGIONS is unused. Commit >> 0ee332c1451869963626bf9cac88f165a90990e1 ("memblock: Kill >> early_node_map[]") removed the only place were it was actually used. But >> i

[PATCH] powerpc/dts: Add qe support for 36bit

2013-03-21 Thread Zhicheng Fan
fixed the following errors: Error: arch/powerpc/boot/dts/p1025rdb.dtsi:326.2-3 label or path, 'qe', not found Error: arch/powerpc/boot/dts/fsl/p1021si-post.dtsi:242.2-3 label or path, 'qe', not found FATAL ERROR: Syntax error parsing input tree Signed-off-by: Zhicheng Fan

Re: [PATCH] KVM: PPC: e500: Expose MMU registers via ONE_REG

2013-03-21 Thread Alexander Graf
On 19.03.2013, at 18:26, Scott Wood wrote: > On 03/19/2013 12:17:11 PM, Mihai Caraman wrote: >> diff --git a/arch/powerpc/kvm/e500_mmu.c b/arch/powerpc/kvm/e500_mmu.c >> index 66b6e31..b77b855 100644 >> --- a/arch/powerpc/kvm/e500_mmu.c >> +++ b/arch/powerpc/kvm/e500_mmu.c >> @@ -596,6 +596,95 @@

Re: [PATCH] KVM: PPC: e500: Add separate functions for vcpu's MMU configuration

2013-03-21 Thread Alexander Graf
On 19.03.2013, at 18:16, Mihai Caraman wrote: > Move vcpu's MMU default configuration and geometry update into their own > functions. Mind to explain why? Alex > > Signed-off-by: Mihai Caraman > --- > arch/powerpc/kvm/e500_mmu.c | 59 +++ > 1 files c

RE: [PATCH V2] powerpc/85xx: workaround for chips with MSI hardware errata

2013-03-21 Thread Jia Hongtao-B38951
> -Original Message- > From: Wood Scott-B07421 > Sent: Wednesday, March 20, 2013 12:32 AM > To: Jia Hongtao-B38951 > Cc: Kumar Gala; linuxppc-dev@lists.ozlabs.org; Wood Scott-B07421; > mich...@ellerman.id.au; Li Yang-R58472 > Subject: Re: [PATCH V2] powerpc/85xx: workaround for chips with

RE: [PATCH] KVM: PPC: e500: Expose MMU registers via ONE_REG

2013-03-21 Thread Caraman Mihai Claudiu-B02008
> -Original Message- > From: Alexander Graf [mailto:ag...@suse.de] > Sent: Thursday, March 21, 2013 12:07 PM > To: Wood Scott-B07421 > Cc: Caraman Mihai Claudiu-B02008; kvm-...@vger.kernel.org; linuxppc- > d...@lists.ozlabs.org; k...@vger.kernel.org > Subject: Re: [PATCH] KVM: PPC: e500:

Re: [PATCH] KVM: PPC: e500: Expose MMU registers via ONE_REG

2013-03-21 Thread Alexander Graf
On 21.03.2013, at 12:02, Caraman Mihai Claudiu-B02008 wrote: > > >> -Original Message- >> From: Alexander Graf [mailto:ag...@suse.de] >> Sent: Thursday, March 21, 2013 12:07 PM >> To: Wood Scott-B07421 >> Cc: Caraman Mihai Claudiu-B02008; kvm-...@vger.kernel.org; linuxppc- >> d...@lists

[PATCH] powerpc: drop even more unused Kconfig symbols

2013-03-21 Thread Paul Bolle
When I submitted commit 6805ab6daa2b589fe3242d05ddc47a9dbb0c4eb1 ("powerpc: drop unused Kconfig symbols") I apparently failed to notice that my patch also made PREP_RESIDUAL and PPC_A2_DD2 unused. Drop these now. Signed-off-by: Paul Bolle --- 0) Untested. 1) I investigated these Kconfig files a

RE: [PATCH] KVM: PPC: e500: Add separate functions for vcpu's MMU configuration

2013-03-21 Thread Caraman Mihai Claudiu-B02008
> -Original Message- > From: kvm-ppc-ow...@vger.kernel.org [mailto:kvm-ppc- > ow...@vger.kernel.org] On Behalf Of Alexander Graf > Sent: Thursday, March 21, 2013 12:07 PM > To: Caraman Mihai Claudiu-B02008 > Cc: kvm-...@vger.kernel.org; k...@vger.kernel.org; linuxppc- > d...@lists.ozlabs.or

RE: [PATCH] KVM: PPC: e500: Expose MMU registers via ONE_REG

2013-03-21 Thread Caraman Mihai Claudiu-B02008
> -Original Message- > From: Alexander Graf [mailto:ag...@suse.de] > Sent: Thursday, March 21, 2013 1:07 PM > To: Caraman Mihai Claudiu-B02008 > Cc: Wood Scott-B07421; kvm-...@vger.kernel.org; linuxppc- > d...@lists.ozlabs.org; k...@vger.kernel.org > Subject: Re: [PATCH] KVM: PPC: e500: Exp

Re: [PATCH] KVM: PPC: e500: Add separate functions for vcpu's MMU configuration

2013-03-21 Thread Alexander Graf
On 21.03.2013, at 12:19, Caraman Mihai Claudiu-B02008 wrote: >> -Original Message- >> From: kvm-ppc-ow...@vger.kernel.org [mailto:kvm-ppc- >> ow...@vger.kernel.org] On Behalf Of Alexander Graf >> Sent: Thursday, March 21, 2013 12:07 PM >> To: Caraman Mihai Claudiu-B02008 >> Cc: kvm-...@vg

Re: [Suggestion] PowerPC: kernel: cross compiling issue with allmodconfig

2013-03-21 Thread Benjamin Herrenschmidt
On Thu, 2013-03-21 at 16:26 +0800, Chen Gang F T wrote: > it seems: > only move slb_miss_realmode to the end, can fix this issue without > negative effect. Thanks. I'm currently on vacation, I'll have a closer look when I'm back unless Stephen or Paulus wants to shoot that to Linus while I'

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

2013-03-21 Thread Adhemerval Zanella
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? > You did provide both 32 and 64-bit VDSO implementations so 32-bit > kernels should be covered. In

Re: MPC5121e, Linux, simple IO ports

2013-03-21 Thread CF Studelec
Sorry to bump the post, i'm wondering if it was correctly sent. Le 21/03/2013 09:54, CF Studelec a écrit : > Hello, > > This is a simple board base on mpc5121e MCU. > > > Gpio is detected: kernel is compiled with its support - i got > gpiochip_find_base: found new base @224 in dmesg - on kernel 3.

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

2013-03-21 Thread Oleg Nesterov
On 03/21, Ananth N Mavinakayanahalli wrote: > > On Wed, Mar 20, 2013 at 05:06:44PM +0100, Oleg Nesterov wrote: > > > > > But we did not install UPROBE_SWBP_INSN. Is it fine? I hope yes, just to > > > > verify. If not, we need 2 definitions. is_uprobe_insn() should still > > > > check > > > > insns

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

2013-03-21 Thread Oleg Nesterov
On 03/21, Ananth N Mavinakayanahalli wrote: ? > On Wed, Mar 20, 2013 at 05:07:28PM +0100, Oleg Nesterov wrote: > > On 03/20, Ananth N Mavinakayanahalli wrote: > > > > > > On Wed, Mar 20, 2013 at 01:43:01PM +0100, Oleg Nesterov wrote: > > > > On 03/20, Oleg Nesterov wrote: > > > > > > > > > IOW, if

Re: [PATCH] powerpc/dts: Add qe support for 36bit

2013-03-21 Thread Timur Tabi
On Thu, Mar 21, 2013 at 4:26 AM, Zhicheng Fan wrote: > + qe: qe@fffe8 { > + ranges = <0x0 0xf 0xffe8 0x4>; Are you sure this works? The QE can't handle 36-bit addresses, and I think the MURAM is located inside the QE address space.

Re: [Suggestion] PowerPC: kernel: cross compiling issue with allmodconfig

2013-03-21 Thread Michael Neuling
Chen Gang wrote: > Hello All: > > summary: > the root cause is no enough room in exception area (0x5500 -- 0x7000). > > it is caused by the patches "for saving/restre PPR": > they consumed much space of this area (0x5500 -- 0x7000). > for pseries_defconfig and ppc64_defconfig, it is

Re: [Suggestion] PowerPC: kernel: cross compiling issue with allmodconfig

2013-03-21 Thread Michael Neuling
dffcb19287 Author: Stuart Yoder Date: Fri Feb 8 13:22:56 2013 -0600 powerpc: Add paravirt idle loop for 64-bit Book-E Signed-off-by: Stuart Yoder Signed-off-by: Kumar Gala Should we revert your patch or can you send a fix? This is currently broken in linux-next (at least next-20130321

[PATCH] kvm: (ppc) stub out more functions in order to permit kernel to build

2013-03-21 Thread Phil Carmody
Build failure mentioned by Stephen Rothwell here: http://www.mail-archive.com/linuxppc-dev@lists.ozlabs.org/msg65408.html Traced to: commit f445f11eb2cc -"KVM: allow host header to be included even for !CONFIG_KVM" This patch permits the build to progress by stubbing out the two functions that i

[PATCH] KVM: fix powerpc build error for !CONFIG_KVM

2013-03-21 Thread Stephen Rothwell
Fixes these build error when CONFIG_KVM is not defined: In file included from arch/powerpc/include/asm/kvm_ppc.h:33:0, from arch/powerpc/kernel/setup_64.c:67: arch/powerpc/include/asm/kvm_book3s.h:65:20: error: field 'pte' has incomplete type arch/powerpc/include/asm/kvm_book3s.h

Re: [PATCH 4/11] Add platform_has_feature()

2013-03-21 Thread Michael Ellerman
On Tue, Mar 19, 2013 at 01:15:02PM -0500, Nathan Fontenot wrote: > On 03/14/2013 08:42 AM, Michael Ellerman wrote: > > On Fri, Mar 08, 2013 at 10:02:31PM -0600, Nathan Fontenot wrote: > >> The firmware_has_feature() function makes it easy to check for supported > >> features of the hardware. There

Re: [PATCH] powerpc: Add accounting for Doorbell interrupts

2013-03-21 Thread Michael Ellerman
On Wed, Mar 20, 2013 at 06:42:12PM +1100, Ian Munsie wrote: > From: Ian Munsie > > This patch adds a new line to /proc/interrupts to account for the > doorbell interrupts that each hardware thread has received. The total > interrupt count in /proc/stat will now also include doorbells. Should it

Re: [PATCH] powerpc: drop even more unused Kconfig symbols

2013-03-21 Thread Michael Ellerman
On Thu, Mar 21, 2013 at 12:10:06PM +0100, Paul Bolle wrote: > When I submitted commit 6805ab6daa2b589fe3242d05ddc47a9dbb0c4eb1 > ("powerpc: drop unused Kconfig symbols") I apparently failed to notice > that my patch also made PREP_RESIDUAL and PPC_A2_DD2 unused. Drop these > now. > > Signed-off-by

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

2013-03-21 Thread Ananth N Mavinakayanahalli
On Thu, Mar 21, 2013 at 05:00:02PM +0100, Oleg Nesterov wrote: > On 03/21, Ananth N Mavinakayanahalli wrote: > ? > > On Wed, Mar 20, 2013 at 05:07:28PM +0100, Oleg Nesterov wrote: > > > On 03/20, Ananth N Mavinakayanahalli wrote: > > > > > > > > On Wed, Mar 20, 2013 at 01:43:01PM +0100, Oleg Nester

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

2013-03-21 Thread Ananth N Mavinakayanahalli
On Thu, Mar 21, 2013 at 04:58:09PM +0100, Oleg Nesterov wrote: > On 03/21, Ananth N Mavinakayanahalli wrote: > > > > On Wed, Mar 20, 2013 at 05:06:44PM +0100, Oleg Nesterov wrote: > > > > > > > But we did not install UPROBE_SWBP_INSN. Is it fine? I hope yes, just > > > > > to > > > > > verify. If

Re: [PATCH] powerpc: Add accounting for Doorbell interrupts

2013-03-21 Thread Ian Munsie
Excerpts from Michael Ellerman's message of 2013-03-22 15:18:03 +1100: > On Wed, Mar 20, 2013 at 06:42:12PM +1100, Ian Munsie wrote: > > From: Ian Munsie > > > > This patch adds a new line to /proc/interrupts to account for the > > doorbell interrupts that each hardware thread has received. The t

[PATCH v2] powerpc: Add accounting for Doorbell interrupts

2013-03-21 Thread Ian Munsie
From: Ian Munsie This patch adds a new line to /proc/interrupts to account for the doorbell interrupts that each hardware thread has received. The total interrupt count in /proc/stat will now also include doorbells. # cat /proc/interrupts CPU0 CPU1 CPU2 CPU3 16:

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

2013-03-21 Thread Wang Dongsheng-B40534
> -Original Message- > From: Wood Scott-B07421 > Sent: Thursday, March 21, 2013 5:49 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 wakeu

[PATCH] powerpc/ptrace: Add DAWR debug feature info for userspace

2013-03-21 Thread Michael Neuling
This adds new debug feature information so that the DAWR can be identified by userspace tools like GDB. Unfortunately the DAWR doesn't sit nicely into the current description that ptrace provides to userspace via struct ppc_debug_info. It doesn't allow for specifying that only some ranges are pos

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

2013-03-21 Thread Wang Dongsheng-B40534
> -Original Message- > From: Wood Scott-B07421 > Sent: Thursday, March 21, 2013 7:00 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/20/2

Re: [Suggestion] PowerPC: kernel: cross compiling issue with allmodconfig

2013-03-21 Thread Chen Gang
On 2013年03月21日 20:38, Benjamin Herrenschmidt wrote: > On Thu, 2013-03-21 at 16:26 +0800, Chen Gang F T wrote: >> > it seems: >> > only move slb_miss_realmode to the end, can fix this issue without >> > negative effect. > Thanks. I'm currently on vacation, I'll have a closer look when I'm bac

Re: [Suggestion] PowerPC: kernel: cross compiling issue with allmodconfig

2013-03-21 Thread Chen Gang
On 2013年03月22日 06:54, Michael Neuling wrote: > This is great, thanks a lot. > > If you want this to be picked up by the maintainer, you'll need to add > your signed-off-by. > > The signed-off-by is to indicate that your happy for it to be included > and that you're legally allowed to do so. Se