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

2010-05-24 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 pra...@linux.vnet.ibm.com --- arch/powerpc/Kconfig |1

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

2010-05-24 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

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

2010-05-24 Thread Paul Mackerras
On Mon, May 24, 2010 at 04:04:19PM +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

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

2010-05-24 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

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

2010-05-24 Thread K.Prasad
Hi All, Here's a quick release of the next version of the patchset with a small, yet significant changelog. Please let me know the comments, if any. Changelog - ver XX (Version XIX: linuxppc-dev ref: 20100524040137.ga20...@in.ibm.com) - Non task-bound breakpoints

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

2010-05-24 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

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

2010-05-24 Thread K.Prasad
On Thu, May 20, 2010 at 11:10:03PM +1000, Paul Mackerras wrote: On Thu, May 20, 2010 at 09:36:03AM +0530, K.Prasad wrote: (Had this mail composed along with the patchset...but mail server issues caused delay in sending this...) Hi Paul, While we continue to discuss some of the design

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

2010-05-24 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

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

2010-05-24 Thread Grant Likely
On Mon, May 24, 2010 at 10:25 AM, Martyn Welch martyn.we...@ge.com 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

[PATCH] powerpc/fsl-booke: Fix InstructionTLBError execute permission check

2010-05-24 Thread Kumar Gala
From: Li Yang le...@freescale.com In CONFIG_PTE_64BIT the PTE format has unique permission bits for user and supervisor execute. However on !CONFIG_PTE_64BIT we overload the supervisor bit to imply user execute with _PAGE_USER set. This allows us to use the same permission check mask for user

[PATCH] powerpc/fsl-booke: Move loadcam_entry back to asm code to fix SMP ftrace

2010-05-24 Thread Kumar Gala
When we build with ftrace enabled its possible that loadcam_entry would have used the stack pointer (even though the code doesn't need it). We call loadcam_entry in __secondary_start before the stack is setup. To ensure that loadcam_entry doesn't use the stack pointer the easiest solution is to

[PATCH] powerpc: Fix ioremap_flags() with book3e pte definition

2010-05-24 Thread Kumar Gala
From: Benjamin Herrenschmidt b...@kernel.crashing.org We can't just clear the user read permission in book3e pte, because that will also clear supervisor read permission. This surely isn't desired. Fix the problem by adding the supervisor read back. BenH: Slightly simplified the ifdef and

Re: [PATCH 2/3] powerpc/fsl head: move the entry setup code into a seperate file

2010-05-24 Thread Kumar Gala
On Apr 4, 2010, at 3:19 PM, Sebastian Andrzej Siewior wrote: From: Sebastian Andrzej Siewior bige...@linutronix.de This patch only moves the initial entry code which setups the mapping from what ever to KERNELBASE into a seperate file. No code change has been made here. Signed-off-by:

Re: [PATCH 1/3] powerpc/head fsl: fix the case where we are not in the first page

2010-05-24 Thread Kumar Gala
On Apr 4, 2010, at 3:19 PM, Sebastian Andrzej Siewior wrote: From: Sebastian Andrzej Siewior bige...@linutronix.de During boot we change the mapping a few times until we have a defined mapping. During this procedure a small 4KiB mapping is created and after that one a 64MiB. Currently the

Re: [PATCH 3/3] powerpc/kexec: Add support for FSL-BookE

2010-05-24 Thread Kumar Gala
On Apr 4, 2010, at 3:19 PM, Sebastian Andrzej Siewior wrote: From: Sebastian Andrzej Siewior bige...@linutronix.de This adds support kexec on FSL-BookE where the MMU can not be simply switched off. The code borrows the initial MMU-setup code to create the identical mapping mapping. The

Re: [PATCH v3 1/5] fsl_msi: fix the conflict of virt_msir's chip_data

2010-05-24 Thread Kumar Gala
On Apr 22, 2010, at 3:31 AM, Li Yang wrote: In fsl_of_msi_probe(), the virt_msir's chip_data have been stored the pointer to struct mpic. We add a struct fsl_msi_cascade_data to store the pointer to struct fsl_msi and msir_index in hanler_data. Otherwise, the pointer to struct mpic will be

Re: [PATCH v3 2/5] fsl_msi: enable msi allocation in all banks

2010-05-24 Thread Kumar Gala
On Apr 22, 2010, at 3:31 AM, Li Yang wrote: Put all fsl_msi banks in a linked list. The list of banks then can be traversed when allocating new msi interrupts. Also fix failing path of fsl_setup_msi_irqs(). Signed-off-by: Zhao Chenhui b26...@freescale.com Signed-off-by: Li Yang

Re: [PATCH v3 3/5] fsl_msi: enable msi sharing through AMP OSes

2010-05-24 Thread Kumar Gala
On Apr 22, 2010, at 3:31 AM, Li Yang wrote: Make a single PCIe MSI bank shareable through CAMP OSes. The number of MSI used by each core can be configured by dts file. Signed-off-by: Zhao Chenhui b26...@freescale.com Signed-off-by: Li Yang le...@freescale.com ---

Re: [PATCH v3 4/5] mpc8572ds: change camp dtses for MSI sharing

2010-05-24 Thread Kumar Gala
On Apr 22, 2010, at 3:31 AM, Li Yang wrote: Enable the sharing of MSI interrupt through AMP OSes in the mpc8572ds dtses. Signed-off-by: Zhao Chenhui b26...@freescale.com Signed-off-by: Li Yang le...@freescale.com --- arch/powerpc/boot/dts/mpc8572ds_camp_core0.dts | 15 +--

Re: [PATCH 2/2] powerpc, kdump: Fix race in kdump shutdown

2010-05-24 Thread Kumar Gala
On May 14, 2010, at 12:40 AM, Michael Neuling wrote: When we are crashing, the crashing/primary CPU IPIs the secondaries to turn off IRQs, go into real mode and wait in kexec_wait. While this is happening, the primary tears down all the MMU maps. Unfortunately the primary doesn't check to

Re: [PATCH 2/2] powerpc, kdump: Fix race in kdump shutdown

2010-05-24 Thread Kumar Gala
On May 24, 2010, at 2:23 PM, Kumar Gala wrote: On May 14, 2010, at 12:40 AM, Michael Neuling wrote: When we are crashing, the crashing/primary CPU IPIs the secondaries to turn off IRQs, go into real mode and wait in kexec_wait. While this is happening, the primary tears down all the MMU

[git pull] Please pull powerpc.git next branch

2010-05-24 Thread Kumar Gala
The following changes since commit 99ec28f183daa450faa7bdad6f932364ae325648: FUJITA Tomonori (1): powerpc: Remove unused 'protect4gb' boot parameter are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/galak/powerpc.git next Andy Fleming (1):