Re: [PATCH 5/5] powerpc: iommu: Implement IOMMU pools to improve multiqueue adapter performance

2012-06-07 Thread Anton Blanchard
Hi, > Breaks the cell code with: > > arch/powerpc/platforms/cell/iommu.c:521:15: error: 'struct > iommu_table' has no member named 'it_hint' Yuck, I'll spin a fix. There's no need for the code to bump the hint. Anton ___ Linuxppc-dev mailing list Lin

[PATCH 5/5] powerpc: iommu: Implement IOMMU pools to improve multiqueue adapter performance

2012-06-07 Thread Anton Blanchard
improved 69% with this patch applied. Signed-off-by: Anton Blanchard --- All patches combined improve performance by 178% v2.0: Fix cell build, noticed by mpe. Index: linux-build/arch/powerpc/kernel/iommu.c === --- linux-build.orig

[PATCH] powerpc: Add VDSO version of getcpu

2012-06-24 Thread Anton Blanchard
cycles Signed-off-by: Anton Blanchard --- Outstanding issues: - Do we have any KVM issues? - This will only work with 64 bit kernels for now, do we need to come up with a scheme for 32 bit? - Implement 32 bit userspace version (running on 64 bit kernels) Index: linux-build/arch/powerpc

[PATCH 1/4] powerpc: vio: Remove dma not supported warnings

2012-06-24 Thread Anton Blanchard
a DMA window. Signed-off-by: Anton Blanchard --- Index: linux-build/arch/powerpc/kernel/vio.c === --- linux-build.orig/arch/powerpc/kernel/vio.c 2012-06-08 14:02:05.548512941 +1000 +++ linux-build/arch/powerpc/kernel/vio.c

[PATCH 2/4] powerpc: vio: Separate vio bus probe and device probe

2012-06-24 Thread Anton Blanchard
Similar to PCI, separate the bus probe from device probe. This allows us to attach bus notifiers for DMA debug and IOMMU fault injection before devices have been probed. Signed-off-by: Anton Blanchard --- Index: linux-build/arch/powerpc/kernel/vio.c

[PATCH 3/4] powerpc: call dma_debug_add_bus for PCI and VIO buses

2012-06-24 Thread Anton Blanchard
The DMA API debug code has hooks to verify all DMA entries have been freed at time of hot unplug. We need to call dma_debug_add_bus for this to work. Signed-off-by: Anton Blanchard --- Index: linux-build/arch/powerpc/kernel/vio.c

[PATCH 4/4] powerpc: IOMMU fault injection

2012-06-24 Thread Anton Blanchard
2net 0003:01:00.1: Unrecoverable error in the card Signed-off-by: Anton Blanchard --- Index: linux-build/arch/powerpc/kernel/iommu.c === --- linux-build.orig/arch/powerpc/kernel/iommu.c2012-06-08 09:01:02.785709100 +1000

[PATCH 1/4] powerpc/perf: Create mmcra_sihv/mmcra_sipv helpers

2012-06-26 Thread Anton Blanchard
We want to access the MMCRA_SIHV and MMCRA_SIPR bits elsewhere so create mmcra_sihv and mmcra_sipr which hide the differences between the old and new layout of the bits. Signed-off-by: Anton Blanchard --- Index: linux-build/arch/powerpc/perf/core-book3s.c

[PATCH 2/4] powerpc/perf: Move code to select SIAR or pt_regs into perf_read_regs

2012-06-26 Thread Anton Blanchard
The logic to choose whether to use the SIAR or get the information out of pt_regs is going to get more complicated, so do it once in perf_read_regs. We overload regs->result which is gross but we are already doing it with regs->dsisr. Signed-off-by: Anton Blanchard --- Other archite

[PATCH 3/4] powerpc/perf: Always use pt_regs for userspace samples

2012-06-26 Thread Anton Blanchard
unable to profile any of our early exception code for example. Signed-off-by: Anton Blanchard --- Index: linux-build/arch/powerpc/perf/core-book3s.c === --- linux-build.orig/arch/powerpc/perf/core-book3s.c2012-06-26 10:45

[PATCH 4/4] powerpc/perf: Use perf_instruction_pointer in callchains

2012-06-26 Thread Anton Blanchard
We use SIAR or regs->nip for the instruction pointer depending on the PMU configuration, but we always use regs->nip in the callchain. Use perf_instruction_pointer so the backtrace is consistent. Signed-off-by: Anton Blanchard --- Index: linux-build/arch/powerpc/perf/callc

Re: [PATCH 4/4] powerpc/perf: Use perf_instruction_pointer in callchains

2012-06-26 Thread Anton Blanchard
Hi Scott, > Won't this break core-fsl-emb, which doesn't define > perf_instruction_pointer()? It links ok for me. You should get the default version: #ifndef perf_misc_flags # define perf_misc_flags(regs) \ (user_mode(regs) ? PERF_RECORD_MISC_USER : PERF_RECORD_MISC_KERNEL) # d

[PATCH] powerpc: check_and_cede_processor never cedes

2012-06-27 Thread Anton Blanchard
d back in the lazy interrupt handling rework of 3.4 but was hidden until recently because hard_irq_disable did nothing. This issue will eventually appear in 3.4 stable since the hard_irq_disable fix is marked stable, so mark this one for stable too. Signed-off-by: Anton Blanchard Cc: sta...@vg

[PATCH] powerpc: check_and_cede_processor never cedes

2012-06-27 Thread Anton Blanchard
_disable did nothing. This issue will eventually appear in 3.4 stable since the hard_irq_disable fix is marked stable, so mark this one for stable too. Signed-off-by: Anton Blanchard Cc: sta...@vger.kernel.org --- v2: create a helper, suggested by Ben. Index: linux-build/arch/powerpc/platfor

[PATCH] powerpc: Use cpumask iterator to avoid warning in xmon

2012-06-28 Thread Anton Blanchard
artition but were never started (eg kexec into a kernel with an nr_cpus= boot option). They are going to die way before we get into xmon since we haven't set any kernel state up for them. Signed-off-by: Anton Blanchard --- diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c

[PATCH] powerpc: Add VDSO version of getcpu

2012-07-04 Thread Anton Blanchard
when transitioning from the guest to the host. I have a glibc patch that implements sched_getcpu on top of this. Testing on a POWER7: baseline: 538 cycles vdso: 30 cycles Signed-off-by: Anton Blanchard --- v2: - Fix kvm - add vdso32 version on 64bit kernel Index: linux-build/arch/powerpc

[PATCH] powerpc: Fix hcall tracepoint recursion

2010-10-21 Thread Anton Blanchard
ocks on shared processor partitions use H_YIELD to notify the hypervisor we are waiting on another virtual CPU. Unfortunately this means the hcall tracepoints can recurse. The patch below adds a percpu depth and checks it on both the entry and exit hcall tracepoints. Signed-off-by: Anton Blanchard ---

Re: Problem with Infiniband adapter on IBM p550

2010-11-03 Thread Anton Blanchard
Hi, > > Now, I think this is the problem. > > > > The "assigned-addresses" property seems to indicate that the > > firmware only assigned BAR 4 and didn't assign anything to the > > other ones. > > > > I don't know why, but it definitely looks like a firmware bug to me. > > On those machines, P

[PATCH] powerpc: Per process DSCR

2010-11-16 Thread Anton Blanchard
avoid the SPR write. Signed-off-by: Anton Blanchard --- Index: powerpc.git/arch/powerpc/include/asm/emulated_ops.h === --- powerpc.git.orig/arch/powerpc/include/asm/emulated_ops.h2010-10-26 08:27:15.241519117 +1100

[PATCH] powerpc: iommu: Add device name to iommu error printks

2010-12-07 Thread Anton Blanchard
Signed-off-by: Anton Blanchard --- Index: powerpc.git/arch/powerpc/kernel/iommu.c === --- powerpc.git.orig/arch/powerpc/kernel/iommu.c2010-12-08 11:28:39.055483332 +1100 +++ powerpc.git/arch/powerpc/kernel/iommu.c 2010

[PATCH] powerpc: Hardcode popcnt instructions for old assemblers

2010-12-07 Thread Anton Blanchard
The popcnt instructions went into binutils relatively recently. As with a number of other instructions, create macros and hardcode them. Signed-off-by: Anton Blanchard --- Index: powerpc.git/arch/powerpc/include/asm/ppc-opcode.h

[PATCH] powerpc: Fix incorrect comment about interrupt stack allocation

2010-12-08 Thread Anton Blanchard
We now allow interrupt stacks anywhere in the first segment which can be 256M or 1TB. Fix the comment. Signed-off-by: Anton Blanchard --- Index: powerpc.git/arch/powerpc/kernel/setup_64.c === --- powerpc.git.orig/arch/powerpc

[PATCH 0/8]: Some kexec/kdump cleanups

2011-01-06 Thread Anton Blanchard
Hi, These patches have been sitting around in my tree for a while. Back when I was trying to understand the twisty maze of powerpc kexec/kdump I did a number of cleanups. Here they are. Anton ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org

[PATCH 1/8] powerpc: Move all ppc_md kexec function pointers together

2011-01-06 Thread Anton Blanchard
Move all the kexec handlers together. Signed-off-by: Anton Blanchard --- Index: powerpc.git/arch/powerpc/include/asm/machdep.h === --- powerpc.git.orig/arch/powerpc/include/asm/machdep.h 2011-01-07 12:50:52.020438276 +1100

[PATCH 2/8] powerpc/kexec: Remove ppc_md.machine_kexec_cleanup

2011-01-06 Thread Anton Blanchard
No one uses ppc_md.machine_kexec_cleanup, so remove it. Signed-off-by: Anton Blanchard --- Index: powerpc.git/arch/powerpc/include/asm/machdep.h === --- powerpc.git.orig/arch/powerpc/include/asm/machdep.h 2011-01-07 12:51

[PATCH 3/8] powerpc/kexec: Remove ppc_md.machine_kexec

2011-01-06 Thread Anton Blanchard
No one uses ppc_md.machine_kexec, so remove it. Signed-off-by: Anton Blanchard --- Index: powerpc.git/arch/powerpc/include/asm/machdep.h === --- powerpc.git.orig/arch/powerpc/include/asm/machdep.h 2011-01-07 12:51:51.352308248

[PATCH 4/8] powerpc/kdump: Remove ppc_md.machine_crash_shutdown

2011-01-06 Thread Anton Blanchard
No one uses ppc_md.machine_crash_shutdown, so remove it. Signed-off-by: Anton Blanchard --- Index: powerpc.git/arch/powerpc/include/asm/machdep.h === --- powerpc.git.orig/arch/powerpc/include/asm/machdep.h 2011-01-07 12:51

[PATCH 5/8] powerpc/kexec: Don't initialise kexec hooks to default handlers

2011-01-06 Thread Anton Blanchard
There's no need to initialise ppc_md.machine_kexec and ppc_md.machine_kexec_prepare to the default handlers. Signed-off-by: Anton Blanchard --- Index: powerpc.git/arch/powerpc/platforms/cell/qpace_setup.c === --- powerpc.git

[PATCH 6/8] powerpc/kexec: Remove empty ppc_md.machine_kexec_prepare

2011-01-06 Thread Anton Blanchard
We check for a valid handler before calling ppc_md.machine_kexec_prepare so we can just remove these empty handlers. Signed-off-by: Anton Blanchard --- Index: powerpc.git/arch/powerpc/platforms/embedded6xx/wii.c

[PATCH 7/8] powerpc/kdump: Move crash_kexec_stop_spus to kdump crash handler

2011-01-06 Thread Anton Blanchard
Use the crash handler hooks to run the SPU stop code, just like we do for ehea and cell RAS code. While I'm here I noticed "CPUSs reliabally" so fix the spelling MISTAKESs reliabally. Signed-off-by: Anton Blanchard --- Index: powerpc.git/arch/powerpc

[PATCH 8/8] powerpc/kdump: Disable ftrace during kexec

2011-01-06 Thread Anton Blanchard
CONFIG_KEXEC_JUMP), add the restore code in case we do one day. Signed-off-by: Anton Blanchard --- Index: powerpc.git/arch/powerpc/kernel/machine_kexec.c === --- powerpc.git.orig/arch/powerpc/kernel/machine_kexec.c2011-01-07

[PATCH 0/9] Machine check handling fixes

2011-01-11 Thread Anton Blanchard
Here are a number of fixes to our machine check handling, found when testing our memory uncorrectable error handling. Anton ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH 1/9] powerpc: Print 32 bits of DSISR in show_regs

2011-01-11 Thread Anton Blanchard
We were printing 64 bits of DSISR in show_regs even though it is 32 bit. Signed-off-by: Anton Blanchard --- Index: powerpc.git/arch/powerpc/kernel/process.c === --- powerpc.git.orig/arch/powerpc/kernel/process.c 2010-10-15

[PATCH 2/9] powerpc: Don't force MSR_RI in machine_check_exception

2011-01-11 Thread Anton Blanchard
We should never force MSR_RI on. If we take a machine check with MSR_RI off then we have no chance of recovering safely. Signed-off-by: Anton Blanchard --- Index: powerpc.git/arch/powerpc/kernel/traps.c === --- powerpc.git.orig

[PATCH 3/9] powerpc: Never halt RTAS error logging after receiving an unrecoverable machine check

2011-01-11 Thread Anton Blanchard
machine check handler. Signed-off-by: Anton Blanchard --- Index: powerpc.git/arch/powerpc/platforms/pseries/ras.c === --- powerpc.git.orig/arch/powerpc/platforms/pseries/ras.c 2010-09-27 21:19:32.805480948 +1000 +++ powerpc.git

[PATCH 4/9] powerpc: Remove duplicate debugger hook in machine_check_exception

2011-01-11 Thread Anton Blanchard
We are calling debugger_fault_handler twice in machine_check_exception. Signed-off-by: Anton Blanchard --- Index: powerpc.git/arch/powerpc/kernel/traps.c === --- powerpc.git.orig/arch/powerpc/kernel/traps.c2011-01-11 13

[PATCH 5/9] powerpc: Don't silently handle machine checks from userspace

2011-01-11 Thread Anton Blanchard
ation, potentially causing a lot of confusion. Signed-off-by: Anton Blanchard --- I seem to remember this might be here for X on 32bit. If necessary I can wrap it in an ifdef CONFIG_PPC32. Index: powerpc.git/arch/powerpc/kernel/tr

[PATCH 6/9] powerpc: Rework pseries machine check handler

2011-01-11 Thread Anton Blanchard
ields when receiving a synchronous machine check. Recent versions of the pseries firmware do not fill them in during a machine check and instead send a follow up error log with the detailed information. If we see a synchronous machine check, and we came from userspace then kill the task. Signed-off

[PATCH 7/9] powerpc: Fix corruption when grabbing FWNMI data

2011-01-11 Thread Anton Blanchard
do receive an extended RTAS log then we fall back to the old behaviour of using the global buffer. Signed-off-by: Anton Blanchard --- Index: powerpc.git/arch/powerpc/platforms/pseries/ras.c === --- powerpc.git.orig/arch/powerpc

[PATCH 8/9] powerpc: Check RTAS extended log flag before checking length

2011-01-11 Thread Anton Blanchard
The spec suggests we should first check the extended log flag before checking the length field. Signed-off-by: Anton Blanchard --- Index: powerpc.git/arch/powerpc/kernel/rtasd.c === --- powerpc.git.orig/arch/powerpc/kernel

[PATCH 9/9] powerpc: machine_check_generic is wrong on 64bit

2011-01-11 Thread Anton Blanchard
as well remove machine_check_generic from 64bit archs. Signed-off-by: Anton Blanchard --- Index: powerpc.git/arch/powerpc/kernel/cputable.c === --- powerpc.git.orig/arch/powerpc/kernel/cputable.c 2011-01-07 12:50:52.0204382

[PATCH 1/2] powerpc: Disable mcount tracers in pseries config

2011-01-12 Thread Anton Blanchard
IRQSOFF_TRACER and STACK_TRACER force the kernel to be built with -pg which is a substantial overhead. Signed-off-by: Anton Blanchard --- Index: powerpc.git/arch/powerpc/configs/pseries_defconfig === --- powerpc.git.orig

[PATCH 2/2] powerpc: Enable 64kB pages and 1024 threads in pseries config

2011-01-12 Thread Anton Blanchard
- Enable 64kB pages so it gets some regular testing. - The largest POWER7 has 1024 threads so bump NR_CPUS it to match. Signed-off-by: Anton Blanchard --- Index: powerpc.git/arch/powerpc/configs/pseries_defconfig

[PATCH] powerpc: perf: Fix frequency calculation for overflowing counters

2011-01-16 Thread Anton Blanchard
ollowing patch we find the correct period after a few interrupts and stay there. I also see no more throttle events. Signed-off-by: Anton Blanchard --- diff --git a/arch/powerpc/kernel/perf_event.c b/arch/powerpc/kernel/perf_event.c index 5674807..ab6f6be 100644 --- a/arch/powerpc/kernel/perf_event

2.6.37-git17 virtual IO boot failure

2011-01-17 Thread Anton Blanchard
Hi, I was testing 2.6.37-git17 on a POWER7 with virtual IO and hit this: Trying to unpack rootfs image as initramfs... Freeing initrd memory: 7446k freed vio 3000: Warning: IOMMU dma not supported: mask 0x, table unavailable vio 4000: Warning: IOMMU dma not supported: mask 0xf

[PATCH] powerpc: perf: Fix frequency calculation for overflowing counters (FSL version)

2011-01-18 Thread Anton Blanchard
e frequency to period calculations in perf go haywire and we continually throttle/unthrottle the PMU. Signed-off-by: Anton Blanchard --- This is only compile tested. Index: powerpc.git/arch/powerpc/kernel/perf_event_fsl_emb.c === ---

[PATCH 7/8] powerpc/kdump: Move crash_kexec_stop_spus to kdump crash handler

2011-01-20 Thread Anton Blanchard
And here's a version that actually compiles. Sorry Ben :) Anton -- Use the crash handler hooks to run the SPU stop code, just like we do for ehea and cell RAS code. While I'm here I noticed "CPUSs reliabally" so fix the spelling MISTAKESs reliabally. Signed-off

Re: 2.6.37-git17 virtual IO boot failure

2011-01-29 Thread Anton Blanchard
Hi, > FWIW, I looked at Anton's logs, and I don't think the boot failed, per > se. I think it may have timed out (but not positive on that). I was > able to boot 2.6.27-git17 on the exact same box, albeit it locks up > at a later point (the sd abort I e-mailed about in a follow-up). This fail bi

[PATCH 1/5] powerpc/numa: Only use active VPHN count fields

2011-01-29 Thread Anton Blanchard
e the VPHN arrays and add a BUILD_BUG_ON to avoid it growing larger than the VPHN maximum of 8. Signed-off-by: Anton Blanchard --- Index: linux-2.6/arch/powerpc/mm/numa.c === --- linux-2.6.orig/arch/powerpc/mm/numa.c 2011-01-

[PATCH 2/5] powerpc/numa: Check for all VPHN changes

2011-01-29 Thread Anton Blanchard
The hypervisor uses unsigned 1 byte counters to signal topology changes to the OS. Since they can wrap we need to check for any difference, not just if the hypervisor count is greater than the previous count. Signed-off-by: Anton Blanchard --- Index: linux-2.6/arch/powerpc/mm/numa.c

[PATCH 3/5] powerpc/numa: Add length when creating OF properties via VPHN

2011-01-29 Thread Anton Blanchard
The rest of the NUMA code expects an OF associativity property with the first cell containing the length. Without this fix all topology changes cause us to misparse the property and put the cpu into node 0. Signed-off-by: Anton Blanchard --- Index: linux-2.6/arch/powerpc/mm/numa.c

[PATCH 4/5] powerpc/numa: Disable VPHN on dedicated processor partitions

2011-01-29 Thread Anton Blanchard
There is no need to start up the timer and monitor topology changes on a dedicated processor partition, so disable it. Signed-off-by: Anton Blanchard --- Index: linux-2.6/arch/powerpc/mm/numa.c === --- linux-2.6.orig/arch/powerpc

[PATCH 5/5] powerpc/numa: Fix bug in unmap_cpu_from_node

2011-01-29 Thread Anton Blanchard
, node_to_cpumask_map[node]); This was introduced in commit 25863de07af9 (powerpc/cpumask: Convert NUMA code to new cpumask API) Fix it. Signed-off-by: Anton Blanchard Cc: --- Index: linux-2.6/arch/powerpc/mm/numa.c === --- linux-2.6.orig/arch

Re: [PATCH 21/23] hvc_console: Fix race between hvc_close and hvc_remove

2011-02-07 Thread Anton Blanchard
he following patch must be applied to fix it. Anton -- commit 320718ee074acce5ffced6506cb51af1388942aa Author: Anton Blanchard Date: Tue Apr 6 21:42:38 2010 +1000 hvc_console: Fix race between hvc_close and hvc_remove I don't claim to understand the tty layer, but it

Re: mpc85xx: kexec build broken by "powerpc/kexec: Remove ppc_md.machine_kexec"

2011-02-23 Thread Anton Blanchard
Hi Kyle, > As far as I can tell, "machine_kexec" was removed in commit c9486878 > (powerpc/kexec: Remove ppc_md.machine_kexec) on Jan 6th, 2011, which > claims that it was not used. > > Unfortunately it looks like it *is* used by the mpc85xx kexec() > support (commit f933a41e), added on Jul 21,

powerpc/kexec: Restore ppc_md.machine_kexec

2011-02-23 Thread Anton Blanchard
Kyle Moffett points out that mpc85xx has started using the ppc_md.machine_kexec hook. As such, revert patch c94868788cf2 (powerpc/kexec: Remove ppc_md.machine_kexec). Signed-off-by: Anton Blanchard --- diff --git a/arch/powerpc/include/asm/machdep.h b/arch/powerpc/include/asm/machdep.h index

[PATCH] powerpc: Add pgprot_writecombine

2011-02-28 Thread Anton Blanchard
A number of drivers are using pgprot_writecombine() to enable write combining on userspace mappings. Implement it on powerpc. Signed-off-by: Anton Blanchard --- diff --git a/arch/powerpc/include/asm/pgtable.h b/arch/powerpc/include/asm/pgtable.h index 89f1587..88b0bd9 100644 --- a/arch

[PATCH] powerpc/pseries: Enable Chelsio network and iWARP drivers

2011-03-05 Thread Anton Blanchard
Ensure the Chelsio T3/T4 network drivers and iWARP drivers are enabled in the pseries config. Signed-off-by: Anton Blanchard --- Index: linux-2.6/arch/powerpc/configs/pseries_defconfig === --- linux-2.6.orig/arch/powerpc/configs

[PATCH] powerpc: perf: Handle events that raise an exception without overflowing

2011-03-08 Thread Anton Blanchard
ff-by: Anton Blanchard Cc: sta...@kernel.org --- I would prefer not to add the PVR check, but I think we want to limit this workaround to POWER7. Would a cpu feature be preferable? Index: linux-2.6/arch/powerpc/kernel/perf_ev

Re: [PATCH 1/2] kdump: Allow shrinking of kdump region to be overridden

2011-03-09 Thread Anton Blanchard
Hi, > The crashkernel region is specified via kernel cmdline, so why > not just drop a failure when it overlaps with RMO region? > Am I missing something? Unfortunately a ppc64 kernel requires a chunk of RMO memory. We would need the ability to specify multiple crashkernel regions - about 32MB i

[PATCH] powerpc: Fix accounting of softirq time when idle

2011-03-20 Thread Anton Blanchard
0.0%ni, 5.3%id, 0.0%wa, 13.3%hi, 81.3%si, 0.0%st Signed-off-by: Anton Blanchard Cc: sta...@kernel.org --- Index: linux-2.6/arch/powerpc/kernel/time.c === --- linux-2.6.orig/arch/powerpc/kernel/time.c 2011-03-21 12:05:12.056482258

[PATCH] powerpc: Add Initiate Coprocessor Store Word (icswx) support

2011-03-25 Thread Anton Blanchard
Signed-off-by: Anton Blanchard --- This is the v4 patch with a few changes: - Remove the lazy option. If we see overhead in the context switch path we can add it back in once we have the basic patch working and merged. - Remove comment and ifdef around spinlock forward declaration. We don't

[PATCH] powerpc: Add Initiate Coprocessor Store Word (icswx) support

2011-03-28 Thread Anton Blanchard
Signed-off-by: Anton Blanchard --- - Changed CONFIG_ICSWX to CONFIG_PPC_ICSWX Index: powerpc.git/arch/powerpc/include/asm/cputable.h === --- powerpc.git.orig/arch/powerpc/include/asm/cputable.h2011-03-29 06:02:13.659904041

powerpc: Move 64bit heap above 1TB on machines with 1TB segments

2009-09-21 Thread Anton Blanchard
ys/kernel/randomize_va_space # time ./test 1.70s Signed-off-by: Anton Blanchard --- I've cc-ed Mel on this one. As you can see it definitely helps the base page size performance, but I'm a bit worried of the impact of taking away another of our 1TB slices. Index: linux.trees.git/

[PATCH] powerpc/perf_counter: Log invalid data addresses as all 1s

2009-09-21 Thread Anton Blanchard
When we take an exception and the SDAR isn't synchronised we currently log 0 as the address. Unfortunately this is a pretty common value, so use ~OUL instead. Signed-off-by: Anton Blanchard --- Index: linux.trees.git/arch/powerpc/kernel/perf_ev

[PATCH] powerpc/perf_counter: Fix vdso detection

2009-09-21 Thread Anton Blanchard
perf_counter uses arch_vma_name() to detect a vdso region which in turn uses current->mm->context.vdso_base. We need to initialise this before doing the mmap or else we fail to detect the vdso. Signed-off-by: Anton Blanchard --- Index: linux.trees.git/arch/powerpc/kernel/

[PATCH] powerpc/perf_counter: Enable SDAR in continous sample mode

2009-09-21 Thread Anton Blanchard
In continuous sampling mode we want the SDAR to update. While we can select between dcache misses and erat misses, a decent default is to enable both. Signed-off-by: Anton Blanchard --- Index: linux.trees.git/arch/powerpc/kernel/power7-pmu.c

[PATCH} powerpc: Increase NODES_SHIFT on 64bit from 4 to 8

2009-09-21 Thread Anton Blanchard
with that fixed we have a few data structures that grow: < 896 bootmem_node_data > 14336 bootmem_node_data < 1280 node_devices > 20480 node_devices < 25088 kmalloc_caches > 59648 kmalloc_caches < 1632 hstates > 21792 hstates Signed-off-by: Anton Blanchard --- Index: lin

[PATCH] powerpc: Fix ibm,client-architecture-support printout

2009-09-21 Thread Anton Blanchard
will write out ibm,client-architecture-support 100 times. Before: Calling ibm,client-architecture...command line: root=/dev/sda6 console=hvc0 quiet After: Calling ibm,client-architecture-support... not implemented command line: root=/dev/sda6 console=hvc0 Signed-off-by: Anton Blanchard

64bit kernel is huge

2009-09-28 Thread Anton Blanchard
Hi, I've found at least one machine that wont boot 2.6.31-rc* with a pseries_defconfig. If I move real-base from 0xc0 to 0xd0 it boots fine. # size vmlinux textdata bss dec hex filename 9812942 1982496 1105228 12900666 c4d93a vmlinux Looks like we blow right

[PATCH] powerpc: tracing: Add powerpc tracepoints for interrupt entry and exit

2009-10-05 Thread Anton Blanchard
x27;d like to make sure we agree on naming. The tracepoints live in events/powerpc/*, but I'm wondering if the tracepoint name should also contain the arch name, eg powerpc_irq_entry/powerpc_irq_exit. Thoughts? Signed-off-by: Anton Blanchard -- Index: linux.trees.git/arch/powerpc/ke

Re: [PATCH] powerpc: tracing: Add powerpc tracepoints for interrupt entry and exit

2009-10-05 Thread Anton Blanchard
arch name, eg powerpc_irq_entry/powerpc_irq_exit. Thoughts? Signed-off-by: Anton Blanchard -- Index: linux.trees.git/arch/powerpc/include/asm/trace.h === --- /dev/null 1970-01-01 00:00:00.0 + +++ linux.trees.git/arch/po

[PATCH] powerpc: Fix hypervisor TLB batching

2009-10-12 Thread Anton Blanchard
and always do individual invalidates. The patch below removes the duplicate and shifts FW_FEATURE_CMO to close the gap. With the patch applied the single threaded page fault rate improves from 217169 to 238755 per second on a POWER5 test box, a 10% improvement. Signed-off-by: Anton Blanchard

Re: [PATCH] powerpc: tracing: Add powerpc tracepoints for interrupt entry and exit

2009-10-18 Thread Anton Blanchard
but I'm wondering if the tracepoint name should also contain the arch name, eg powerpc_irq_entry/powerpc_irq_exit. Thoughts? Signed-off-by: Anton Blanchard -- Index: linux.trees.git/arch/powerpc/include/asm/trace.h === --- /dev/n

[PATCH 3/3] powerpc perf_event: Add alignment-faults and emulation-faults software events

2009-10-18 Thread Anton Blanchard
Hook up the alignment-faults and emulation-faults events for powerpc. Signed-off-by: Anton Blanchard --- Index: linux.trees.git/arch/powerpc/include/asm/emulated_ops.h === --- linux.trees.git.orig/arch/powerpc/include/asm

[PATCH 2/3] powerpc: Create PPC_WARN_ALIGNMENT to match PPC_WARN_EMULATED

2009-10-18 Thread Anton Blanchard
perf_event wants a separate event for alignment and emulation faults, so create another PPC_WARN_* define. This will make it easy to hook in perf_event at one spot. We pass in regs which will be required for these events. Signed-off-by: Anton Blanchard --- Index: linux.trees.git/arch/powerpc

[PATCH 1/3] perf_event: Add alignment-faults and emulation-faults software events

2009-10-18 Thread Anton Blanchard
-off-by: Anton Blanchard --- Index: linux.trees.git/include/linux/perf_event.h === --- linux.trees.git.orig/include/linux/perf_event.h 2009-10-16 11:17:17.0 +1100 +++ linux.trees.git/include/linux/perf_event.h 2009-10-16

[PATCH 3/3] powerpc: perf_event: Hide iseries_check_pending_irqs

2009-10-18 Thread Anton Blanchard
If CONFIG_PPC_ISERIES isn't defined we end up with iseries_check_pending_irqs and do_work at the same address. perf ends up picking iseries_check_pending_irqs which creates confusing backtraces. Hide it. Signed-off-by: Anton Blanchard -- Index: linux.trees.git/arch/powerpc/kernel/entry

[PATCH 1/3] powerpc: perf_event: Cleanup copy_page output by hiding setup symbol

2009-10-18 Thread Anton Blanchard
A lot of hits in "setup" doesn't make much sense, so hide this symbol and allow all the hits to end up in copy_4k_page. Signed-off-by: Anton Blanchard --- Index: linux.trees.git/arch/powerpc/li

[PATCH 2/3] powerpc: perf_event: Cleanup output by adding symbols

2009-10-18 Thread Anton Blanchard
Add some dummy symbols for the branches at 0xf00, 0xf20 and 0xf40, otherwise hits end up in trap_0e which is confusing to the user. Signed-off-by: Anton Blanchard --- Index: linux.trees.git/arch/powerpc/kernel/exceptions-64s.S

Re: [PATCH 3/3] powerpc perf_event: Add alignment-faults and emulation-faults software events

2009-10-18 Thread Anton Blanchard
Hi, > > +#define PPC_WARN_ALIGNMENT(type, regs) \ > > + do {\ > > + perf_sw_event(PERF_COUNT_SW_ALIGNMENT_FAULTS, \ > > + 1, 0, regs, regs->dar);

Re: [PATCH 3/3] powerpc: perf_event: Hide iseries_check_pending_irqs

2009-10-19 Thread Anton Blanchard
Hi Ingo, > Just to confirm - these 3 symbol fixes are for the PowerPC tree, not for > the perf events tree, right? There's nothing perf specific about the > fixes - kgdb, systemtap and other debugging/instrumentation frameworks > will benefit from more precise symbol generation too. Yeah, wh

[PATCH] powerpc: Move ehea hcall definitions into hvcall.h

2009-10-20 Thread Anton Blanchard
Move ehea hcall definitions into hvcall.h. Signed-off-by: Anton Blanchard --- Index: linux.trees.git/arch/powerpc/include/asm/hvcall.h === --- linux.trees.git.orig/arch/powerpc/include/asm/hvcall.h 2009-10-19 17:59

[PATCH 6/6] powerpc: Export powerpc_debugfs_root

2009-10-26 Thread Anton Blanchard
Kernel modules should be able to place their debug output inside our powerpc debugfs directory. Signed-off-by: Anton Blanchard --- Index: linux.trees.git/arch/powerpc/kernel/setup-common.c === --- linux.trees.git.orig/arch/powerpc

[PATCH 3/6] powerpc: tracing: Add hypervisor call tracepoints

2009-10-26 Thread Anton Blanchard
a minimum. Time taken for a null hcall: No tracepoint code: 135.79 cycles Disabled tracepoints: 137.95 cycles For reference, before this patch enabling HCALL_STATS resulted in a null hcall of 201.44 cycles! Signed-off-by: Anton Blanchard --- Index: linux.trees.git/arch/powerpc/platforms

[PATCH 1/6] powerpc: tracing: Add powerpc tracepoints for interrupt entry and exit

2009-10-26 Thread Anton Blanchard
] 3244.021897408: irq_exit: pt_regs=c0a63aa0 Here we see two phantom interrupts (no handler was invoked), followed by a real interrupt for eth0. Without the tracepoints in this patch we would have missed the phantom interrupts. Signed-off-by: Anton Blanchard Acked-by: Steven Rostedt

[PATCH 5/6] powerpc: Disable HCALL_STATS by default

2009-10-26 Thread Anton Blanchard
The overhead of HCALL_STATS is quite high and the functionality is very rarely used. Key statistics are also missing (eg min/max). With the new hcall tracepoints much more powerful tracing can be done in a kernel module. Lets disable this by default. Signed-off-by: Anton Blanchard --- Index

[PATCH 2/6] powerpc: tracing: Add powerpc tracepoints for timer entry and exit

2009-10-26 Thread Anton Blanchard
: timer_interrupt_exit: pt_regs=c000ce1e7b10 Since we have a 207MHz decrementer it will go negative and fire every 10.37s even if Linux is completely idle. Signed-off-by: Anton Blanchard --- Index: linux.trees.git/arch/powerpc/kernel/time.c

[PATCH 4/6] powerpc: tracing: Give hypervisor call tracepoints access to arguments

2009-10-26 Thread Anton Blanchard
While most users of the hcall tracepoints will only want the opcode and return code, some will want all the arguments. To avoid the complexity of using varargs we pass a pointer to the register save area which contain all arguments. Signed-off-by: Anton Blanchard --- Index: linux.trees.git

hypervisor call trace module

2009-10-26 Thread Anton Blanchard
$(shell pwd) default: $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules clean: rm -rf *.mod.c *.ko *.o .*.cmd .tmp_versions Module.markers modules.order Module.symvers /* * Hypervisor hcall trace * * Look for output in /sys/kernel/debug/powerpc/hcall_trace/ * * Copyright (C) 2009 Anto

[PATCH] powerpc/perf_counter: Enable SDAR in continous sample mode

2009-10-27 Thread Anton Blanchard
In continuous sampling mode we want the SDAR to update. While we can select between dcache misses and erat misses, a decent default is to enable both. Signed-off-by: Anton Blanchard --- Moved MMCRA definitions into asm/reg.h. Index: linux.trees.git/arch/powerpc/kernel/power7-pmu.c

Re: [PATCH 2/3] powerpc: Create PPC_WARN_ALIGNMENT to match PPC_WARN_EMULATED

2009-10-27 Thread Anton Blanchard
ese events. Signed-off-by: Anton Blanchard --- Updated to remove unused define, as suggested by Stephen. Index: linux.trees.git/arch/powerpc/include/asm/emulated_ops.h === --- linux.trees.git.orig/arch/powerpc/include/asm/emulated_op

Re: hypervisor call tracepoints hcall_stats touchup.

2009-11-25 Thread Anton Blanchard
Hi Will, > The tb_total and purr_total values reported via the hcall_stats code > should be cumulative, rather than being replaced by the latest delta tb > or purr value. > > Tested-by: Will Schmidt > Signed-off-by: Will Schmidt Ouch! Nice catch. Acked-by: Anton Blanchard

Re: [PATCH v5 2/4] pSeries: Add hooks to put the CPU into an appropriate offline state

2009-11-25 Thread Anton Blanchard
Hi Gautham, > + call_status = rtas_call(rtas_token("ibm,get-system-parameter"), 3, 1, > + NULL, > + CEDE_LATENCY_TOKEN, > + __pa(cede_parameters), > + CEDE_LATENCY_PARAM_MAX_LENGTH)

[PATCH 1/4] powerpc: Reduce 64bit vmlinux by making acenic and cramfs modules

2009-12-06 Thread Anton Blanchard
vmlinux~ 8134997 1727588 1188836 11051421 a8a19d vmlinux Signed-off-by: Anton Blanchard --- Index: linux.trees.git/arch/powerpc/configs/g5_defconfig === --- linux.trees.git.orig/arch/powerpc/configs/g5_defconfig 2009-11-25

[PATCH 3/4] powerpc: Reduce differences between pseries and ppc64 defconfigs

2009-12-06 Thread Anton Blanchard
modules. Signed-off-by: Anton Blanchard --- Index: linux.trees.git/arch/powerpc/configs/ppc64_defconfig === --- linux.trees.git.orig/arch/powerpc/configs/ppc64_defconfig 2009-11-26 12:38:30.0 +1100 +++ linux.trees.git

[PATCH 2/4] powerpc: Disable token ring in powerpc defconfigs

2009-12-06 Thread Anton Blanchard
Token what? Lets save some space in our powerpc kernels and remove token ring support. Signed-off-by: Anton Blanchard --- Index: linux.trees.git/arch/powerpc/configs/g5_defconfig === --- linux.trees.git.orig/arch/powerpc/configs

[PATCH 4/4] powerpc: Set HZ=100 on pseries and ppc64 defconfigs

2009-12-06 Thread Anton Blanchard
reduce HZ then we reduce the amount of work the timer code has to do when coming out of idle. Signed-off-by: Anton Blanchard --- Index: linux.trees.git/arch/powerpc/configs/ppc64_defconfig === --- linux.trees.git.orig/arch/powerpc

Re: [PATCH 3/4] powerpc: Reduce differences between pseries and ppc64 defconfigs

2009-12-07 Thread Anton Blanchard
Hi, > Also no NUMA is going to hurt Cell too. I think we should leave that in. It was never enabled in the ppc64 defconfig :) I'm happy to turn it on though. Anton ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/li

[PATCH] shift 64bit unmapped_area to top of address space

2009-02-09 Thread Anton Blanchard
.9.so 7ffc000-7fff000 rw-p 00028000 08:06 130663 /lib64/ld-2.9.so 7fff000-800 rw-p 7fff000 00:00 0 fc59000-fc6e000 rw-p ffeb000 00:00 0 [stack] Signed-off-by: Anton Blanchard --- diff --git a/arch/powerpc/mm/mmap.c b/arch/powerpc/mm/mmap.c

<    3   4   5   6   7   8   9   10   11   12   >