[PATCH] powerpc: eeh: Fix oops when probing in early boot

2010-05-10 Thread Anton Blanchard
scanning the bus and before the pci_dn to pcidev mapping has been created. Since we only need the pcidev to work out the type of reset and that only gets set after the module for the device loads, lets just do a hot reset if the pcidev is NULL. Signed-off-by: Anton Blanchard an...@samba.org

[PATCH 1/3] powerpc: kdump: Fix NULL pointer dereference in irq disable code

2010-05-10 Thread Anton Blanchard
With sparse irqs we have to check if we have a descriptor before dereferencing it. Signed-off-by: Anton Blanchard an...@samba.org --- diff --git a/arch/powerpc/kernel/crash.c b/arch/powerpc/kernel/crash.c index 6f4613d..5182439 100644 --- a/arch/powerpc/kernel/crash.c +++ b/arch/powerpc/kernel

[PATCH 2/3] powerpc: kdump: CPUs assume the context of the oopsing CPU

2010-05-10 Thread Anton Blanchard
. Eventually we should switch the order and marshall all CPUs before doing the crash_shutdown_handles[] calls, but that is a bigger fix. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-2.6/arch/powerpc/kernel/crash.c

[PATCH 3/3] powerpc: kdump: Use chip-shutdown to disable IRQs

2010-05-10 Thread Anton Blanchard
-status |= IRQ_MASKED; } Not sure why we don't implement a -disable action for xics.c, or why default_disable doesn't mask the interrupt. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-2.6/arch/powerpc/kernel/crash.c

[PATCH] powerpc: Use more accurate limit for first segment memory allocations

2010-05-10 Thread Anton Blanchard
. On a large ppc64 box, this fixes a panic at boot when the crashkernel= option is specified (previously we would run out of memory below 256MB). Signed-off-by: Milton Miller milt...@bga.com Signed-off-by: Anton Blanchard an...@samba.org --- Some things we should add: - Specify a more intelligent

Re: [PATCH] powerpc: Disable CONFIG_SYSFS_DEPRECATED

2010-05-06 Thread Anton Blanchard
Hi Josh, I'd like to run a few tests with this disabled on the 4xx boards first please. I can't say that all the boards I have will have any sort of distro to begin with, and if they did they might not be running something from the last 3 or 4 years. I do run -git kernels on them

[PATCH] powerpc: Disable CONFIG_SYSFS_DEPRECATED

2010-05-05 Thread Anton Blanchard
CONFIG_SYSFS_DEPRECATED can cause issues with newer distros and should not be required for any distro in the last 3 or 4 years, so disable it. Signed-off-by: Anton Blanchard an...@samba.org --- diff --git a/arch/powerpc/configs/40x/acadia_defconfig b/arch/powerpc/configs/40x/acadia_defconfig

Re: [PATCH 2/3] powerpc: Add form 1 NUMA affinity

2010-04-30 Thread Anton Blanchard
Hi Ben, I sent your previous version of that one to Linus, it's already up. Can you check it's allright ? No change to this patch, but I thought I would send them as a series since they build on each other. I'll double check mainline looks good. Anton

[PATCH 1/3] powerpc: Set a smaller value for RECLAIM_DISTANCE to enable zone reclaim

2010-04-29 Thread Anton Blanchard
. The patch below sets a smaller value for RECLAIM_DISTANCE and thus enables zone reclaim. Signed-off-by: Anton Blanchard an...@samba.org --- Index: powerpc.git/arch/powerpc/include/asm/topology.h === --- powerpc.git.orig/arch/powerpc

[PATCH 2/3] powerpc: Add form 1 NUMA affinity

2010-04-29 Thread Anton Blanchard
in the client architecture, and if we see 1 in the ibm,associativity-form property firmware supports form 1 affinity and we should look at the first field in the ibm,associativity-reference-points array. If not we use the second field as we always have. Signed-off-by: Anton Blanchard an...@samba.org

[PATCH 3/3] powerpc: Use form 1 affinity to setup node distance

2010-04-29 Thread Anton Blanchard
boot it didn't seem worth adding a per node valid bit. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-2.6/arch/powerpc/include/asm/topology.h === --- linux-2.6.orig/arch/powerpc/include/asm/topology.h 2010-04-29 15

PowerPC ftrace function trace optimisation

2010-04-28 Thread Anton Blanchard
Hi, Alan Modra pointed out that he added an option to PowerPC gcc years ago specifically for us to do lightweight mcount profiling. The normal PowerPC gcc mcount stuff forces a stack spill and gets itself tangled up in the function prolog, making it impossible to nop out easily: # gcc -pg:

[patch 00/15] PowerPC cpumask patches

2010-04-26 Thread Anton Blanchard
This is a first attempt at converting PowerPC across to the new cpumask API. I need to audit the GFP_ flags of alloc_cpumask_var. There are also a few areas still to be done: cell, xmon, kexec, crashdump and the cputhreads code Anton ___

[patch 01/15] powerpc: cpumask: Use cpu_online_mask

2010-04-26 Thread Anton Blanchard
Change cpu_online_map to cpu_online_mask. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-cpumask/arch/powerpc/platforms/pasemi/cpufreq.c === --- linux-cpumask.orig/arch/powerpc/platforms/pasemi/cpufreq.c 2010-04-08

[patch 02/15] powerpc: cpumask: Convert rtasd to new cpumask API

2010-04-26 Thread Anton Blanchard
Use cpumask_first, cpumask_next in rtasd code. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-cpumask/arch/powerpc/kernel/rtasd.c === --- linux-cpumask.orig/arch/powerpc/kernel/rtasd.c 2010-04-08 19:46

[patch 03/15] powerpc: cpumask: Convert smp_cpus_done to new cpumask API

2010-04-26 Thread Anton Blanchard
Use the new cpumask_* functions and dynamically allocate the cpumask in smp_cpus_done. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-cpumask/arch/powerpc/kernel/smp.c === --- linux-cpumask.orig/arch/powerpc/kernel

[patch 04/15] powerpc: cpumask: Convert fixup_irqs to new cpumask API

2010-04-26 Thread Anton Blanchard
Use new cpumask_* functions, and dynamically allocate cpumask in fixup_irqs. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-cpumask/arch/powerpc/kernel/irq.c === --- linux-cpumask.orig/arch/powerpc/kernel/irq.c

[patch 05/15] powerpc: cpumask: Convert iseries SMP code to new cpumask API

2010-04-26 Thread Anton Blanchard
Use new cpumask functions in iseries SMP startup code. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-cpumask/arch/powerpc/platforms/iseries/smp.c === --- linux-cpumask.orig/arch/powerpc/platforms/iseries/smp.c

[patch 06/15] powerpc: cpumask: Convert pseries SMP code to new cpumask API

2010-04-26 Thread Anton Blanchard
Use new cpumask functions in pseries SMP startup code. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-cpumask/arch/powerpc/platforms/pseries/smp.c === --- linux-cpumask.orig/arch/powerpc/platforms/pseries/smp.c

[patch 07/15] powerpc: cpumask: Convert xics driver to new cpumask API

2010-04-26 Thread Anton Blanchard
Use the new cpumask API and add some comments to clarify how get_irq_server works. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-cpumask/arch/powerpc/platforms/pseries/xics.c === --- linux-cpumask.orig/arch/powerpc

[patch 08/15] powerpc: cpumask: Refactor /proc/cpuinfo code

2010-04-26 Thread Anton Blanchard
This separates the per cpu output from the summary output at the end of the file, making it easier to convert to the new cpumask API in a subsequent patch. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-cpumask/arch/powerpc/kernel/setup-common.c

[patch 09/15] powerpc: cpumask: Convert /proc/cpuinfo to new cpumask API

2010-04-26 Thread Anton Blanchard
Use new cpumask API in /proc/cpuinfo code. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-cpumask/arch/powerpc/kernel/setup-common.c === --- linux-cpumask.orig/arch/powerpc/kernel/setup-common.c 2010-04-22 13

[patch 10/15] powerpc: cpumask: Dynamically allocate cpu_sibling_map and cpu_core_map cpumasks

2010-04-26 Thread Anton Blanchard
(smp_prepare_cpus), similar to x86. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-cpumask/arch/powerpc/include/asm/smp.h === --- linux-cpumask.orig/arch/powerpc/include/asm/smp.h 2010-04-22 13:03:14.635445670 +1000

[patch 11/15] powerpc: cpumask: Convert hotplug-cpu code to new cpumask API

2010-04-26 Thread Anton Blanchard
Convert hotplug-cpu code to new cpumask API. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-cpumask/arch/powerpc/platforms/pseries/hotplug-cpu.c === --- linux-cpumask.orig/arch/powerpc/platforms/pseries/hotplug

[patch 12/15] powerpc: cpumask: Convert NUMA code to new cpumask API

2010-04-26 Thread Anton Blanchard
Convert NUMA code to new cpumask API. We shift the node to cpumask setup code until after we complete bootmem allocation so we can dynamically allocate the cpumasks. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-cpumask/arch/powerpc/include/asm/mmzone.h

[patch 13/15] powerpc: cpumask: Update some comments

2010-04-26 Thread Anton Blanchard
Since the *_map cpumask variants are deprecated, change the comments to instead refer to *_mask. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-cpumask/arch/powerpc/kernel/setup-common.c === --- linux-cpumask.orig

[patch 14/15] powerpc: cpumask: Convert mpic driver to new cpumask API

2010-04-26 Thread Anton Blanchard
it to take a cpumask. This allows us to clean up the mess in smp_mpic_message_pass. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-cpumask/arch/powerpc/sysdev/mpic.c === --- linux-cpumask.orig/arch/powerpc/sysdev/mpic.c

[patch 15/15] powerpc: cpumask: Add DEBUG_PER_CPU_MAPS option

2010-04-26 Thread Anton Blanchard
Enable the DEBUG_PER_CPU_MAPS option so we can look for problems with cpumasks . Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-cpumask/arch/powerpc/Kconfig.debug === --- linux-cpumask.orig/arch/powerpc

[PATCH] powerpc: Add form 1 NUMA affinity

2010-04-07 Thread Anton Blanchard
in the client architecture, and if we see 1 in the ibm,associativity-form property firmware supports form 1 affinity and we should look at the first field in the ibm,associativity-reference-points array. If not we use the second field as we always have. Signed-off-by: Anton Blanchard an...@samba.org

Re: [PATCH 4/7] hvc_console: Fix race between hvc_close and hvc_remove

2010-04-06 Thread Anton Blanchard
() */ tty_kref_put(tty); ... } tty_kref_put(tty); Since the outside kref get/put balance we only do a single kref_put when count reaches 0. The patch below changes things to call tty_kref_put once for every hvc_close call, and with that my machine boots fine. Signed-off-by: Anton Blanchard

Re: [PATCH 4/7] hvc_console: Fix race between hvc_close and hvc_remove

2010-03-25 Thread Anton Blanchard
Hi, And this suggests that hvc_kick() is called before hvc_task is initialised, ie, before hvc_init() is called. Does this help? Looks good, tests OK on my POWER5 box. Thanks! Tested-by: Anton Blanchard an...@samba.org diff --git a/drivers/char/hvc_console.c b/drivers/char/hvc_console.c

ppc64 sys_ipc breakage in 2.6.34-rc2

2010-03-22 Thread Anton Blanchard
). Signed-off-by: Anton Blanchard an...@samba.org -- I assume the function prototypes for the other IPC methods would cause us to sign or zero extend second where appropriate (avoiding any security issues). Come to think of it, the syscall wrappers for each method should do that for us as well. diff

Re: ppc64 sys_ipc breakage in 2.6.34-rc2

2010-03-22 Thread Anton Blanchard
Hi, ipc/syscall.c:17: error: conflicting types for ‘sys_ipc’ include/linux/syscalls.h:691: note: previous declaration of ‘sys_ipc’ was here Hmm. Right you are. Why don't I see this? (I already applied the patch) Ahh. Because this only triggers with __ARCH_WANT_SYS_IPC. But why

Re: [PATCH] powerpc/85xx: Make sure lwarx hint isn't set on ppc32

2010-03-13 Thread Anton Blanchard
Hi, e500v1/v2 based chips will treat any reserved field being set in an opcode as illegal. Thus always setting the hint in the opcode is a bad idea. Anton should be kept away from the powerpc opcode map. Nasty bug! I promise never to touch the opcode map again :) Acked-by: Anton

powerpc: bump SECTION_SIZE_BITS from 16MB to 256MB

2010-02-25 Thread Anton Blanchard
assume there are some O(n^2) issues in sysfs as we add all the memory nodes. Bumping SECTION_SIZE_BITS to 256 MB drops the time to about 10 seconds and results in a much smaller /sys. Signed-off-by: Anton Blanchard an...@samba.org --- --- linux-2.6.33/arch/powerpc/include/asm/sparsemem.h~ 2010-02

Re: [PATCH] powerpc: Set a smaller value for RECLAIM_DISTANCE to enable zone reclaim

2010-02-22 Thread Anton Blanchard
Hi Balbir, A reclaim distance of 10 implies a ratio of 1, that means we'll always do zone_reclaim() to free page cache and slab cache before moving on to another node? I want to make an effort to reclaim local pagecache before ever going off node. As an example, a completely off node stream

[PATCH] powerpc: Call ibm,os-term if the ibm,extended-os-term is present

2010-02-18 Thread Anton Blanchard
-kernel-dump call. This patch checks for the ibm,extended-os-term property and calls ibm,os-term if it exists. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-cpumask/arch/powerpc/kernel/rtas.c === --- linux-cpumask.orig

Re: [PATCH 1/6] powerpc: Use lwarx hint in spinlocks

2010-02-17 Thread Anton Blanchard
Hi Nick, Cool. How does it go when there are significant amount of instructions between the lock and the unlock? A real(ish) workload, like dbench on ramdisk (which should hit the dcache lock). Good question, I'll see if we can see a difference on dbench. Anton

Re: [PATCH 6/6] powerpc: Use lwsync for acquire barrier if CPU supports it

2010-02-17 Thread Anton Blanchard
Hi Nick, Ah, good to see this one come back. I also tested tbench over localhost btw which actually did show some speedup on the G5. BTW. this was the last thing left: http://www.mail-archive.com/linuxppc-dev@lists.ozlabs.org/msg29738.html Don't know if you took a look at that again,

[PATCH] powerpc: Don't clear larx reservation on system call exit

2010-02-14 Thread Anton Blanchard
test is the private futex wake system call and that improves 5%. This is a decent speedup on an important system call for threaded applications. Signed-off-by: Anton Blanchard an...@samba.org --- If my previous patches didn't worry you then this one is sure to. Getting this wrong will make

Re: [PATCH] powerpc: Don't clear larx reservation on system call exit

2010-02-14 Thread Anton Blanchard
Hi Ben, Well, the main issue here is leaking kernel reservations into userspace, and thus the question of whether it is a big deal or not. There's also an issue I can see with signals. The risk with kernel reservations leaking into userspace is a problem on some processors that do not

[PATCH 1/6] powerpc: Use lwarx hint in spinlocks

2010-02-10 Thread Anton Blanchard
test for this patch. The results (in lock/unlock operations per second) are: before: 1538203 ops/sec after: 2189219 ops/sec An improvement of 42% A 32 core POWER7 improves even more: before: 1279529 ops/sec after: 2282076 ops/sec An improvement of 78% Signed-off-by: Anton Blanchard

[PATCH 3/6] powerpc: Convert open coded native hashtable bit lock

2010-02-10 Thread Anton Blanchard
Now we have real bit locks use them instead of open coding it. Signed-off-by: Anton Blanchard an...@samba.org --- diff --git a/arch/powerpc/mm/hash_native_64.c b/arch/powerpc/mm/hash_native_64.c index 056d23a..9e1aa4f 100644 --- a/arch/powerpc/mm/hash_native_64.c +++ b/arch/powerpc/mm

[PATCH 2/6] powerpc: Use lwarx/ldarx hint in bit locks

2010-02-10 Thread Anton Blanchard
This patch implements the lwarx/ldarx hint bit for bit locks. Signed-off-by: Anton Blanchard an...@samba.org --- Index: powerpc.git/arch/powerpc/include/asm/asm-compat.h === --- powerpc.git.orig/arch/powerpc/include/asm/asm

[PATCH 5/6] powerpc: Fix lwsync patching code on 64bit

2010-02-10 Thread Anton Blanchard
do_lwsync_fixups doesn't work on 64bit, we end up writing lwsyncs to the wrong addresses: 0:mon di c001000bfacc c001000bfacc 7c2004ac lwsync Since the lwsync section has negative offsets we need to use a signed int pointer so we sign extend the value. Signed-off-by: Anton

[PATCH 4/6] powerpc: Rename LWSYNC_ON_SMP to PPC_RELEASE_BARRIER, ISYNC_ON_SMP to PPC_ACQUIRE_BARRIER

2010-02-10 Thread Anton Blanchard
For performance reasons we are about to change ISYNC_ON_SMP to sometimes be lwsync. Now that the macro name doesn't make sense, change it and LWSYNC_ON_SMP to better explain what the barriers are doing. Signed-off-by: Anton Blanchard an...@samba.org --- Index: powerpc.git/arch/powerpc/include

[PATCH] powerpc: Improve 64bit copy_tofrom_user

2010-02-10 Thread Anton Blanchard
++) { if (pread(fd, buf, BUFSIZE, 0) != BUFSIZE) { perror(pread); exit(1); } } unlink(tmpfile); return 0; } Signed-off-by: Anton Blanchard an...@samba.org --- Index: powerpc.git/arch/powerpc/lib/copyuser_64.S

[PATCH] powerpc: pair loads and stores in copy_4k_page

2010-02-10 Thread Anton Blanchard
, (after.tv_sec - before.tv_sec) * NSEC_PER_SEC + (after.tv_nsec - before.tv_nsec)); return 0; } static void __exit copypage_exit(void) { } module_init(copypage_init) module_exit(copypage_exit) MODULE_LICENSE(GPL); MODULE_AUTHOR(Anton Blanchard); Signed-off-by: Anton

[PATCH] powerpc: Use lwarx hint bit in spinlocks

2010-02-09 Thread Anton Blanchard
which is a good test for this patch. The results (in lock/unlock operations per second) are: before: 1538203 ops/sec after: 2189219 ops/sec An improvement of 42% Signed-off-by: Anton Blanchard an...@samba.org --- We've had issues in the past with chips that do the wrong thing and don't ignore

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

[PATCH] powerpc: Add last sysfs file and dump of ftrace buffer to oops printout

2010-02-07 Thread Anton Blanchard
) | .vprintk() { 0) 0.488 us|._raw_spin_lock(); 0) 0.572 us|.emit_log_char(); Showing the function graph of a sysrq-c crash. Signed-off-by: Anton Blanchard an...@samba.org --- Index: powerpc.git/arch/powerpc

Re: [PATCH] Restrict stack space reservation to rlimit

2010-02-07 Thread Anton Blanchard
Hi, Why do we need page size independent stack size? It seems to have compatibility breaking risk. I don't think so. The current behaviour is clearly wrong, we dont need a 16x larger stack just because you went from a 4kB to a 64kB base page size. The user application stack usage is the same

Re: [PATCH] powerpc: Only print clockevent settings once

2010-02-07 Thread Anton Blanchard
Hi Wolfram, What about printk_once from kernel.h? Thanks for the suggestion! Anton -- 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

Re: [PATCH] Restrict stack space reservation to rlimit

2010-02-07 Thread Anton Blanchard
Hi, I didn't discuss which behavior is better. Michael said he want to apply his patch to 2.6.32 2.6.33. stable tree never accept the breaking compatibility patch. Your answer doesn't explain why can't we wait it until next merge window. btw, personally, I like page size indepent

[PATCH] Clear MSR_RI during RTAS calls

2010-02-07 Thread Anton Blanchard
RTAS should never cause an exception but if it does (for example accessing outside our RMO) then we might go a long way through the kernel before oopsing. If we unset MSR_RI we should at least stop things on exception exit. Signed-off-by: Anton Blanchard an...@samba.org --- The setting

Re: [PATCH] Clear MSR_RI during RTAS calls

2010-02-07 Thread Anton Blanchard
The setting of MSR_RI during RTAS calls went in ages ago (2003), and I'm not sure why. Clearly an exception inside RTAS is fatal since we most likely have a bad r13. I wrote the r13 comment without thinking :) Regardless I think we want to catch any RTAS exception ASAP. Anton

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

[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

[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] 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: 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 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/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

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

[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: 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] 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

[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: 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

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

<    6   7   8   9   10   11   12   >