Re: [PATCH] powerpc/perf_event: Fix oops due to perf_event_do_pending call

2010-04-13 Thread Benjamin Herrenschmidt
On Wed, 2010-04-14 at 16:46 +1000, Paul Mackerras wrote: > Ben, please put this in your tree of fixes to go to Linus for 2.6.34, > since it fixes a potential panic. Should it go to -stable as well ? How far back ? Cheers, Ben. ___ Linuxppc-dev mailing

[PATCH] powerpc/perf_event: Fix oops due to perf_event_do_pending call

2010-04-13 Thread Paul Mackerras
Anton Blanchard found that large POWER systems would occasionally crash in the exception exit path when profiling with perf_events. The symptom was that an interrupt would occur late in the exit path when the MSR[RI] (recoverable interrupt) bit was clear. Interrupts should be hard-disabled at this

Re: [PATCH 2/5] sched: add asymmetric packing option for sibling domain

2010-04-13 Thread Michael Neuling
In message <1271161767.4807.1281.ca...@twins> you wrote: > On Fri, 2010-04-09 at 16:21 +1000, Michael Neuling wrote: > > Peter: Since this is based mainly off your initial patch, it should > > have your signed-off-by too, but I didn't want to add without your > > permission. Can I add it? > > Of

[PATCH v2 2/2] perf probe: Add PowerPC DWARF register number mappings

2010-04-13 Thread Ian Munsie
From: Ian Munsie This patch adds mappings from the register numbers from DWARF to the register names used in the PowerPC Regs and Stack Access API. This allows perf probe to be used to record variable contents on PowerPC. This patch depends on functionality in the powerpc/next tree, though it wi

[PATCH v2 1/2] perf: Move arch specific code into separate arch directory

2010-04-13 Thread Ian Munsie
From: Ian Munsie The perf userspace tool included some architecture specific code to map registers from the DWARF register number into the names used by the regs and stack access API. This patch moves the architecture specific code out into a separate arch/x86 directory along with the infrastruc

perf: Split out arch specific code & improve PowerPC perf probe support

2010-04-13 Thread Ian Munsie
These patches add the required mappings to use perf probe on PowerPC. Functionality wise it requires the patch titled "powerpc: Add kprobe-based event tracer" from the powerpc-next tree to provide the HAVE_REGS_AND_STACK_ACCESS_API required for CONFIG_KPROBE_EVENT. The code will still compile clea

Re: [PATCH 1/5] sched: fix capacity calculations for SMT4

2010-04-13 Thread Michael Neuling
In message <1271161766.4807.1280.ca...@twins> you wrote: > On Fri, 2010-04-09 at 16:21 +1000, Michael Neuling wrote: > > When calculating capacity we use the following calculation: > >=20 > >capacity =3D DIV_ROUND_CLOSEST(power, SCHED_LOAD_SCALE); > >=20 > > In SMT2, power will be 1178/2 (p

Re: [Patch 1/1] PPC64-HWBKPT: Implement hw-breakpoints for PPC64

2010-04-13 Thread K.Prasad
On Wed, Apr 07, 2010 at 06:03:31PM +1000, Benjamin Herrenschmidt wrote: > Ok so too many problems with your last patch, I didn't have time to fix > them all, so it's not going into -next this week. > > Please, test with a variety of defconfigs (iseries, cell, g5 for > example), and especially with

[Patch 2/2] PPC64-HWBKPT: Implement hw-breakpoints for PPC64

2010-04-13 Thread K.Prasad
Implement perf-events based hw-breakpoint interfaces for PPC64 processors. These interfaces help arbitrate requests from various users and schedules them as appropriate. Signed-off-by: K.Prasad --- arch/powerpc/Kconfig |1 arch/powerpc/include/asm/cputable.h |4

[Patch 1/2] PPC64-HWBKPT: Disable interrupts for data breakpoint exceptions

2010-04-13 Thread K.Prasad
Data address breakpoint exceptions are currently handled along with page-faults which require interrupts to remain in enabled state. Since exception handling for data breakpoints aren't pre-empt safe, we handle them separately. Signed-off-by: K.Prasad --- arch/powerpc/kernel/exceptions-64s.S |

[Patch 0/2] PPC64-HWBKPT: Hardware Breakpoint interfaces - ver XVII

2010-04-13 Thread K.Prasad
Hi Ben, Please find a new version of the patchset. It contains small, yet significant number of changes to address the build issues you pointed out (details of which are listed in the changelog below). Changelog - ver XVII (Version XVI: linuxppc-dev ref: 20100330095809

Re: Possible bug with mutex adaptative spinning

2010-04-13 Thread Benjamin Herrenschmidt
On Wed, 2010-04-14 at 12:35 +1000, Benjamin Herrenschmidt wrote: > Hi Peter ! > > I -may- have found a bug with mutex adaptative spinning. We hit it when > torture testing CPU unplug. .../... In fact, I wonder if there's another potential problem: If the owner is actually running, it may do so

Possible bug with mutex adaptative spinning

2010-04-13 Thread Benjamin Herrenschmidt
Hi Peter ! I -may- have found a bug with mutex adaptative spinning. We hit it when torture testing CPU unplug. Basically, what happens is mutex_spin_on_owner() returns 1 if the owner CPU is offline. That means that the caller (__mutex_lock_common()) will spin until the mutex is released since the

Re: [PATCH 5/5] sched: make fix_small_imbalance work with asymmetric packing

2010-04-13 Thread Suresh Siddha
On Tue, 2010-04-13 at 05:29 -0700, Peter Zijlstra wrote: > On Fri, 2010-04-09 at 16:21 +1000, Michael Neuling wrote: > > With the asymmetric packing infrastructure, fix_small_imbalance is > > causing idle higher threads to pull tasks off lower threads. > > > > This is being caused by an off-by-o

Re: [PATCH v2] powerpc: Track backing pages allocated by vmemmap_populate()

2010-04-13 Thread Mark Nelson
On Tuesday 13 April 2010 21:16:44 Benjamin Herrenschmidt wrote: > On Tue, 2010-04-13 at 16:02 +1000, Mark Nelson wrote: > > That's a good question, and one that I probably should have added to > > the > > commit message. > > But, following through, it looks like we end up calling into > > __remove_

RE: [PATCH v3 3/6] RapidIO: Add Port-Write handling for EM

2010-04-13 Thread Bounine, Alexandre
Andrew Morton wrote: > On Tue, 6 Apr 2010 17:22:38 -0400 Alexandre Bounine wrote: > > > > > From: Alexandre Bounine > > > > Add RapidIO Port-Write message handling in the context > > of Error Management Extensions Specification Rev.1.3. > > > > ... > > > > +static struct rio_dev *rio_get_comptag

RE: [PATCH 2/2] [V5] Add non-Virtex5 support for LL TEMAC driver

2010-04-13 Thread John Linn
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Tuesday, April 13, 2010 2:34 AM > To: grant.lik...@secretlab.ca > Cc: John Linn; net...@vger.kernel.org; linuxppc-...@ozlabs.org; jwbo...@linux.vnet.ibm.com; > eric.duma...@gmail.com; john.willi...@petalogix.com;

RE: Upgrade to 2.6.26 results in Oops during request_irq

2010-04-13 Thread Sparks, Sam
>From: Sparks, Sam >Sent: Thursday, April 08, 2010 4:15 PM > >Howdy All, > >I have (almost) successfully upgraded from Linux 2.6.22 to 2.6.26 (both >downloaded from debian) on my mpc8347 powerpc, but I think I may be >missing a required change to my dts regarding the IPIC or maybe a change >in how

Re: [PATCH 2/5] sched: add asymmetric packing option for sibling domain

2010-04-13 Thread Peter Zijlstra
On Fri, 2010-04-09 at 16:21 +1000, Michael Neuling wrote: > Peter: Since this is based mainly off your initial patch, it should > have your signed-off-by too, but I didn't want to add without your > permission. Can I add it? Of course! :-) This thing does need a better changelog though, and mayb

Re: [PATCH 4/5] sched: Mark the balance type for use in need_active_balance()

2010-04-13 Thread Peter Zijlstra
On Fri, 2010-04-09 at 16:21 +1000, Michael Neuling wrote: > need_active_balance() gates the asymmetric packing based due to power > save logic, but for packing we don't care. This explanation lacks a how/why. So the problem is that need_active_balance() ends up returning false and prevents the ac

Re: [PATCH 1/5] sched: fix capacity calculations for SMT4

2010-04-13 Thread Peter Zijlstra
On Fri, 2010-04-09 at 16:21 +1000, Michael Neuling wrote: > When calculating capacity we use the following calculation: > >capacity = DIV_ROUND_CLOSEST(power, SCHED_LOAD_SCALE); > > In SMT2, power will be 1178/2 (provided we are not scaling power with > freq say) and SCHED_LOAD_SCALE will

Re: [PATCH 5/5] sched: make fix_small_imbalance work with asymmetric packing

2010-04-13 Thread Peter Zijlstra
On Fri, 2010-04-09 at 16:21 +1000, Michael Neuling wrote: > With the asymmetric packing infrastructure, fix_small_imbalance is > causing idle higher threads to pull tasks off lower threads. > > This is being caused by an off-by-one error. > > Signed-off-by: Michael Neuling > --- > I'm not su

Re: [PATCH v2] powerpc: Track backing pages allocated by vmemmap_populate()

2010-04-13 Thread Benjamin Herrenschmidt
On Tue, 2010-04-13 at 16:02 +1000, Mark Nelson wrote: > That's a good question, and one that I probably should have added to > the > commit message. > But, following through, it looks like we end up calling into > __remove_section() from mm/memory_hotplug.c and if > CONFIG_SPARSEMEM_VMEMMAP is enab

Re: [PATCH v2 net-next 2/2] gianfar: Add hardware TX timestamping support

2010-04-13 Thread David Miller
From: Manfred Rudigier Date: Fri, 9 Apr 2010 11:10:35 +0200 > If a packet has the skb_shared_tx->hardware flag set the device is > instructed to generate a TX timestamp and write it back to memory after > the frame is transmitted. During the clean_tx_ring operation the > timestamp will be extract

Re: [PATCH v2 net-next 1/2] gianfar: Add hardware RX timestamping support

2010-04-13 Thread David Miller
From: Manfred Rudigier Date: Fri, 9 Apr 2010 11:10:03 +0200 > The device is configured to insert hardware timestamps into all > received packets. The RX timestamps are extracted from the padding > alingment bytes during the clean_rx_ring operation and copied into the > skb_shared_hwtstamps struct

Re: [PATCH 1/2] perf: Move arch specific code into separate arch directory

2010-04-13 Thread Ian Munsie
Hi Masami, Thanks for the feedback Excerpts from Masami Hiramatsu's message of Mon Apr 12 22:37:03 +1000 2010: > Could you add a check whether the get_arch_regstr() is defined > (or dwarf-regs.h is exist) in Makefile? > If it is not defined, we'd better drop dwarf support(so set NO_DWARF), > beca

Re: [PATCH 2/2] [V5] Add non-Virtex5 support for LL TEMAC driver

2010-04-13 Thread David Miller
From: Grant Likely Date: Fri, 9 Apr 2010 12:10:21 -0600 > On Thu, Apr 8, 2010 at 11:08 AM, John Linn wrote: >> This patch adds support for using the LL TEMAC Ethernet driver on >> non-Virtex 5 platforms by adding support for accessing the Soft DMA >> registers as if they were memory mapped inste