Re: [Patch 2/4] PPC64-HWBKPT: Implement hw-breakpoints for PowerPC BookIII S

2010-05-27 Thread Paul Mackerras
On Tue, May 25, 2010 at 02:44:20PM +0530, K.Prasad wrote: Implement perf-events based hw-breakpoint interfaces for PowerPC Book III S processors. These interfaces help arbitrate requests from various users and schedules them as appropriate. A few comments on the code below... +int __kprobes

Re: [Patch 3/4] PPC64-HWBKPT: Handle concurrent alignment interrupts

2010-05-27 Thread Paul Mackerras
On Tue, May 25, 2010 at 02:44:35PM +0530, K.Prasad wrote: An alignment interrupt may intervene between a DSI/hw-breakpoint exception and the single-step exception. Enable the alignment interrupt (through modifications to emulate_single_step()) to notify the single-step exception handler for

Re: [Patch 4/4] PPC64-HWBKPT: Enable hw-breakpoints while handling intervening signals

2010-05-27 Thread Paul Mackerras
On Tue, May 25, 2010 at 02:45:05PM +0530, K.Prasad wrote: A signal delivered between a hw_breakpoint_handler() and the single_step_dabr_instruction() will not have the breakpoint active during signal handling (since breakpoint will not be restored through single-stepping due to absence of

powerpc/pseries: Add WARN_ON() to request_event_sources_irqs() on irq allocation/request failure

2010-05-27 Thread Mark Nelson
At the moment if request_event_sources_irqs() can't allocate or request the interrupt, it just does a KERN_ERR printk. This may be fine for the existing RAS code where if we miss an EPOW event it just means that the event won't be logged and if we miss one of the RAS errors then we could miss an

[PATCH] powerpc/pseries: Rename RAS_VECTOR_OFFSET to RTAS_VECTOR_EXTERNAL_INTERRUPT and move to rtas.h

2010-05-27 Thread Mark Nelson
The RAS code has a #define, RAS_VECTOR_OFFSET, that's used in the check-exception RTAS call for the vector offset of the exception. We'll be using this same vector offset for the upcoming IO Event interrupts code (0x500) so let's move it to include/asm/rtas.h and call it

RE: [PATCH 2/2] net: ll_temac: fix checksum offload logic

2010-05-27 Thread John Linn
-Original Message- From: David Miller [mailto:da...@davemloft.net] Sent: Wednesday, May 26, 2010 9:45 PM To: John Linn Cc: net...@vger.kernel.org; linuxppc-...@ozlabs.org; grant.lik...@secretlab.ca; jwbo...@linux.vnet.ibm.com; john.willi...@petalogix.com; michal.si...@petalogix.com;

[RFC PATCH] powerpc: Emulate nop too

2010-05-27 Thread Ananth N Mavinakayanahalli
Hi Paul, While we are at it, can we also add nop to the list of emulated instructions? Ananth --- From: Ananth N Mavinakayanahalli ana...@in.ibm.com Emulate ori 0,0,0 (nop). The long winded way is to do: case 24: rd = (instr 21) 0x1f; if (rd != 0)

halt the system without any broadcast message on the console

2010-05-27 Thread Bosi Daniele
Hi all, on the embedded system I'm working (mpc5121e, linux kernel 2.6.24.6) when I type the command halt on the console I see a broadcast message sent to all the users like this: Broadcast message from root (console) (Thu May 27 09:04:41 2010): The system is going down for system halt NOW!

halt the system without any broadcast message on the console

2010-05-27 Thread Bosi Daniele
Hi all, on the embedded system I'm working (mpc5121e, linux kernel 2.6.24.6) when I type the command halt on the console I see a broadcast message sent to all the users like this: Broadcast message from root (console) (Thu May 27 09:04:41 2010): The system is going down for system halt NOW!

[PATCH] powerpc/cell: Fix integer constant warning

2010-05-27 Thread Denis Kirjanov
Fix smatch warning: warning: constant 0x8 is so big it is long Signed-off-by: Denis Kirjanov dkirja...@kernel.org --- arch/powerpc/platforms/cell/iommu.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/platforms/cell/iommu.c

Re: [RFC PATCH] powerpc: Emulate nop too

2010-05-27 Thread Kumar Gala
On May 27, 2010, at 9:12 AM, Ananth N Mavinakayanahalli wrote: Hi Paul, While we are at it, can we also add nop to the list of emulated instructions? Dare I ask why we need to emulate nop? - k Ananth --- From: Ananth N Mavinakayanahalli ana...@in.ibm.com Emulate ori 0,0,0 (nop).

[PATCH 1/2] powerpc: Migration code reorganization / hibernation prep

2010-05-27 Thread Brian King
Partition hibernation will use some of the same code as is currently used for Live Partition Migration. This function further abstracts this code such that code outside of rtas.c can utilize it. It also changes the error field in the suspend me data structure to be an atomic type, since it is set

[PATCH 2/2] powerpc: Partition hibernation support

2010-05-27 Thread Brian King
Enables support for HMC initiated partition hibernation. This is a firmware assisted hibernation, since the firmware handles writing the memory out to disk, along with other partition information, so we just mimic suspend to ram. Signed-off-by: Brian King brk...@linux.vnet.ibm.com ---

Re: [RFC PATCH] powerpc: Emulate nop too

2010-05-27 Thread Paul Mackerras
On Thu, May 27, 2010 at 07:42:03PM +0530, Ananth N Mavinakayanahalli wrote: While we are at it, can we also add nop to the list of emulated instructions? I have a patch in development that emulates most of the arithmetic, logical and shift/rotate instructions, including ori. While you're here

Re: [RFC PATCH] powerpc: Emulate nop too

2010-05-27 Thread Michael Neuling
In message 20100527141203.ga20...@in.ibm.com you wrote: Hi Paul, While we are at it, can we also add nop to the list of emulated instructions? Ananth --- From: Ananth N Mavinakayanahalli ana...@in.ibm.com Emulate ori 0,0,0 (nop). The long winded way is to do: case 24:

Re: [RFC PATCH] powerpc: Emulate nop too

2010-05-27 Thread Ananth N Mavinakayanahalli
On Thu, May 27, 2010 at 03:22:45PM -0500, Kumar Gala wrote: On May 27, 2010, at 9:12 AM, Ananth N Mavinakayanahalli wrote: Hi Paul, While we are at it, can we also add nop to the list of emulated instructions? Dare I ask why we need to emulate nop? We are close to getting

Re: [RFC PATCH] powerpc: Emulate nop too

2010-05-27 Thread Ananth N Mavinakayanahalli
On Fri, May 28, 2010 at 12:28:43PM +1000, Michael Neuling wrote: In message 20100527141203.ga20...@in.ibm.com you wrote: Hi Paul, While we are at it, can we also add nop to the list of emulated instructions? Ananth --- From: Ananth N Mavinakayanahalli ana...@in.ibm.com

Re: [RFC PATCH] powerpc: Emulate nop too

2010-05-27 Thread Michael Neuling
In message 20100528041645.gb25...@in.ibm.com you wrote: On Fri, May 28, 2010 at 12:28:43PM +1000, Michael Neuling wrote: In message 20100527141203.ga20...@in.ibm.com you wrote: Hi Paul, While we are at it, can we also add nop to the list of emulated instructions?

linux-next: build failure after merge of the final tree (linus' tree related)

2010-05-27 Thread Stephen Rothwell
Hi Steven, After merging the final tree, today's linux-next build (powerpc allyesconfig) failed like this: arch/powerpc/platforms/pseries/hvCall_inst.c: In function 'hcall_inst_init': arch/powerpc/platforms/pseries/hvCall_inst.c:143: warning: passing argument 1 of 'register_trace_hcall_entry'

powerpc: remove resume_execution() in kprobes

2010-05-27 Thread Ananth N Mavinakayanahalli
On Fri, May 28, 2010 at 12:05:56PM +1000, Paul Mackerras wrote: On Thu, May 27, 2010 at 07:42:03PM +0530, Ananth N Mavinakayanahalli wrote: While we are at it, can we also add nop to the list of emulated instructions? I have a patch in development that emulates most of the arithmetic,

Re: [RFC PATCH] powerpc: Emulate nop too

2010-05-27 Thread Ananth N Mavinakayanahalli
On Fri, May 28, 2010 at 02:23:30PM +1000, Michael Neuling wrote: In message 20100528041645.gb25...@in.ibm.com you wrote: On Fri, May 28, 2010 at 12:28:43PM +1000, Michael Neuling wrote: In message 20100527141203.ga20...@in.ibm.com you wrote: Hi Paul, While we are at