Re: [Patch 1/4] Allow arch-specific cleanup before breakpoint unregistration

2010-05-25 Thread K.Prasad
On Tue, May 25, 2010 at 06:39:19AM -0500, Millton Miller wrote: > On Tue, 25 May 2010 at 14:43:56 +0530, K.Prasad wrote: > > Certain architectures (such as PowerPC Book III S) have a need to cleanup > > data-structures before the breakpoint is unregistered. This patch introduces > > an arch-specifi

Re: Spinlock lockup lockup in switch_mmu_context and task_rq_lock

2010-05-25 Thread Benjamin Herrenschmidt
On Tue, 2010-05-25 at 09:15 -0500, Li, Jianlin (Jianlin) wrote: > Hi, > > I am running 2.6.29.1 on MPC8572 dual core with SMP enabled on our customized > board. > > I have two applications running. One is to access CPLD registers via PCI bus > and then sleep in an endless loop, the other is to

Re: [PATCH v3] powerpc: Add i8042 keyboard and mouse irq parsing

2010-05-25 Thread Mitch Bradley
Grant Likely wrote: On Tue, May 25, 2010 at 2:09 AM, Martyn Welch wrote: Currently the irqs for the i8042, which historically provides keyboard and mouse (aux) support, is hardwired in the driver rather than parsing the dts. This patch modifies the powerpc legacy IO code to attempt to parse

Re: [PATCHv2] [RFC] Xilinx Virtex 4 FX Soft FPU support

2010-05-25 Thread Grant Likely
(cc'ing Josh Boyer and John Linn) On Thu, May 20, 2010 at 4:01 AM, Sergey Temerkhanov wrote: > This patch enables support for Xilinx Virtex 4 FX singe-float FPU. > > Changelog v1->v2: >        -Added MSR_AP bit definition >        -Renamed CONFIG_XILINX_FPU to CONFIG_XILINX_SOFTFPU, moved it to >

Re: [PATCH v3] powerpc: Add i8042 keyboard and mouse irq parsing

2010-05-25 Thread Grant Likely
On Tue, May 25, 2010 at 2:09 AM, Martyn Welch wrote: > Currently the irqs for the i8042, which historically provides keyboard and > mouse (aux) support, is hardwired in the driver rather than parsing the > dts.  This patch modifies the powerpc legacy IO code to attempt to parse > the device tree f

Spinlock lockup lockup in switch_mmu_context and task_rq_lock

2010-05-25 Thread Li, Jianlin (Jianlin)
Hi, I am running 2.6.29.1 on MPC8572 dual core with SMP enabled on our customized board. I have two applications running. One is to access CPLD registers via PCI bus and then sleep in an endless loop, the other is to send (and of course receive data) via TSEC port in an endless loop. Sooner o

[Patch 1/4] Allow arch-specific cleanup before breakpoint unregistration

2010-05-25 Thread Millton Miller
On Tue, 25 May 2010 at 14:43:56 +0530, K.Prasad wrote: > Certain architectures (such as PowerPC Book III S) have a need to cleanup > data-structures before the breakpoint is unregistered. This patch introduces > an arch-specific hook in release_bp_slot() along with a weak definition in > the form o

Re: mmio_nvram.c users ?

2010-05-25 Thread Josh Boyer
On Tue, May 25, 2010 at 05:43:59PM +1000, Benjamin Herrenschmidt wrote: >Hi folks ! > >Anybody aware of anything other than Cell using that driver ? > >I'd like to make it a platform driver instead of having something that >pokes at anything that has a "device_type" set to "nvram" (which is >gross

Re: [git pull] Please pull powerpc.git next branch

2010-05-25 Thread Josh Boyer
On Mon, May 24, 2010 at 09:38:14PM -0500, Kumar Gala wrote: >The following changes since commit 99ec28f183daa450faa7bdad6f932364ae325648: > FUJITA Tomonori (1): >powerpc: Remove unused 'protect4gb' boot parameter > >are available in the git repository at: Ben, don't forget I still have so

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

2010-05-25 Thread K.Prasad
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 MSR_SE bit on the signal frame). Enable breakpoints before signal d

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

2010-05-25 Thread K.Prasad
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 proper restoration of hw-breakpoints. Signed-off-by: K.Prasad -

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

2010-05-25 Thread K.Prasad
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. Signed-off-by: K.Prasad --- arch/powerpc/Kconfig |1 arch/powerpc/include/asm/cputable.h

[Patch 1/4] Allow arch-specific cleanup before breakpoint unregistration

2010-05-25 Thread K.Prasad
Certain architectures (such as PowerPC Book III S) have a need to cleanup data-structures before the breakpoint is unregistered. This patch introduces an arch-specific hook in release_bp_slot() along with a weak definition in the form of a stub funciton. Signed-off-by: K.Prasad --- kernel/hw_bre

[Patch 0/4] PPC64-HWBKPT: Hardware Breakpoint interfaces - ver XXI

2010-05-25 Thread K.Prasad
Hi All, Please find a new version of the hw-breakpoint patchset with changes as described below. The patchset, passes when tested against breakpoints caused by user-space instructions but fails against kernel-space instructions (as a result of emulate_step() failure). They should begin to

Re: mmio_nvram.c users ?

2010-05-25 Thread Martyn Welch
One day I'll manage to hit "Reply" or "Reply All" correctly... Benjamin Herrenschmidt wrote: > Hi folks ! > > Anybody aware of anything other than Cell using that driver ? > > I'd like to make it a platform driver instead of having something that > pokes at anything that has a "device_type" set to

Re: mmio_nvram.c users ?

2010-05-25 Thread Adrian Reber
On Tue, May 25, 2010 at 05:43:59PM +1000, Benjamin Herrenschmidt wrote: > Anybody aware of anything other than Cell using that driver ? > > I'd like to make it a platform driver instead of having something that > pokes at anything that has a "device_type" set to "nvram" (which is > gross and bogus

[PATCH v3] powerpc: Add i8042 keyboard and mouse irq parsing

2010-05-25 Thread Martyn Welch
Currently the irqs for the i8042, which historically provides keyboard and mouse (aux) support, is hardwired in the driver rather than parsing the dts. This patch modifies the powerpc legacy IO code to attempt to parse the device tree for this information, failing back to the hardcoded values if i

mmio_nvram.c users ?

2010-05-25 Thread Benjamin Herrenschmidt
Hi folks ! Anybody aware of anything other than Cell using that driver ? I'd like to make it a platform driver instead of having something that pokes at anything that has a "device_type" set to "nvram" (which is gross and bogus). But I need to know what platforms to fixup... Cheers, Ben. _

Re: [PATCH v2] powerpc: Add i8042 keyboard and mouse irq parsing

2010-05-25 Thread Martyn Welch
Grant Likely wrote: > On Mon, May 24, 2010 at 10:25 AM, Martyn Welch wrote: > >> Currently the irqs for the i8042, which historically provides keyboard and >> mouse (aux) support, is hardwired in the driver rather than parsing the >> dts. This patch modifies the powerpc legacy IO code to attem