Re: [Jfs-discussion] [PATCH] fs: convert a pile of fsync routines to errseq_t based reporting

2017-07-31 Thread Dave Kleikamp
is a straightforward conversion from calling > filemap_write_and_wait_range in their fsync operation to calling > file_write_and_wait_range. > > Signed-off-by: Jeff Layton Acked-by: Dave Kleikamp (for jfs) > --- > arch/powerpc/platforms/cell/spufs/file.c | 2 +- > drivers/s

Re: [PATCH V2 1/6] powerpc: Move udbg_early_init() after early_init_devtree()

2011-03-02 Thread Dave Kleikamp
On Wed, 2011-03-02 at 14:37 +1100, Benjamin Herrenschmidt wrote: > On Mon, 2011-02-07 at 19:29 +1100, David Gibson wrote: > > On Wed, Feb 02, 2011 at 06:00:25PM -0600, Dave Kleikamp wrote: > > > On Thu, 2011-02-03 at 10:06 +1100, David Gibson wrote: > > > > On Tue, Fe

[PATCH v3 2/6] powerpc/44x: allow override to hard-coded uart address

2011-02-09 Thread Dave Kleikamp
Allow the early debug uart address to be overridden from the kernel command line. I would have preferred use the uart's virtual-reg property, but the device tree hasn't been unflatted yet, and I don't know a reliable way to find it. Signed-off-by: Dave Kleikamp Cc: Benjamin He

[PATCH v3 5/6] powerpc/44x: boot wrapper: allow kernel to load into non-zero address

2011-02-09 Thread Dave Kleikamp
For AMP, different kernel instances load into separate memory regions. Read the start of memory from the device tree and limit the memory to what's specified in the device tree. Signed-off-by: Dave Kleikamp Cc: Benjamin Herrenschmidt Cc: Josh Boyer Cc: linuxppc-dev@lists.ozlabs.org ---

[PATCH v3 3/6] powerpc/47x: allow kernel to be loaded in higher physical memory

2011-02-09 Thread Dave Kleikamp
The 44x code (which is shared by 47x) assumes the available physical memory begins at 0x. This is not necessarily the case in an AMP environment. Support CONFIG_RELOCATABLE for 476 in order to allow the kernel to be loaded into a higher memory range. Signed-off-by: Dave Kleikamp Cc

[PATCH v3 1/6] powerpc: Move udbg_early_init() after early_init_devtree()

2011-02-09 Thread Dave Kleikamp
so that it can use information from the device tree. Signed-off-by: Dave Kleikamp Cc: Benjamin Herrenschmidt Cc: Josh Boyer Cc: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/kernel/setup_32.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kernel

[PATCH v3 6/6] powerpc/476: Create a dts files for two 476 AMP instances under ISS

2011-02-09 Thread Dave Kleikamp
These are completely independent OS instances, each running on 2 cores. Signed-off-by: Dave Kleikamp Cc: Benjamin Herrenschmidt Cc: Josh Boyer Cc: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/boot/Makefile|6 ++- arch/powerpc/boot/dts/iss476-amp1.dts | 119

[PATCH v3 4/6] powerpc/44x: don't use tlbivax on AMP systems

2011-02-09 Thread Dave Kleikamp
Since other OS's may be running on the other cores don't use tlbivax Signed-off-by: Dave Kleikamp Cc: Benjamin Herrenschmidt Cc: Josh Boyer Cc: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/include/asm/mmu.h |2 +- arch/powerpc/kernel/setup_32.c |2 ++ arch/powerpc/mm/tl

[PATCH v3 0/6] powerpc: AMP support for 47x

2011-02-09 Thread Dave Kleikamp
ied memory range in boot wrapper 4. Cleaned up the dts files v2: 1. Replace ugly hack in boot wrapper with generic solution Dave Kleikamp (6): powerpc: Move udbg_early_init() after early_init_devtree() powerpc/44x: allow override to hard-coded uart address powerpc/47x: allow kernel to be

Re: [PATCH V2 6/6] powerpc/476: Create a dts files for two 476 AMP instances under ISS

2011-02-09 Thread Dave Kleikamp
On Wed, 2011-02-02 at 13:43 +1100, David Gibson wrote: > On Tue, Feb 01, 2011 at 12:48:46PM -0600, Dave Kleikamp wrote: > > These are completely independent OS instances, each running on 2 > > cores. > > [snip] > > +/memreserve/ 0x01f0 0x0010; > > A comm

Re: [PATCH V2 3/6] powerpc/47x: allow kernel to be loaded in higher physical memory

2011-02-09 Thread Dave Kleikamp
On Wed, 2011-02-02 at 01:45 -0600, Kumar Gala wrote: > On Feb 1, 2011, at 12:48 PM, Dave Kleikamp wrote: > > > Signed-off-by: Dave Kleikamp > > Cc: Benjamin Herrenschmidt > > Cc: Josh Boyer > > Cc: linuxppc-dev@lists.ozlabs.org > > --- > > arch/power

Re: [PATCH V2 4/6] powerpc/44x: don't use tlbivax on AMP systems

2011-02-04 Thread Dave Kleikamp
On Fri, 2011-02-04 at 08:56 -0500, Josh Boyer wrote: > On Tue, Feb 01, 2011 at 12:48:44PM -0600, Dave Kleikamp wrote: > >diff --git a/arch/powerpc/mm/tlb_nohash.c b/arch/powerpc/mm/tlb_nohash.c > >index 2a030d8..b33c5e6 100644 > >--- a/arch/powerpc/mm/tlb_nohash.c >

Re: [PATCH V2 5/6] powerpc/44x: boot wrapper: allow kernel to load into non-zero address

2011-02-04 Thread Dave Kleikamp
On Fri, 2011-02-04 at 09:07 -0500, Josh Boyer wrote: > On Tue, Feb 01, 2011 at 12:48:45PM -0600, Dave Kleikamp wrote: > >+static ibm4xx_memstart; > >+ > > static void iss_4xx_fixups(void) > > { > >-ibm4xx_sdram_fixup_memsize(); > >+void *memory;

Re: [PATCH V2 4/6] powerpc/44x: don't use tlbivax on AMP systems

2011-02-03 Thread Dave Kleikamp
On Thu, 2011-02-03 at 16:03 +1100, David Gibson wrote: > On Wed, Feb 02, 2011 at 05:53:59PM -0600, Dave Kleikamp wrote: > > On Thu, 2011-02-03 at 10:08 +1100, David Gibson wrote: > > > On Tue, Feb 01, 2011 at 12:48:44PM -0600, Dave Kleikamp wrote: > > > > Since ot

Re: [PATCH V2 1/6] powerpc: Move udbg_early_init() after early_init_devtree()

2011-02-02 Thread Dave Kleikamp
On Thu, 2011-02-03 at 10:06 +1100, David Gibson wrote: > On Tue, Feb 01, 2011 at 12:48:41PM -0600, Dave Kleikamp wrote: > > so that it can use information from the device tree. > > Hrm. On the other hand this means that the early_init_devtree() code > can't benefit from ha

Re: [PATCH V2 4/6] powerpc/44x: don't use tlbivax on AMP systems

2011-02-02 Thread Dave Kleikamp
On Thu, 2011-02-03 at 10:08 +1100, David Gibson wrote: > On Tue, Feb 01, 2011 at 12:48:44PM -0600, Dave Kleikamp wrote: > > Since other OS's may be running on the other cores don't use tlbivax > > [snip] > > +#ifdef CONFIG_44x > > +void __init early_init_mmu_4

Re: [PATCH V2 4/6] powerpc/44x: don't use tlbivax on AMP systems

2011-02-02 Thread Dave Kleikamp
On Wed, 2011-02-02 at 01:48 -0600, Kumar Gala wrote: > On Feb 1, 2011, at 12:48 PM, Dave Kleikamp wrote: > > > Since other OS's may be running on the other cores don't use tlbivax > > Are you guys building SMP kernel for use with AMP? Just wondering why you'd

Re: [PATCH V2 5/6] powerpc/44x: boot wrapper: allow kernel to load into non-zero address

2011-02-01 Thread Dave Kleikamp
On Tue, 2011-02-01 at 13:13 -0600, Scott Wood wrote: > On Tue, 1 Feb 2011 12:48:45 -0600 > Dave Kleikamp wrote: > > > For AMP, different kernel instances load into separate memory regions. > > Read the start of memory from the device tree and limit the memory to what&#

[PATCH V2 4/6] powerpc/44x: don't use tlbivax on AMP systems

2011-02-01 Thread Dave Kleikamp
Since other OS's may be running on the other cores don't use tlbivax Signed-off-by: Dave Kleikamp Cc: Benjamin Herrenschmidt Cc: Josh Boyer Cc: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/include/asm/mmu.h |2 +- arch/powerpc/kernel/setup_32.c |2 ++ arch/powerpc/mm/tl

[PATCH V2 5/6] powerpc/44x: boot wrapper: allow kernel to load into non-zero address

2011-02-01 Thread Dave Kleikamp
For AMP, different kernel instances load into separate memory regions. Read the start of memory from the device tree and limit the memory to what's specified in the device tree. Signed-off-by: Dave Kleikamp Cc: Benjamin Herrenschmidt Cc: Josh Boyer Cc: linuxppc-dev@lists.ozlabs.org ---

[PATCH V2 6/6] powerpc/476: Create a dts files for two 476 AMP instances under ISS

2011-02-01 Thread Dave Kleikamp
These are completely independent OS instances, each running on 2 cores. Signed-off-by: Dave Kleikamp Cc: Benjamin Herrenschmidt Cc: Josh Boyer Cc: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/boot/Makefile|6 ++- arch/powerpc/boot/dts/iss476-amp1.dts | 119

[PATCH V2 3/6] powerpc/47x: allow kernel to be loaded in higher physical memory

2011-02-01 Thread Dave Kleikamp
Signed-off-by: Dave Kleikamp Cc: Benjamin Herrenschmidt Cc: Josh Boyer Cc: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/Kconfig |2 +- arch/powerpc/configs/44x/iss476-smp_defconfig |6 ++-- arch/powerpc/kernel/head_44x.S| 42

[PATCH V2 1/6] powerpc: Move udbg_early_init() after early_init_devtree()

2011-02-01 Thread Dave Kleikamp
so that it can use information from the device tree. Signed-off-by: Dave Kleikamp Cc: Benjamin Herrenschmidt Cc: Josh Boyer Cc: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/kernel/setup_32.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kernel

[PATCH V2 2/6] powerpc/44x: allow override to hard-coded uart address

2011-02-01 Thread Dave Kleikamp
Allow the early debug uart address to be overridden from the kernel command line. I would have preferred use the uart's virtual-reg property, but the device tree hasn't been unflatted yet, and I don't know a reliable way to find it. Signed-off-by: Dave Kleikamp Cc: Benjamin He

[PATCH V2 0/6] powerpc: AMP support for 47x

2011-02-01 Thread Dave Kleikamp
These patches add Asynchonous MultiProcessing support for the 47x chipset. This allows independent OS instances to run on separate cores. V2: 1. Replace ugly hack in boot wrapper with generic solution Dave Kleikamp (6): powerpc: Move udbg_early_init() after early_init_devtree() powerpc/44x

[PATCH 3/5] powerpc/47x: allow kernel to be loaded in higher physical memory

2011-01-26 Thread Dave Kleikamp
Signed-off-by: Dave Kleikamp --- arch/powerpc/Kconfig |2 +- arch/powerpc/configs/44x/iss476-smp_defconfig |6 ++-- arch/powerpc/kernel/head_44x.S| 42 - arch/powerpc/mm/44x_mmu.c | 13 ++-- 4

[PATCH 4/5] powerpc/44x: don't use tlbivax on AMP systems

2011-01-26 Thread Dave Kleikamp
Since other OS's may be running on the other cores don't use tlbivax Signed-off-by: Dave Kleikamp --- arch/powerpc/include/asm/mmu.h |2 +- arch/powerpc/kernel/setup_32.c |2 ++ arch/powerpc/mm/tlb_nohash.c | 21 - 3 files changed, 23 insertions(+), 2

[PATCH 1/5] powerpc: Move udbg_early_init() after early_init_devtree()

2011-01-26 Thread Dave Kleikamp
so that it can use information from the device tree. Signed-off-by: Dave Kleikamp --- arch/powerpc/kernel/setup_32.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c index 1d2fbc9..d1ca976 100644 --- a

[PATCH 5/5] powerpc/476: Create a dts files for two 476 AMP instances under ISS

2011-01-26 Thread Dave Kleikamp
These are completely independent OS instances, each running on 2 cores. Signed-off-by: Dave Kleikamp --- arch/powerpc/boot/Makefile |9 ++- arch/powerpc/boot/dts/iss476-amp1.dts | 119 ++ arch/powerpc/boot/dts/iss476-amp2.dts | 123

[PATCH 0/5] powerpc: AMP support for 47x

2011-01-26 Thread Dave Kleikamp
These patches add Asynchonous MultiProcessing support for the 47x chipset. This allows independent OS instances to run on separate cores. Dave Kleikamp (5): powerpc: Move udbg_early_init() after early_init_devtree() powerpc/44x: allow override to hard-coded uart address powerpc/47x: allow

[PATCH 2/5] powerpc/44x: allow override to hard-coded uart address

2011-01-26 Thread Dave Kleikamp
Allow the early debug uart address to be overridden from the kernel command line. I would have preferred use the uart's virtual-reg property, but the device tree hasn't been unflatted yet, and I don't know a reliable way to find it. Signed-off-by: Dave Kleikamp --- arch

[PATCH 1/2] powerpc/476: define specific cpu table entry DD2 core

2011-01-26 Thread Dave Kleikamp
The DD2 core still has some unstability. Define CPU_FTR_476_DD2 to enable workarounds in later patches. This is based on an earlier, unreleased patch for DD1 by Ben Herrenschmidt. Signed-off-by: Dave Kleikamp --- arch/powerpc/include/asm/cputable.h |3 ++- arch/powerpc/kernel/cputable.c

[PATCH 0/2] Workaround for PowerPC 476FP hardware bug

2011-01-26 Thread Dave Kleikamp
These patches add a workaround to avoid a hang on the DD2 level of the 476FP core. This hardware bug will be fixed in future products, but this particular core will used in production. Dave Kleikamp (2): powerpc/476: define specific cpu table entry DD2 core powerpc/476: Workaround for PLB6

[PATCH 2/2] powerpc/476: Workaround for PLB6 hang

2011-01-26 Thread Dave Kleikamp
The 476FP core may hang if an instruction fetch happens during an msync following a tlbsync. This workaround makes sure that enough instruction cache lines are pre-fetched before executing the msync. (sync and msync are the same to the compiler.) Signed-off-by: Dave Kleikamp --- arch/powerpc

Re: Run 'usermode-agent' cause kernel panic on Powerpc

2010-12-07 Thread Dave Kleikamp
On Tue, 2010-12-07 at 14:48 +0800, xufeng zhang wrote: > Hi Dave, > > I have a question with the below patch you made before: > > powerpc/booke: Add support for advanced debug registers > > From: Dave Kleikamp > > Based on pa

Re: [PATCH 2/2] ppc: lazy flush_tlb_mm for nohash architectures

2010-10-18 Thread Dave Kleikamp
On Thu, 2010-10-14 at 11:52 +1100, Benjamin Herrenschmidt wrote: > On Fri, 2010-09-24 at 13:01 -0500, Dave Kleikamp wrote: > > On PPC_MMU_NOHASH processors that support a large number of contexts, > > implement a lazy flush_tlb_mm() that switches to a free context, marking > &

[RFC PATCH v3] 476: Set CCR2[DSTI] to prevent isync from flushing shadow TLB

2010-10-15 Thread Dave Kleikamp
The 476 requires an isync following a write to certain SPRs in order for their changes to be effective. Such is the case with the DSTI bit, so the first isync may not be affected by an immediate change to CCR2, but a second isync instruction will repect the setting. Signed-off-by: Dave Kleikamp

Re: [PATCH 1/2] v2 476: Set CCR2[DSTI] to prevent isync from flushing shadow TLB

2010-10-12 Thread Dave Kleikamp
s where we are switching context. > In those situations, we explicitly clear the DSTI bit before performing > isync, and set it again afterward. We also need to do the same when we > perform isync after explicitly flushing the TLB. > > Signed-off-by: Dave Kleikamp > --- >

[PATCH 1/2] v2 476: Set CCR2[DSTI] to prevent isync from flushing shadow TLB

2010-09-27 Thread Dave Kleikamp
hose situations, we explicitly clear the DSTI bit before performing isync, and set it again afterward. We also need to do the same when we perform isync after explicitly flushing the TLB. Signed-off-by: Dave Kleikamp --- arch/powerpc/include/asm/reg_booke.h |4 arch/powerpc/kernel/head_4

Re: [PATCH 1/2] 476: Set CCR2[DSTI] to prevent isync from flushing shadow TLB

2010-09-27 Thread Dave Kleikamp
On Tue, 2010-09-28 at 07:10 +1000, Benjamin Herrenschmidt wrote: > On Mon, 2010-09-27 at 10:26 -0500, Dave Kleikamp wrote: > > I think I made it a config option at Ben's request when I first started > > this work last year, before being sidetracked by other priorities. I >

Re: [PATCH 1/2] 476: Set CCR2[DSTI] to prevent isync from flushing shadow TLB

2010-09-27 Thread Dave Kleikamp
On Mon, 2010-09-27 at 11:04 -0400, Josh Boyer wrote: > On Fri, Sep 24, 2010 at 01:01:36PM -0500, Dave Kleikamp wrote: > >When the DSTI (Disable Shadow TLB Invalidate) bit is set in the CCR2 > >register, the isync command does not flush the shadow TLB (iTLB & dTLB). > > >

[PATCH 2/2] ppc: lazy flush_tlb_mm for nohash architectures

2010-09-24 Thread Dave Kleikamp
which is set during init, dependent upon MMU_FTR_TYPE_47x. Signed-off-by: Dave Kleikamp --- arch/powerpc/mm/mmu_context_nohash.c | 154 +++--- arch/powerpc/mm/mmu_decl.h |8 ++ arch/powerpc/mm/tlb_nohash.c | 28 +- 3 files changed, 174

[PATCH 1/2] 476: Set CCR2[DSTI] to prevent isync from flushing shadow TLB

2010-09-24 Thread Dave Kleikamp
that the feature works as expected, the option can probably be removed. Signed-off-by: Dave Kleikamp --- arch/powerpc/include/asm/reg_booke.h |4 arch/powerpc/kernel/head_44x.S| 25 + arch/powerpc/mm/tlb_nohash_low.S | 14 +- arch/pow

[PATCH 0/2] powerpc/47x TLB optimization patches

2010-09-24 Thread Dave Kleikamp
These two patches reduce the frequency that the tlb caches are flushed in hardware. Both the normal tlb cache and the "shadow" tlb cache, which separates the tlbs for data and instruction access (dTLB and iTLB). Dave Kleikamp (2): 476: Set CCR2[DSTI] to prevent isync from flushing

Re: [PATCH 0/4] Some 47x patches for the powerpc-4xx tree

2010-08-18 Thread Dave Kleikamp
Sorry! Forgot to change the subject. Shaggy On Wed, 2010-08-18 at 11:44 -0500, Dave Kleikamp wrote: > Josh, > Here are some bug fixes for the powerpc-4xx tree. It'd be nice if they > could make it into 2.6.46. > > Thanks, > Shaggy > > Dave Kleikamp (4): >

[PATCH 2/4] powerpc/47x: Remove redundant line from cputable.c

2010-08-18 Thread Dave Kleikamp
There are two entries for .cpu_user_features in arch/powerpc/kernel/cputable.c. Remove the one that doesn't belong Signed-off-by: Dave Kleikamp --- arch/powerpc/kernel/cputable.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/kernel/cputable.c b

[PATCH 3/4] powerpc/4xx: Index interrupt stacks by physical cpu

2010-08-18 Thread Dave Kleikamp
The interrupt stacks need to be indexed by the physical cpu since the critical, debug and machine check handlers use the contents of SPRN_PIR to index the critirq_ctx, dbgirq_ctx, and mcheckirq_ctx arrays. Signed-off-by: Dave Kleikamp --- arch/powerpc/kernel/irq.c | 15

[PATCH 4/4] powerpc/47x: Add an isync before the tlbivax instruction

2010-08-18 Thread Dave Kleikamp
Signed-off-by: Dave Kleikamp --- arch/powerpc/mm/tlb_nohash_low.S |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/mm/tlb_nohash_low.S b/arch/powerpc/mm/tlb_nohash_low.S index cfa7682..b9d9fed 100644 --- a/arch/powerpc/mm/tlb_nohash_low.S +++ b/arch/powerpc

[PATCH 0/4] *** SUBJECT HERE ***

2010-08-18 Thread Dave Kleikamp
Josh, Here are some bug fixes for the powerpc-4xx tree. It'd be nice if they could make it into 2.6.46. Thanks, Shaggy Dave Kleikamp (4): powerpc/47x: Make sure mcsr is cleared before enabling machine check interrupts powerpc/47x: Remove redundant line from cputable.c powerp

[PATCH 1/4] powerpc/47x: Make sure mcsr is cleared before enabling machine check interrupts

2010-08-18 Thread Dave Kleikamp
Clear the machine check syndrom register before enabling machine check interrupts. The initial state of the tlb can lead to parity errors being flagged early after a cold boot. Signed-off-by: Dave Kleikamp --- arch/powerpc/kernel/head_44x.S |4 1 files changed, 4 insertions(+), 0

Re: [PATCH] powerpc: fix userspace build of ptrace.h

2010-05-10 Thread Dave Kleikamp
Subject: [PATCH] powerpc: fix userspace build of ptrace.h > > > > Build of ptrace.h failed for assembly because it > > pulls in stdint.h. > > Use exportable types (__u32, __u64) to avoid the dependency > > on stdint.h. > > > > Signed-off-by: Sam

Re: Fix [e]glibc build process

2010-05-08 Thread Dave Kleikamp
9fa5f870ebf1e > Date: Mon, 8 Feb 2010 11:51:05 + (11:51 +) > from: Dave Kleikamp > > Signed-off-by: Andrey Volkov > > --- > > arch/powerpc/include/asm/ptrace.h |2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > > diff --git a/arch/po

Re: [PATCH 06/13] powerpc/4xx: Simple platform for the ISS 4xx simulator

2010-05-05 Thread Dave Kleikamp
On Wed, 2010-05-05 at 11:11 -0400, Josh Boyer wrote: > On Fri, Mar 05, 2010 at 01:45:54PM -0700, Dave Kleikamp wrote: > >+config ISS4xx > >+bool "ISS 4xx Simulator" > >+depends on (44x || 40x) > >+default n > >+select 405GP if

Re: [PATCH 04/13] powerpc/476: add machine check handler for 47x core

2010-05-05 Thread Dave Kleikamp
;PPC47x_MCSR_FPR' undeclared (first > >use in this function) > >arch/powerpc/kernel/traps.c:415: error: 'PPC47x_MCSR_IPR' undeclared (first > >use in this function) > >make[1]: *** [arch/powerpc/kernel/traps.o] Error 1 > >make: *** [arch/powerpc/kernel]

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

2010-03-29 Thread Dave Kleikamp
On Mon, 2010-03-29 at 17:01 +0530, K.Prasad wrote: > On Fri, Mar 26, 2010 at 04:11:45PM -0500, Dave Kleikamp wrote: > > On Tue, 2010-03-23 at 19:37 +0530, K.Prasad wrote: > > > plain text document attachment (ppc64_hbkpt_02) > > > Implement perf-events based hw-brea

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

2010-03-26 Thread Dave Kleikamp
On Tue, 2010-03-23 at 19:37 +0530, K.Prasad wrote: > plain text document attachment (ppc64_hbkpt_02) > 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.

Re: [PATCH 05/13] powerpc/476: Add isync after loading mmu and debug spr's

2010-03-10 Thread Dave Kleikamp
On Sun, 2010-03-07 at 15:08 -0800, Hollis Blanchard wrote: > On Fri, Mar 5, 2010 at 12:43 PM, Dave Kleikamp > wrote: > > > > powerpc/476: Add isync after loading mmu and debug spr's > > > > From: Dave Kleikamp > > > > 476 requires an isync afte

[PATCH 13/13] powerpc/476: Add dci instruction to async interrupt handlers on DD1 core

2010-03-05 Thread Dave Kleikamp
powerpc/476: Add dci instruction to async interrupt handlers on DD1 core From: Dave Kleikamp Signed-off-by: Dave Kleikamp --- arch/powerpc/include/asm/asm-compat.h |5 + arch/powerpc/include/asm/cputable.h |1 + arch/powerpc/kernel/cputable.c| 14 ++ arch

[PATCH 12/13] powerpc/476: Workaround for DD1.1: Issue lwsync after mtpid

2010-03-05 Thread Dave Kleikamp
powerpc/476: Workaround for DD1.1: Issue lwsync after mtpid From: Dave Kleikamp Signed-off-by: Dave Kleikamp --- arch/powerpc/include/asm/asm-compat.h |2 ++ arch/powerpc/kernel/head_44x.S|1 + 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/powerpc

[PATCH 11/13] powerpc/476: Software workaround to fix dcr read/write sequencing.

2010-03-05 Thread Dave Kleikamp
powerpc/476: Software workaround to fix dcr read/write sequencing. From: Dave Kleikamp Copy the register containing the dcr address to a spr before mfdcrx or mtdcrx instruction. SPRN_SPRG_WSCRATCH_CRIT seems safe enough to use as a dummy register, as it is only otherwise used by critical

[PATCH 10/13] powerpc/476: Add isync to the top of all exception handlers for DD1.1 core

2010-03-05 Thread Dave Kleikamp
powerpc/476: Add isync to the top of all exception handlers for DD1.1 core From: Dave Kleikamp Signed-off-by: Dave Kleikamp --- arch/powerpc/include/asm/asm-compat.h |7 ++- arch/powerpc/kernel/head_booke.h |3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff

[PATCH 09/13] powerpc/476: Workaround for dcbf/dcbz workaround on DD1

2010-03-05 Thread Dave Kleikamp
-by: Dave Kleikamp --- arch/powerpc/include/asm/asm-compat.h | 10 +++ arch/powerpc/include/asm/ppc-opcode.h |4 +++ arch/powerpc/include/asm/reg_booke.h |9 +++ arch/powerpc/kernel/entry_32.S| 35 +++--- arch/powerpc/kernel/head_44x.S

[PATCH 06/13] powerpc/4xx: Simple platform for the ISS 4xx simulator

2010-03-05 Thread Dave Kleikamp
core. Signed-off-by: Torez Smith Signed-off-by: Dave Kleikamp --- arch/powerpc/boot/Makefile|5 + arch/powerpc/boot/dts/iss4xx-mpic.dts | 155 +++ arch/powerpc/boot/dts/iss4xx.dts | 116 +++ arch/powerpc/boot/treeboot-iss

[PATCH 08/13] powerpc/476: define specific cpu table entry DD1.1 core

2010-03-05 Thread Dave Kleikamp
ional workaround that will be addressed in a separate patch, which may not need to be picked up into the mainline kernel. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Dave Kleikamp --- arch/powerpc/include/asm/cputable.h |1 + arch/powerpc/kernel/cputable.c |

[PATCH 07/13] powerpc/47x: defconfig for 476 on the iss 4xx simulator

2010-03-05 Thread Dave Kleikamp
powerpc/47x: defconfig for 476 on the iss 4xx simulator From: Dave Kleikamp Signed-off-by: Dave Kleikamp --- arch/powerpc/configs/44x/iss476-smp_defconfig | 1026 + 1 files changed, 1026 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/configs/44x/iss476

[PATCH 05/13] powerpc/476: Add isync after loading mmu and debug spr's

2010-03-05 Thread Dave Kleikamp
powerpc/476: Add isync after loading mmu and debug spr's From: Dave Kleikamp 476 requires an isync after loading MMU and debug related SPR's. Some of these are in performance-critical paths and may need to be optimized, but initially, we're playing it safe. Signed-off-by: Torez

[PATCH 01/13] powerpc/booke: Add Stack Marking support to Booke Exception Prolog

2010-03-05 Thread Dave Kleikamp
d-off-by: Torez Smith Signed-off-by: Dave Kleikamp --- arch/powerpc/kernel/head_booke.h |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/kernel/head_booke.h b/arch/powerpc/kernel/head_booke.h index 50504ae..a0bf158 100644 --- a/arch/powerpc/kernel/head_bo

[PATCH 04/13] powerpc/476: add machine check handler for 47x core

2010-03-05 Thread Dave Kleikamp
powerpc/476: add machine check handler for 47x core From: Dave Kleikamp The 47x core's MCSR varies from 44x, so it needs it's own machine check handler. Signed-off-by: Dave Kleikamp --- arch/powerpc/include/asm/cputable.h |1 + arch/powerpc/kernel/cputable.c |1 + ar

[PATCH 03/13] powerpc/47x: Base ppc476 support

2010-03-05 Thread Dave Kleikamp
powerpc/47x: Base ppc476 support From: Dave Kleikamp This patch adds the base support for the 476 processor. The code was primarily written by Ben Herrenschmidt and Torez Smith, but I've been maintaining it for a while. The goal is to have a single binary that will run on 44x and 47x, b

[PATCH 02/13] powerpc/44x: break out cpu init code into stand-alone function

2010-03-05 Thread Dave Kleikamp
powerpc/44x: break out cpu init code into stand-alone function From: Dave Kleikamp The 47x platform supports multiple cores and shares code with 44x. Break out code that is common for initializing the primary and secondary cpus into a function which can be called for both. Signed-off-by: Dave

[PATCH 00/13] powerpc/47x: Support for 476 core - Version 2

2010-03-05 Thread Dave Kleikamp
nt - fixed PVR values in cputable.c - replaced re-definition of STACK_FRAME_REGS_MARKER with include of ptrace.h - removed PPC_44x_46x config option - Kconfig: ISS4xx shouldn't select 440GP for 47x - Separate out DD1 workaround from DD1.1 workarounds -- Dave Kleikamp IBM Linux Technology Center __

Re: [RFC: PATCH 08/13] powerpc/476: define specific cpu table entry for DD1 and DD1.1 cores

2010-03-05 Thread Dave Kleikamp
On Fri, 2010-03-05 at 03:15 -0600, Kumar Gala wrote: > On Mar 4, 2010, at 11:06 AM, Hollis Blanchard wrote: > > > On Mon, Mar 1, 2010 at 11:13 AM, Dave Kleikamp > > wrote: > > powerpc/476: define specific cpu table entry for DD1 and DD1.1 cores > > &g

Re: [RFC: PATCH 01/13] powerpc/booke: Add Stack Marking support to Booke Exception Prolog

2010-03-02 Thread Dave Kleikamp
On Tue, 2010-03-02 at 08:50 -0600, Kumar Gala wrote: > On Mar 1, 2010, at 1:13 PM, Dave Kleikamp wrote: > > > powerpc/booke: Add Stack Marking support to Booke Exception Prolog > > > > From: Torez Smith > > > > Signed-off-by: Torez Smit

Re: [RFC: PATCH 08/13] powerpc/476: define specific cpu table entry for DD1 and DD1.1 cores

2010-03-01 Thread Dave Kleikamp
On Mon, 2010-03-01 at 15:24 -0500, Josh Boyer wrote: > On Mon, Mar 01, 2010 at 02:13:52PM -0500, Dave Kleikamp wrote: > >powerpc/476: define specific cpu table entry for DD1 and DD1.1 cores > > > >From: Benjamin Herrenschmidt > > > >There are still some unstabl

Re: [RFC: PATCH 06/13] powerpc/4xx: Simple platform for the ISS 4xx simulator

2010-03-01 Thread Dave Kleikamp
On Mon, 2010-03-01 at 15:29 -0500, Josh Boyer wrote: > On Mon, Mar 01, 2010 at 12:16:00PM -0700, Dave Kleikamp wrote: > >diff --git a/arch/powerpc/platforms/44x/Kconfig > >b/arch/powerpc/platforms/44x/Kconfig > >index 1dfc1c1..915c295 100644 > >--- a/arch/powerpc/pla

Re: [RFC: PATCH 04/13] powerpc/476: add machine check handler for 47x core

2010-03-01 Thread Dave Kleikamp
On Mon, 2010-03-01 at 15:08 -0600, Olof Johansson wrote: > On Mon, Mar 01, 2010 at 05:13:23AM -0700, Dave Kleikamp wrote: > > powerpc/476: add machine check handler for 47x core > > > > From: Dave Kleikamp > > > > The 47x core's MCSR varies from 4

Re: [RFC: PATCH 03/13] powerpc/47x: Base ppc476 support

2010-03-01 Thread Dave Kleikamp
for any other > patch). Right, wanted to make sure they approved of the current state of the patches. They'll go through Ben anyway. > On Mon, Mar 01, 2010 at 12:13:15PM -0700, Dave Kleikamp wrote: > >diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/reg.h &g

[RFC: PATCH 13/13] powerpc/476: Add dci instruction to async interrupt handlers on DD1 core

2010-03-01 Thread Dave Kleikamp
powerpc/476: Add dci instruction to async interrupt handlers on DD1 core From: Dave Kleikamp Signed-off-by: Dave Kleikamp --- arch/powerpc/include/asm/asm-compat.h |5 + arch/powerpc/kernel/head_booke.h |3 +++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a

[RFC: PATCH 11/13] powerpc/476: Software workaround to fix dcr read/write sequencing.

2010-03-01 Thread Dave Kleikamp
powerpc/476: Software workaround to fix dcr read/write sequencing. From: Dave Kleikamp Copy the register containing the dcr address to a spr before mfdcrx or mtdcrx instruction. SPRN_SPRG_WSCRATCH_CRIT seems safe enough to use as a dummy register, as it is only otherwise used by critical

[RFC: PATCH 12/13] powerpc/476: Workaround for DD1.1: Issue lwsync after mtpid

2010-03-01 Thread Dave Kleikamp
powerpc/476: Workaround for DD1.1: Issue lwsync after mtpid From: Dave Kleikamp Signed-off-by: Dave Kleikamp --- arch/powerpc/include/asm/asm-compat.h |2 ++ arch/powerpc/kernel/head_44x.S|1 + 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/powerpc

[RFC: PATCH 09/13] powerpc/476: Workaround for dcbf/dcbz workaround on DD1

2010-03-01 Thread Dave Kleikamp
-by: Dave Kleikamp --- arch/powerpc/include/asm/asm-compat.h | 10 +++ arch/powerpc/include/asm/ppc-opcode.h |4 +++ arch/powerpc/include/asm/reg_booke.h |9 +++ arch/powerpc/kernel/entry_32.S| 35 +++--- arch/powerpc/kernel/head_44x.S

[RFC: PATCH 10/13] powerpc/476: Add isync to the top of all exception handlers for DD1.1 core

2010-03-01 Thread Dave Kleikamp
powerpc/476: Add isync to the top of all exception handlers for DD1.1 core From: Dave Kleikamp Signed-off-by: Dave Kleikamp --- arch/powerpc/include/asm/asm-compat.h |7 ++- arch/powerpc/kernel/head_booke.h |3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff

[RFC: PATCH 08/13] powerpc/476: define specific cpu table entry for DD1 and DD1.1 cores

2010-03-01 Thread Dave Kleikamp
tches. The DD1 core requires workarounds triggered by both CPU_FTR_476_DD1 and CPU_FTR_476_DD1_1. the DD1.1 core only needs CPU_FTR_476_DD1_1 defined. Signed-off-by: Dave Kleikamp --- arch/powerpc/include/asm/cputable.h |2 ++ arch/powerpc/kernel/cputable.c |

[RFC: PATCH 07/13] powerpc/47x: defconfig for 476 on the iss 4xx simulator

2010-03-01 Thread Dave Kleikamp
powerpc/47x: defconfig for 476 on the iss 4xx simulator From: Dave Kleikamp Signed-off-by: Dave Kleikamp --- arch/powerpc/configs/44x/iss476-smp_defconfig | 1023 + 1 files changed, 1023 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/configs/44x/iss476

[RFC: PATCH 05/13] powerpc/476: Add isync after loading mmu and debug spr's

2010-03-01 Thread Dave Kleikamp
powerpc/476: Add isync after loading mmu and debug spr's From: Dave Kleikamp 476 requires an isync after loading MMU and debug related SPR's. Some of these are in performance-critical paths and may need to be optimized, but initially, we're playing it safe. Signed-off-by

[RFC: PATCH 06/13] powerpc/4xx: Simple platform for the ISS 4xx simulator

2010-03-01 Thread Dave Kleikamp
core. Signed-off-by: Dave Kleikamp --- arch/powerpc/boot/Makefile|5 + arch/powerpc/boot/dts/iss4xx-mpic.dts | 155 +++ arch/powerpc/boot/dts/iss4xx.dts | 116 +++ arch/powerpc/boot/treeboot-iss4xx.c | 56 +++

[RFC: PATCH 04/13] powerpc/476: add machine check handler for 47x core

2010-03-01 Thread Dave Kleikamp
powerpc/476: add machine check handler for 47x core From: Dave Kleikamp The 47x core's MCSR varies from 44x, so it needs it's own machine check handler. Signed-off-by: Dave Kleikamp --- arch/powerpc/include/asm/cputable.h |1 + arch/powerpc/include/asm/reg_booke.h |

[RFC: PATCH 03/13] powerpc/47x: Base ppc476 support

2010-03-01 Thread Dave Kleikamp
powerpc/47x: Base ppc476 support From: Dave Kleikamp This patch adds the base support for the 476 processor. The code was primarily written by Ben Herrenschmidt and Torez Smith, but I've been maintaining it for a while. The goal is to have a single binary that will run on 44x and 47x, b

[RFC: PATCH 01/13] powerpc/booke: Add Stack Marking support to Booke Exception Prolog

2010-03-01 Thread Dave Kleikamp
powerpc/booke: Add Stack Marking support to Booke Exception Prolog From: Torez Smith Signed-off-by: Torez Smith Signed-off-by: Dave Kleikamp --- arch/powerpc/kernel/head_booke.h |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/kernel/head_booke.h b

[RFC: PATCH 02/13] powerpc/44x: break out cpu init code into stand-alone function

2010-03-01 Thread Dave Kleikamp
powerpc/44x: break out cpu init code into stand-alone function From: Dave Kleikamp The 47x platform supports multiple cores and shares code with 44x. Break out code that is common for initializing the primary and secondary cpus into a function which can be called for both. Signed-off-by: Dave

[RFC: PATCH 00/13] powerpc/47x: Support for 476 core

2010-03-01 Thread Dave Kleikamp
t the ISS simulator, and patches 8-13 add workarounds for DD1 and DD1.1 hardware bugs. -- Dave Kleikamp IBM Linux Technology Center ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH] powerpc/booke: Fix breakpoint/watchpoint one-shot behavior

2010-03-01 Thread Dave Kleikamp
code to delete the break/watchpoints checks the dac* and iac* registers for zero to determine if they are enabled. Instead, they should check the dbcr* bits. Signed-off-by: Dave Kleikamp --- arch/powerpc/kernel/ptrace.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions

[PATCH] powerpc/booke: Fix a couple typos in the advanced ptrace code

2010-02-23 Thread Dave Kleikamp
powerpc/booke: Fix a couple typos in the advanced ptrace code Found and fixed a couple typos in the advanced ptrace patches. (These patches are currently in benh's next tree.) Signed-off-by: Dave Kleikamp Cc: Benjamin Herrenschmidt Cc: linuxppc-dev list --- diff --git a/arch/powerpc/in

[PATCH 04/04] powerpc/booke: Add support for advanced debug registers

2010-02-08 Thread Dave Kleikamp
powerpc/booke: Add support for advanced debug registers From: Dave Kleikamp Based on patches originally written by Torez Smith. This patch defines context switch and trap related functionality for BookE specific Debug Registers. It adds support to ptrace() for setting and getting BookE related

[PATCH 03/04] powerpc/booke: Add definitions for advanced debug registers

2010-02-08 Thread Dave Kleikamp
powerpc/booke: Add definitions for advanced debug registers From: Dave Kleikamp Based on patches originally written by Torez Smith. This patch adds additional definitions for BookE Debug Registers to the reg_booke.h header file. Signed-off-by: Dave Kleikamp Acked-by: David Gibson Cc: Torez

[PATCH 02/04] powerpc: Extended ptrace interface

2010-02-08 Thread Dave Kleikamp
powerpc: Extended ptrace interface From: Dave Kleikamp Based on patches originally written by Torez Smith. Add a new extended ptrace interface so that user-space has a single interface for powerpc, without having to know the specific layout of the debug registers. Implement

[PATCH 01/04] powerpc/booke: Introduce new CONFIG options for advanced debug registers

2010-02-08 Thread Dave Kleikamp
powerpc/booke: Introduce new CONFIG options for advanced debug registers From: Dave Kleikamp Introduce new config options to simplify the ifdefs pertaining to the advanced debug registers for booke and 40x processors: CONFIG_PPC_ADV_DEBUG_REGS - boolean: true for dac-based processors

[PATCH 00/04] powerpc/booke: Expose advanced debug registers through extended ptrace interface

2010-02-08 Thread Dave Kleikamp
ion_value = 0; 3. PTRACE_DELHWDEBUG Takes an integer which identifies an existing breakpoint or watchpoint (i.e., the value returned from PTRACE_SETHWDEBUG), and deletes the corresponding breakpoint or watchpoint.. -- Dave Kleikamp IBM Linux Technology Center

Re: [RFC:PATCH 00/03] powerpc: Expose BookE debug registers through extended ptrace interface

2010-02-02 Thread Dave Kleikamp
On Mon, 2010-01-18 at 16:34 -0600, Dave Kleikamp wrote: > On Thu, 2009-12-10 at 20:23 -0600, Kumar Gala wrote: > > Is GDB smart enough to deal w/no condition_regs? On some Book-E > > devices we have 2 IACs, 2 DACs, and 0 DVCs. Does it need to be in the > > features? > &

Re: [RFC:PATCH 00/03] powerpc: Expose BookE debug registers through extended ptrace interface

2010-01-18 Thread Dave Kleikamp
On Thu, 2009-12-10 at 20:45 -0600, Kumar Gala wrote: > What do we do in EDM mode? We need a flag somewhere to determine if > HW supports conveying DBCR0[EDM] and if it does which of the ptrace > calls fails? I really don't have a good answer to this. I'm open to any and all advice. Shaggy --

  1   2   >