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

2009-09-21 Thread Anton Blanchard
/randomize_va_space # time ./test 1.70s Signed-off-by: Anton Blanchard an...@samba.org --- 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/arch/powerpc

[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 an...@samba.org --- Index: linux.trees.git/arch/powerpc/kernel/perf_event.c

[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 an...@samba.org --- Index: linux.trees.git/arch/powerpc/kernel/vdso.c

[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 an...@samba.org --- Index: linux.trees.git/arch/powerpc/kernel/power7-pmu.c

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

2009-09-22 Thread Anton Blanchard
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 an...@samba.org --- Index: linux.trees.git/arch/powerpc

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

2009-09-22 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
arch specific tracepoints, I'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 an...@samba.org -- Index

[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
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 an...@samba.org -- Index: linux.trees.git/arch/powerpc/include/asm/trace.h

[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 an...@samba.org --- Index: linux.trees.git/arch/powerpc/include/asm/emulated_ops.h === --- linux.trees.git.orig/arch/powerpc

[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 an...@samba.org --- Index

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

2009-10-18 Thread Anton Blanchard
-off-by: Anton Blanchard an...@samba.org --- 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

[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 an...@samba.org -- Index: linux.trees.git/arch/powerpc

[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 an...@samba.org --- Index: linux.trees.git/arch/powerpc/lib/copypage_64.S

[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 an...@samba.org --- 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, while

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

2009-10-21 Thread Anton Blanchard
Move ehea hcall definitions into hvcall.h. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux.trees.git/arch/powerpc/include/asm/hvcall.h === --- linux.trees.git.orig/arch/powerpc/include/asm/hvcall.h 2009-10-19

[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 an...@samba.org --- Index: linux.trees.git/arch/powerpc/kernel/setup-common.c

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

2009-10-26 Thread Anton Blanchard
at 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 an...@samba.org --- Index: linux.trees.git/arch

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

2009-10-26 Thread Anton Blanchard
return=handled idle-0 [000] 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

[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

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

2009-10-26 Thread Anton Blanchard
-0 [010] 3921.414635: 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 an...@samba.org --- 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 an...@samba.org --- Index

hypervisor call trace module

2009-10-26 Thread Anton Blanchard
) 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 Anton Blanchard

[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 an...@samba.org --- Moved MMCRA definitions into asm/reg.h. Index: linux.trees.git/arch/powerpc/kernel/power7

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

2009-10-27 Thread Anton Blanchard
for these events. Signed-off-by: Anton Blanchard an...@samba.org --- 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

Re: hypervisor call tracepoints hcall_stats touchup.

2009-11-25 Thread Anton Blanchard
. Acked-by: Anton Blanchard an...@samba.org Anton [ This is a touch-up to the [3/6] powerpc: tracing: Add hypervisor call tracepoints patch submitted by Anton a few weeks back, so I've copied folks Anton had on CC for his original patch, this fix is rather ppc specific, so can probably go

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 an...@samba.org --- Index: linux.trees.git/arch/powerpc/configs/g5_defconfig === --- linux.trees.git.orig/arch/powerpc/configs/g5_defconfig

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

2009-12-06 Thread Anton Blanchard
as modules. Signed-off-by: Anton Blanchard an...@samba.org --- 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

[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 an...@samba.org --- Index: linux.trees.git/arch/powerpc/configs/g5_defconfig === --- linux.trees.git.orig/arch

[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 an...@samba.org --- Index: linux.trees.git/arch/powerpc/configs/ppc64_defconfig === --- linux.trees.git.orig

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

Re: [PATCH] bootgraph: fix for use with dot symbols

2009-01-28 Thread Anton Blanchard
Hi Arjan, question for the ppc folks why does the print symbol magic format string thing print a dot symbol and not the real function name? Should that be fixed instead? We have two symbols for each function, foo points to the function descriptor, and .foo points to the instruction text.

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

2009-02-09 Thread Anton Blanchard
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 an...@samba.org --- diff --git a/arch/powerpc/mm/mmap.c b/arch/powerpc/mm

[PATCH] Reduce hashtable size when using 64kB pages

2009-02-13 Thread Anton Blanchard
At the moment we size the hashtable based on 4kB pages / 2, even on a 64kB kernel. This results in a hashtable that is much larger than it needs to be. Grab the real page size and size the hashtable based on that. Note: this only works on non hypervisor machines. Signed-off-by: Anton Blanchard

[PATCH] Enable hashdist by default on PowerPC

2009-02-17 Thread Anton Blanchard
balanced: Free memory: Node 0: 97.53% Node 1: 98.35% Node 2: 98.33% Node 3: 98.33% For many HPC applications we are limited by the free available memory on the smallest node, so even though the same amount of memory is used the better balancing helps. Signed-off-by: Anton Blanchard an...@samba.org

Re: [PATCH] Enable hashdist by default on PowerPC

2009-02-17 Thread Anton Blanchard
Hi Ben, You have numbers ? :-) I'm asking mostly because I've been wondering whether it offsets the 16M pages vs. 4K or 64K pages in term of TLB/ERAT impact. The speedup is application dependent. Things like linpack usually improve when you throw more memmory at them. The potential slowdown

Re: [PATCH] Enable hashdist by default on PowerPC

2009-02-19 Thread Anton Blanchard
on the smallest node, so even though the same amount of memory is used the better balancing helps. Since all 64bit NUMA capable architectures should have sufficient vmalloc space, it makes sense to enable it via CONFIG_64BIT. Signed-off-by: Anton Blanchard an...@samba.org --- diff --git

[patch 07/10] powerpc: Randomise the brk region

2009-02-22 Thread Anton Blanchard
:00 0 [heap] Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-2.6/arch/powerpc/include/asm/elf.h === --- linux-2.6.orig/arch/powerpc/include/asm/elf.h 2009-02-20 16:06:32.0

[patch 01/10] powerpc: Move is_32bit_task

2009-02-22 Thread Anton Blanchard
Move is_32bit_task into asm/thread_info.h, that allows us to test for 32/64bit tasks without an ugly CONFIG_PPC64 ifdef. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-2.6/arch/powerpc/include/asm/thread_info.h

[patch 09/10] powerpc: Increase stack gap on 64bit binaries

2009-02-22 Thread Anton Blanchard
with the same ~128MB hole as in 32bit. This works because we randomise the stack over a 1GB range. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-2.6/arch/powerpc/mm/mmap.c === --- linux-2.6.orig/arch/powerpc/mm/mmap.c

[patch 10/10] powerpc: Randomise PIEs

2009-02-22 Thread Anton Blanchard
Randomise ELF_ET_DYN_BASE, which is used when loading position independent executables. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-2.6/arch/powerpc/include/asm/elf.h === --- linux-2.6.orig/arch/powerpc/include

[patch 04/10] powerpc: Randomise mmap start address

2009-02-22 Thread Anton Blanchard
-fffd88ad000 rw-p fffd88ac000 00:00 0 fffbc62e000-fffbc62f000 rw-p fffbc62e000 00:00 0 Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-2.6/arch/powerpc/mm/mmap.c === --- linux-2.6.orig/arch/powerpc/mm/mmap.c 2009-02

[patch 03/10] powerpc: Rearrange mmap.c

2009-02-22 Thread Anton Blanchard
Rearrange mmap.c to better match the x86 version. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-2.6/arch/powerpc/mm/mmap.c === --- linux-2.6.orig/arch/powerpc/mm/mmap.c 2009-02-20 13:40:26.0 +1100

[patch 06/10] powerpc: Randomise lower bits of stack address

2009-02-22 Thread Anton Blanchard
after: 610 490 300 6b0 d80 Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-2.6/arch/powerpc/include/asm/system.h === --- linux-2.6.orig/arch/powerpc/include/asm/system.h2009-02-20 13:39:05.0 +1100 +++ linux

[patch 00/10] PowerPC address space randomisation

2009-02-22 Thread Anton Blanchard
The following set of patches adds randomisation of mmaps, heap and position independent executables, and increases the randomisation applied to the stack on 64bit binaries. -- ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org

[patch 08/10] powerpc: Ensure random space between stack and mmaps

2009-02-22 Thread Anton Blanchard
-by: Anton Blanchard an...@samba.org --- Index: linux-2.6/arch/powerpc/mm/mmap.c === --- linux-2.6.orig/arch/powerpc/mm/mmap.c 2009-02-22 11:58:54.0 +1100 +++ linux-2.6/arch/powerpc/mm/mmap.c2009-02-22 12:05:01.0

[patch 02/10] powerpc: Use new layout for 64bit binaries

2009-02-22 Thread Anton Blanchard
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 an...@samba.org --- Index: linux-2.6/arch/powerpc/mm/mmap.c

[patch 05/10] powerpc: More stack randomisation for 64bit binaries

2009-02-22 Thread Anton Blanchard
00:00 0 [stack] fffc719d000-fffc71b2000 rw-p ffeb000 00:00 0 [stack] fffe01af000-fffe01c4000 rw-p ffeb000 00:00 0 [stack] Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-2.6/arch/powerpc/include/asm/elf.h

[PATCH] Enable hashdist by default on 64bit NUMA

2009-02-26 Thread Anton Blanchard
CONFIG_64BIT. Signed-off-by: Anton Blanchard an...@samba.org --- diff --git a/include/linux/bootmem.h b/include/linux/bootmem.h index 95837bf..0c4d4b7 100644 --- a/include/linux/bootmem.h +++ b/include/linux/bootmem.h @@ -144,10 +144,10 @@ extern void *alloc_large_system_hash(const char *tablename

powerpc: Enable relay in pseries_defconfig

2009-04-01 Thread Anton Blanchard
Enable relay in pseries config, ppc64_defconfig had it enabled but pseries did not. Signed-off-by: Anton Blanchard an...@samba.org --- diff --git a/arch/powerpc/configs/pseries_defconfig b/arch/powerpc/configs/pseries_defconfig index 61b1008..f1889ab 100644 --- a/arch/powerpc/configs

powerpc: Fix ibm,client-architecture comment

2009-04-01 Thread Anton Blanchard
We specify a 64MB RMO, but the comment says 128MB. Signed-off-by: Anton Blanchard an...@samba.org --- diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c index 7f1b33d..ddd9561 100644 --- a/arch/powerpc/kernel/prom_init.c +++ b/arch/powerpc/kernel/prom_init.c

powerpc: Scan for all events in rtasd

2009-04-01 Thread Anton Blanchard
Instead of checking for known events, pass in all 1s so we handle future event types. We were currently missing the IO event type. Signed-off-by: Anton Blanchard an...@samba.org --- diff --git a/arch/powerpc/include/asm/rtas.h b/arch/powerpc/include/asm/rtas.h index 0aa0315..01c1233 100644

powerpc: Add dispatch diversion statistics

2009-04-01 Thread Anton Blanchard
PHYP tells us how often a shared processor dispatch changed physical cpus. This can highlight performance problems caused by the hypervisor. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-2.6/arch/powerpc/include/asm/lppaca.h

[PATCH] Fix PMU + soft interrupt disable bug

2008-03-16 Thread Anton Blanchard
Since the PMU is an NMI now, it can come at any time we are only soft disabled. We must hard disable around the two places we allow the kernel stack SLB and r1 to go out of sync. Otherwise the PMU exception can force a kernel stack SLB into another slot. Signed-off-by: Anton Blanchard [EMAIL

Re: what is ~1MB of memory allocated at fffea000-fffff000 on ppc64?

2007-08-27 Thread Anton Blanchard
Hi, I've got a ppc64 box running 2.6.14. 64-bit kernel, 32-bit userspace. It has a ~86KB chunk of memory near the top of the process address space, and I'm not sure who's setting it up and what the purpose is. In /proc/pid/maps it looks like this: fffea000-f000 rw-p fffea000

Re: what is ~1MB of memory allocated at fffea000-fffff000 on ppc64?

2007-08-27 Thread Anton Blanchard
Hi, For some background, we're running an emulator that uses a null pointer value of 0x and we want any accesses to that address to trap. Weird :) Do you anticipate any issues with the following change? -#define TASK_SIZE_USER32 (0x0001UL - (1*PAGE_SIZE)) +#define

[PATCH] Quieten clockevent printk

2007-10-14 Thread Anton Blanchard
The clockevent bootup message only needs to be KERN_INFO. Signed-off-by: Anton Blanchard [EMAIL PROTECTED] --- diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c index 9368da3..863a5d6 100644 --- a/arch/powerpc/kernel/time.c +++ b/arch/powerpc/kernel/time.c @@ -829,7 +829,7

[PATCH] enable SLUB

2007-10-14 Thread Anton Blanchard
SLAB debugging enabled which is sure to make your box nice and slow. Fix that too. Signed-off-by: Anton Blanchard [EMAIL PROTECTED] --- diff --git a/arch/powerpc/configs/bamboo_defconfig b/arch/powerpc/configs/bamboo_defconfig index b592dec..d22fed6 100644 --- a/arch/powerpc/configs

[PATCH] Quieten cache information at boot

2007-10-14 Thread Anton Blanchard
, I still print it out for those cases. If people would prefer to remove it completely, lets do it. Also for lpar remove the htab_address printout since its not used. Anton ppc64 boot log usability expert Signed-off-by: Anton Blanchard [EMAIL PROTECTED] --- diff --git a/arch/powerpc/kernel

[PATCH] Enable NO_HZ and high res timers for pseries and ppc64 configs

2007-10-14 Thread Anton Blanchard
Enable NO_HZ and high res timers for the ppc64 and pseries defconfigs. Thoughts? Signed-off-by: Anton Blanchard [EMAIL PROTECTED] --- diff --git a/arch/powerpc/configs/ppc64_defconfig b/arch/powerpc/configs/ppc64_defconfig index 5f6224a..bb8d4e4 100644 --- a/arch/powerpc/configs

Re: [PATCH] Quieten cache information at boot

2007-10-14 Thread Anton Blanchard
Hi, Let's just remove it completely. I have yet to see a bug because of it, and we have 0x40 byte cache lines. Yeah I completely support killing it too :) If anything, compare firmware setting to cputable one and print a warning. Should maybe give them loglevels too, since you're

[PATCH] Hook compat_sys_nanosleep up to high res timer code

2007-10-14 Thread Anton Blanchard
KERNEL_DS. Signed-off-by: Anton Blanchard [EMAIL PROTECTED] --- diff --git a/kernel/compat.c b/kernel/compat.c index 3bae374..46795ac 100644 --- a/kernel/compat.c +++ b/kernel/compat.c @@ -40,62 +40,29 @@ int put_compat_timespec(const struct timespec *ts, struct compat_timespec __user

Re: [PATCH] Hook compat_sys_nanosleep up to high res timer code

2007-10-14 Thread Anton Blanchard
converted to the hrtimer code and so is limited to HZ resolution. The following patch pulls the copy_to_user out of hrtimer_nanosleep and into the callers (common_nsleep, sys_nanosleep and compat_sys_nanosleep) thus avoiding any set_fs(KERNEL_DS) or compat_alloc_userspace tricks. Signed-off-by: Anton

[PATCH] Rework hrtimer_nanosleep to make sys_compat_nanosleep easier

2007-10-15 Thread Anton Blanchard
Hi Thomas, Thanks for the review, updates to follow. Anton -- Pull the copy_to_user out of hrtimer_nanosleep and into the callers (common_nsleep, sys_nanosleep) in preparation for converting compat_sys_nanosleep to use hrtimers. Signed-off-by: Anton Blanchard [EMAIL PROTECTED] --- diff

[PATCH] Hook compat_sys_nanosleep up to high res timer code

2007-10-15 Thread Anton Blanchard
Now we have high res timers on ppc64 I thought Id test them. It turns out compat_sys_nanosleep hasnt been converted to the hrtimer code and so is limited to HZ resolution. The follow patch converts compat_sys_nanosleep to use high res timers. Signed-off-by: Anton Blanchard [EMAIL PROTECTED

[PATCH] Rework hrtimer_nanosleep to make sys_compat_nanosleep easier

2007-10-15 Thread Anton Blanchard
for it :) Anton -- Pull the copy_to_user out of hrtimer_nanosleep and into the callers (common_nsleep, sys_nanosleep) in preparation for converting compat_sys_nanosleep to use hrtimers. Signed-off-by: Anton Blanchard [EMAIL PROTECTED] Acked-by: Arnd Bergmann [EMAIL PROTECTED] --- diff --git a/include

[PATCH] Hook compat_sys_nanosleep up to high res timer code

2007-10-15 Thread Anton Blanchard
Now we have high res timers on ppc64 I thought Id test them. It turns out compat_sys_nanosleep hasnt been converted to the hrtimer code and so is limited to HZ resolution. The follow patch converts compat_sys_nanosleep to use high res timers. Signed-off-by: Anton Blanchard [EMAIL PROTECTED

boot/wrap assumes a biarch toolchain?

2007-10-29 Thread Anton Blanchard
Hi, Jan is seeing the following fail: WRAParch/powerpc/boot/zImage.pmac powerpc-linux-objcopy: vmlinux: File format not recognized He is using a cross compile toolchain invoked with the following command line: # make HOSTCC=gcc-4.0 ARCH=powerpc CROSS_COMPILE=powerpc64-linux-

Re: boot/wrap assumes a biarch toolchain?

2007-10-29 Thread Anton Blanchard
Hi, If you configure your toolchain for powerpc64-linux you get a biarch toolchain by default. I was wondering about people using pre biarch gcc toolchains. But I take your point - I'm guessing binutils has been biarch for a long time. Since we are only calling binutils functions in

[PATCH] powerpc/pseries: Fix xics interrupt affinity

2010-01-04 Thread Anton Blanchard
Commit 57b150cce8e004ddd36330490a68bfb59b7271e9 (irq: only update affinity if -set_affinity() is sucessfull) broke xics irq affinity. We need to use the cpumask passed in, instead of accessing -affinity directly. Signed-off-by: Anton Blanchard an...@samba.org --- This code needs a rework

[patch 1/6] powerpc: cpumask_of_node() should handle -1 as a node

2010-01-05 Thread Anton Blanchard
/:00:01.0/local_cpulist 64-65 Change cpumask_of_node to check for -1 and return cpu_all_mask in this case: # cat /sys/devices/pci:00/:00:01.0/local_cpus ,,, # cat /sys/devices/pci:00/:00:01.0/local_cpulist 0-127 Signed-off-by: Anton Blanchard

[PATCH]: powerpc: Fix build breakage due to incorrect location of autoconf.h

2010-01-11 Thread Anton Blanchard
commit ac4c2a3bbe5db5fc570b1d0ee1e474db7cb22585 (zlib: optimize inffast when copying direct from output) referenced include/linux/autoconf.h which is now called include/generated/autoconf.h. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-cpumask/arch/powerpc/boot/Makefile

[PATCH] powerpc: Mark some variables in the page fault path __read_mostly

2010-01-12 Thread Anton Blanchard
Using perf to trace L1 dcache misses and dumping data addresses I found a few variables taking a lot of misses. Since they are almost never written, they should go into the __read_mostly section. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-cpumask/arch/powerpc/xmon/xmon.c

[PATCH] powerpc: Reduce footprint of irq_stat

2010-01-12 Thread Anton Blanchard
8767938 2944132 1636796 13348866 cbb002 vmlinux.baseline 8767779 2944260 1505724 13217763 c9afe3 vmlinux.irq_cpustat A saving of around 128kB. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-cpumask/arch/powerpc/include/asm/hardirq.h

[PATCH] powerpc: Reduce footprint of xics_ipi_struct

2010-01-12 Thread Anton Blanchard
with NR_CPUS=1024, this saves quite a lot of memory: textdata bss dec hexfilename 8767779 2944260 1505724 13217763 c9afe3 vmlinux.irq_cpustat 8767555 2813444 1505724 13086723 c7b003 vmlinux.xics A saving of around 128kB. Signed-off-by: Anton Blanchard

[PATCH] powerpc: Replace per_cpu(, smp_processor_id()) with __get_cpu_var()

2010-01-13 Thread Anton Blanchard
The cputime code has a few places that do per_cpu(, smp_processor_id()). Replace them with __get_cpu_var(). Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-cpumask/arch/powerpc/include/asm/cputime.h === --- linux

[PATCH 2/5] powerpc: Remove whitespace in irq chip name fields

2010-01-31 Thread Anton Blanchard
Now we use printf style alignment there is no need to manually space these fields. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-cpumask/arch/powerpc/platforms/512x/mpc5121_ads_cpld.c === --- linux-cpumask.orig

[PATCH 1/5] powerpc: Rework /proc/interrupts

2010-01-31 Thread Anton Blanchard
in. On PowerPC we currently omit an interrupt completely if there is no active handler, whereas on x86 it is printed if there is a non zero count. The x86 code also spaces the first column correctly based on nr_irqs. Signed-off-by: Anton Blanchard an...@samba.org --- This patch follows on from powerpc

[PATCH 4/5] powerpc: Convert global BAD interrupt to per cpu spurious

2010-01-31 Thread Anton Blanchard
spurious. Since they can be a significant cause of OS jitter, we may as well log them per cpu so we know where they are occurring. Signed-off-by: Anton Blanchard an...@samba.org --- Again, the short name matches x86 but if people are sufficiently confused by it (SPU), then we can think up something

[PATCH 3/5] powerpc: Add timer, performance monitor and machine check counts to /proc/interrupts

2010-01-31 Thread Anton Blanchard
using the perf tool. Since it's possible to take a completely handled machine check on a System p box it also sounds like a good idea to keep a machine check summary. The event naming matches x86 to keep gratuitous differences to a minimum. Signed-off-by: Anton Blanchard an...@samba.org

[PATCH 5/5] powerpc: Increase NR_IRQS Kconfig maximum to 32768

2010-01-31 Thread Anton Blanchard
0 0 0 17158:319 0 0 0 0 0 25092: 0 0 0 0 0 0 Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-cpumask/arch/powerpc/Kconfig

[PATCH 1/7] powerpc: Reduce footprint of irq_stat

2010-01-31 Thread Anton Blanchard
8767938 2944132 1636796 13348866 cbb002 vmlinux.baseline 8767779 2944260 1505724 13217763 c9afe3 vmlinux.irq_cpustat A saving of around 128kB. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-cpumask/arch/powerpc/include/asm/hardirq.h

[PATCH 5/7] powerpc: Add timer, performance monitor and machine check counts to /proc/interrupts

2010-01-31 Thread Anton Blanchard
using the perf tool. Since it's possible to take a completely handled machine check on a System p box it also sounds like a good idea to keep a machine check summary. The event naming matches x86 to keep gratuitous differences to a minimum. Signed-off-by: Anton Blanchard an...@samba.org

[PATCH 2/7] powerpc: Reduce footprint of xics_ipi_struct

2010-01-31 Thread Anton Blanchard
dec hexfilename 8767779 2944260 1505724 13217763 c9afe3 vmlinux.irq_cpustat 8767555 2813444 1505724 13086723 c7b003 vmlinux.xics A saving of around 128kB. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-cpumask/arch/powerpc/platforms/pseries/xics.c

[PATCH 6/7] powerpc: Convert global BAD interrupt to per cpu spurious

2010-01-31 Thread Anton Blanchard
spurious. Since they can be a significant cause of OS jitter, we may as well log them per cpu so we know where they are occurring. Signed-off-by: Anton Blanchard an...@samba.org --- Again, the short name matches x86 but if people are sufficiently confused by it (SPU), then we can think up something

[PATCH 3/7] powerpc: Rework /proc/interrupts

2010-01-31 Thread Anton Blanchard
in. On PowerPC we currently omit an interrupt completely if there is no active handler, whereas on x86 it is printed if there is a non zero count. The x86 code also spaces the first column correctly based on nr_irqs. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-cpumask/arch/powerpc

[PATCH 7/7] powerpc: Increase NR_IRQS Kconfig maximum to 32768

2010-01-31 Thread Anton Blanchard
0 0 0 17158:319 0 0 0 0 0 25092: 0 0 0 0 0 0 Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-cpumask/arch/powerpc/Kconfig

[PATCH 4/7] powerpc: Remove whitespace in irq chip name fields

2010-01-31 Thread Anton Blanchard
Now we use printf style alignment there is no need to manually space these fields. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-cpumask/arch/powerpc/platforms/512x/mpc5121_ads_cpld.c === --- linux-cpumask.orig

Re: Stack size protection broken on ppc64

2010-02-05 Thread Anton Blanchard
Hi, On recent ppc64 kernels, limiting the stack (using 'ulimit -s blah') is now more restrictive than it was before. On 2.6.31 with 4k pages I could run 'ulimit -s 16; /usr/bin/test' without a problem. Now with mainline, even 'ulimit -s 64; /usr/bin/test' gets killed. Using 64k pages is

powerpc: Reduce differences between pseries and ppc64 defconfigs

2010-02-07 Thread Anton Blanchard
-by: Anton Blanchard an...@samba.org --- v2: Enable NUMA on ppc64_defconfig Index: powerpc.git/arch/powerpc/configs/ppc64_defconfig === --- powerpc.git.orig/arch/powerpc/configs/ppc64_defconfig 2010-02-05 14:57:48.889717208

[PATCH] powerpc: Convert mmu context allocator from idr to ida

2010-02-07 Thread Anton Blanchard
We can use the much more lightweight ida allocator since we don't need the pointer storage idr provides. Signed-off-by: Anton Blanchard an...@samba.org --- Index: powerpc.git/arch/powerpc/mm/mmu_context_hash64.c

[PATCH] powerpc: Only print clockevent settings once

2010-02-07 Thread Anton Blanchard
The clockevent multiplier and shift is useful information, but we only need to print it once. Signed-off-by: Anton Blanchard an...@samba.org --- Index: powerpc.git/arch/powerpc/kernel/time.c === --- powerpc.git.orig/arch/powerpc

powerpc: Make powerpc_firmware_features __read_mostly

2010-02-07 Thread Anton Blanchard
We use firmware_has_feature quite a lot these days, so it's worth putting powerpc_firmware_features into __read_mostly. Signed-off-by: Anton Blanchard an...@samba.org --- Index: powerpc.git/arch/powerpc/kernel/firmware.c

[PATCH] powerpc: reformat SD_NODE_INIT to match x86

2010-02-07 Thread Anton Blanchard
Clean up SD_NODE_INITS so we can easily compare it to x86. Similar to the work in 47734f89be0614b5acbd6a532390f9c72f019648 (sched: Clean up topology.h) Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux.trees.git/arch/powerpc/include/asm/topology.h

[PATCH] powerpc: Quieten cede latency printk

2010-02-07 Thread Anton Blanchard
The cede latency stuff is relatively new and we don't need to complain about it not working on older firmware. Signed-off-by: Anton Blanchard an...@samba.org --- Index: powerpc.git/arch/powerpc/platforms/pseries/hotplug-cpu.c

Re: Stack size protection broken on ppc64

2010-02-07 Thread Anton Blanchard
) so it operates better with 4kB pages. But in the end its probably of little use for the default OVERCOMMIT_GUESS setting, so the main thing is we dont terminate processes incorrectly. Acked-by: Anton Blanchard an...@samba.org Anton ___ Linuxppc-dev

  1   2   3   4   5   6   7   8   9   10   >