Re: 3.3.0-rc6-next-20120308 boot failure on POWER7 blade

2012-03-08 Thread Anton Blanchard
Hi Ben, Looks like something that got fixed but the new patches from Bjorn aren't in next yet. I'll fwd you the patch separately to apply on top of what you have see if that helps (to confirm that's indeed the issue). Thanks, confirmed that it fixes it. Patch below in case anyone else is

[PATCH 1/2] atomic: Allow atomic_inc_not_zero to be overridden

2012-02-29 Thread Anton Blanchard
We want to implement a ppc64 specific version of atomic_inc_not_zero so wrap it in an ifdef to allow it to be overridden. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-build/include/linux/atomic.h === --- linux

[PATCH 2/2] powerpc: atomic: Implement atomic*_inc_not_zero

2012-02-29 Thread Anton Blanchard
: 39 00 00 00 li r8,0 - c01b63c4: 39 40 00 01 li r10,1 ... - c01b63e8: 7c 0a 00 50 subfr0,r10,r0 Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-build/arch/powerpc/include/asm/atomic.h

[PATCH] powerpc: perf: power_pmu_start restores incorrect values, breaking frequency events

2012-02-15 Thread Anton Blanchard
| tail -1 SAMPLE events: 9948 Signed-off-by: Anton Blanchard an...@samba.org --- Cc: sta...@kernel.org Index: linux-build/arch/powerpc/kernel/perf_event.c === --- linux-build.orig/arch/powerpc/kernel/perf_event.c 2012-02

[PATCH] powerpc: Fix RCU idle and hcall tracing

2012-01-09 Thread Anton Blanchard
multiplatform builds. The simple fix is to avoid tracing H_CEDE and rely on other tracepoints and the hypervisor dispatch trace log to work out if we called H_CEDE. This fixes a hang during boot on pSeries. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-build/arch/powerpc/kernel

Re: CONFIG_NO_HZ added too much idle time in /proc/stat during throughput test.

2011-12-13 Thread Anton Blanchard
Hi, This is 2.6.32, but I think 2.6.36 is the same. Sounds a bit like this, merged in 2.6.39. Anton -- commit ad5d1c888e556bc00c4e86f452cad4a3a87d22c1 Author: Anton Blanchard an...@samba.org Date: Sun Mar 20 15:28:03 2011 + powerpc: Fix accounting of softirq time when idle

[PATCH] powerpc: Fix comment explaining our VSID layout

2011-12-12 Thread Anton Blanchard
We support 16TB of user address space and half a million contexts so update the comment to reflect this. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-powerpc/arch/powerpc/include/asm/mmu-hash64.h === --- linux

Re: [PATCH] powerpc: fix wrong divisor in usecs_to_cputime

2011-12-09 Thread Anton Blanchard
add: Cc: sta...@vger.kernel.org [2.6.37+] so it will make it back into the stable trees? Anton Signed-off-by: Andreas Schwab sch...@linux-m68k.org FWIW: Acked-by: Anton Blanchard an...@samba.org --- arch/powerpc/include/asm/cputime.h |6 +++--- arch/powerpc/kernel/time.c

Re: [PATCH] powerpc: fix wrong divisor in usecs_to_cputime

2011-12-09 Thread Anton Blanchard
Hi Andreas, There is no user of usecs_to_cputime before 3.2-rc1, so it wouldn't have any effect for older versions. Great, that explains why I only noticed it last week :) Anton ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org

[PATCH] powerpc: POWER7 optimised copy_to_user/copy_from_user using VMX

2011-12-07 Thread Anton Blanchard
we can calculate the break points quickly. - One suggestion from Ben was to save and restore the VSX registers we use inline instead of using enable_kernel_altivec. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-build/arch/powerpc/include/asm/cputable.h

Re: [PATCH] powerpc: POWER7 optimised copy_to_user/copy_from_user using VMX

2011-12-07 Thread Anton Blanchard
Hi, I hate the idea of having a POWER7 FTR bit. Every loon will (and has tried to in the past) attach every POWER7 related thing to it, rather than thinking about what the feature really is for. What about other processors which could also benefit from this copy loop? Turning on

[PATCH] powerpc: POWER7 optimised copy_to_user/copy_from_user using VMX

2011-12-07 Thread Anton Blanchard
we can calculate the break points quickly. - One suggestion from Ben was to save and restore the VSX registers we use inline instead of using enable_kernel_altivec. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-build/arch/powerpc/include/asm/cputable.h

[PATCH] powerpc: Increase minimum RMO size from 64MB to 256MB

2011-12-04 Thread Anton Blanchard
the boot issues we have on 128MB RMO boxes and all new machines have virtual RMO, we may as well set our minimum to 256MB. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-powerpc/arch/powerpc/kernel/prom_init.c === --- linux

[PATCH 0/9] oops and kdump patches

2011-11-30 Thread Anton Blanchard
Here are a number of patches I've put together based on some rather strenuous testing of our oops and kdump paths. ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH 1/9] powerpc: Give us time to get all oopses out before panicking

2011-11-30 Thread Anton Blanchard
, then delay 1 second before calling into the panic code. Move oops_exit inside the die lock and put a newline between oopses for clarity. Signed-off-by: Anton Blanchard an...@samba.org --- We should really rename kexec_should_crash() to something like kernel_will_panic() and use it here. I'll work

[PATCH 2/9] powerpc: Remove broken and complicated kdump system reset code

2011-11-30 Thread Anton Blanchard
We have a lot of complicated logic that handles possible recursion between kdump and a system reset exception. We can solve this in a much simpler way using the same setjmp/longjmp tricks xmon does. As a first step, this patch removes the old system reset code. Signed-off-by: Anton Blanchard

[PATCH 3/9] powerpc/kdump: Use setjmp/longjmp to handle kdump and system reset recursion

2011-11-30 Thread Anton Blanchard
continue the kdump. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-build/arch/powerpc/kernel/crash.c === --- linux-build.orig/arch/powerpc/kernel/crash.c2011-11-25 16:41:06.228864087 +1100 +++ linux-build/arch

[PATCH 4/9] powerpc: Cleanup crash/kexec code

2011-11-30 Thread Anton Blanchard
Remove some unnecessary defines and fix some spelling mistakes. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-build/arch/powerpc/kernel/crash.c === --- linux-build.orig/arch/powerpc/kernel/crash.c2011-11-25

[PATCH 5/9] powerpc: Rework die()

2011-11-30 Thread Anton Blanchard
Our die() code was based off a very old x86 version. Update it to mirror the current x86 code. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-build/arch/powerpc/kernel/traps.c === --- linux-build.orig/arch/powerpc

[PATCH 6/9] powerpc: Reduce pseries panic timeout from 180s to 10s

2011-11-30 Thread Anton Blanchard
it is to power cycle. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-build/arch/powerpc/platforms/pseries/setup.c === --- linux-build.orig/arch/powerpc/platforms/pseries/setup.c 2011-11-08 11:41:51.84258 +1100 +++ linux

[PATCH 7/9] powerpc/xics: Reset the CPPR if H_EOI fails

2011-11-30 Thread Anton Blanchard
I have an intermittent kdump fail where the hypervisor fails an H_EOI. As a result our CPPR is never reset to 0xff and we no longer accept interrupts. This patch calls icp_hv_set_cppr to reset the CPPR if H_EOI fails, fixing the kdump fail. Signed-off-by: Anton Blanchard an...@samba.org

[PATCH 8/9] powerpc/kdump: Delay before sending IPI on a system reset

2011-11-30 Thread Anton Blanchard
handler which is not what we want. I took the opportunity to add defines for all the various delays we have. There's no need for cpu_relax when we are doing an mdelay, so remove them too. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-build/arch/powerpc/kernel/crash.c

[PATCH 9/9] powerpc/kdump: Only save CPU state first time through the secondary CPU capture code

2011-11-30 Thread Anton Blanchard
. For controlling progress now use atomic_t cpus_in_crash to count how many CPUs have made it into the kdump code, and time_to_dump to tell everyone it's time to dump. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-build/arch/powerpc/kernel/crash.c

[PATCH] powerpc: Enable squashfs as a module

2011-11-30 Thread Anton Blanchard
Most distros use it so we may as well enable it and get regular compile testing. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-powerpc/arch/powerpc/configs/ppc64_defconfig === --- linux-powerpc.orig/arch/powerpc

[PATCH] powerpc/nvram: Add spinlock to oops_to_nvram to prevent oops in compression code.

2011-11-30 Thread Anton Blanchard
at exactly the same time but I think it's best to play it safe for now. Once we are happy with the reliability we can change it to a full spinlock. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-build/arch/powerpc/platforms/pseries/nvram.c

Re: [PATCH] powerpc/nvram: Add spinlock to oops_to_nvram to prevent oops in compression code.

2011-11-30 Thread Anton Blanchard
Hi Ben, How would we miss ? trylock does loop on stwcx. failure, it doesn't loop if the lock is -taken-, so if the lock is only used for actually dealing with the oops the only miss is because somebody already got it... or am I missing something ? I'm thinking of two CPUs that enter at

Re: [PATCH 2/6] powerpc/time: Use clockevents_calc_mult_shift

2011-11-28 Thread Anton Blanchard
Hi Kumar, static void register_decrementer_clockevent(int cpu) { struct clock_event_device *dec = per_cpu(decrementers, cpu).event; @@ -955,7 +928,8 @@ static void __init init_decrementer_cloc { int cpu = smp_processor_id(); - setup_clockevent_multiplier(ppc_tb_freq);

[PATCH] powerpc: Decode correct MSR bits in oops output

2011-11-24 Thread Anton Blanchard
and for completeness add the rest of the bits in. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-build/arch/powerpc/kernel/process.c === --- linux-build.orig/arch/powerpc/kernel/process.c 2011-11-25 13:22:24.294919094

[PATCH] powerpc: Harden xics hypervisor backend

2011-11-24 Thread Anton Blanchard
and continue on. Add some more information to the debug messages as well. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-build/arch/powerpc/sysdev/xics/icp-hv.c === --- linux-build.orig/arch/powerpc/sysdev/xics/icp-hv.c 2011

[PATCH] powerpc: Atomically output each stack frame line in show_stack

2011-11-24 Thread Anton Blanchard
From: Milton Miller milt...@bga.com show_stack uses up to 4 printks per line and other CPUs using printk can corrupt the output. This patch calls printk once per stack frame line to produce more readable output. Signed-off-by: Milton Miller milt...@bga.com Signed-off-by: Anton Blanchard

[PATCH 0/6] ppc time fixes

2011-11-23 Thread Anton Blanchard
Here is a roll up of various time fixes I have pending. Anton ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH 1/6] powerpc/time: Handle wrapping of decrementer

2011-11-23 Thread Anton Blanchard
the cause of the lockup. We already keep track of the timebase of the next event so use that to work out if we should trigger a decrementer exception. Signed-off-by: Anton Blanchard an...@samba.org Cc: sta...@kernel.org --- - I'd like to get this into -stable if possible since the reports

[PATCH 2/6] powerpc/time: Use clockevents_calc_mult_shift

2011-11-23 Thread Anton Blanchard
We can use clockevents_calc_mult_shift instead of doing all the work ourselves. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-build/arch/powerpc/kernel/time.c === --- linux-build.orig/arch/powerpc/kernel/time.c

[PATCH 3/6] powerpc/time: Use clocksource_register_hz

2011-11-23 Thread Anton Blanchard
Use clocksource_register_hz which calculates the shift/mult factors for us. Also remove the shift = 22 assumption in vsyscall_update - thanks to Paul Mackerras and John Stultz for catching that. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-build/arch/powerpc/kernel/time.c

[PATCH 4/6] powerpc/time: Remove unnecessary sanity check of decrementer expiration

2011-11-23 Thread Anton Blanchard
The clockevents code uses max_delta_ns to avoid calling a clockevent with too large a value. Remove the redundant version of this in the timer_interrupt code. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-build/arch/powerpc/kernel/time.c

[PATCH 5/6] powerpc/time: Fix some style issues

2011-11-23 Thread Anton Blanchard
Fix some formatting issues and use the DECREMENTER_MAX define instead of 0x7fff. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-build/arch/powerpc/kernel/time.c === --- linux-build.orig/arch/powerpc/kernel

[PATCH 6/6] powerpc/time: Optimise decrementer_check_overflow

2011-11-23 Thread Anton Blanchard
-cr7,6c .arch_local_irq_restore+0x6c ... 6c: ld r30,-16(r1) 70: blr Unfortunately we still setup a local TOC (due to -mminimal-toc). Yet another sign we should be moving to -mcmodel=medium. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-build/arch/powerpc

[PATCH] powerpc: Copy down exception vectors after feature fixups

2011-11-14 Thread Anton Blanchard
we added POWERNV (breaks everyone). Signed-off-by: Anton Blanchard an...@samba.org Cc: sta...@kernel.org [v3.0+] --- Index: linux-build/arch/powerpc/include/asm/sections.h === --- linux-build.orig/arch/powerpc/include/asm/sections.h

[PATCH] powerpc: panic if we can't instantiate RTAS

2011-11-14 Thread Anton Blanchard
and failing in mysterious ways we should just panic up front if RTAS exists and we can't allocate space for it. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-powerpc/arch/powerpc/kernel/prom_init.c === --- linux-powerpc.orig

[PATCH] powerpc: Add System RAM to /proc/iomem

2011-11-02 Thread Anton Blanchard
We've resisted adding System RAM to /proc/iomem because it is the wrong place for it. Unfortunately we continue to find tools that rely on this behaviour so give up and add it in. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-build/arch/powerpc/mm/mem.c

[PATCH 1/4] powerpc/time: Use clockevents_calc_mult_shift

2011-11-02 Thread Anton Blanchard
We can use clockevents_calc_mult_shift instead of doing all the work ourselves. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-build/arch/powerpc/kernel/time.c === --- linux-build.orig/arch/powerpc/kernel/time.c

[PATCH 2/4] powerpc/time: Use clocksource_register_hz

2011-11-02 Thread Anton Blanchard
Use clocksource_register_hz which calculates the shift/mult factors for us. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-build/arch/powerpc/kernel/time.c === --- linux-build.orig/arch/powerpc/kernel/time.c 2011-11

[PATCH 4/4] powerpc/time: Fix some style issues

2011-11-02 Thread Anton Blanchard
Fix some formatting issues and use the DECREMENTER_MAX define instead of 0x7fff. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-build/arch/powerpc/kernel/time.c === --- linux-build.orig/arch/powerpc/kernel

Re: [PATCH] powerpc: Fix deadlock in icswx code

2011-09-27 Thread Anton Blanchard
Hi Jimi, It would really help me a lot if you could review and maybe merge this with my earlier patch that splits this file. http://patchwork.ozlabs.org/patch/109103/ All it does is split.. I promise. You don't have to take the other stuff.. yet :) Sorry it took so long to get to this.

Re: [PATCH 1/3 v2] powerpc: Split ICSWX ACOP and PID processing

2011-09-27 Thread Anton Blanchard
100644 index 000..2f1dd29 --- /dev/null +++ b/arch/powerpc/mm/icswx.c @@ -0,0 +1,162 @@ +/* + * ICSWX and ACOP Management + * + * Copyright (C) 2011 Anton Blanchard, IBM Corp. an...@samba.org + * + * This program is free software; you can redistribute it and/or + * modify

Re: [PATCH 0/5] ppc64 scheduler fixes

2011-09-19 Thread Anton Blanchard
Hi Peter, On Mon, 2011-07-25 at 12:33 +1000, Anton Blanchard wrote: Here are a set of ppc64 scheduler fixes that help with some multi node performance issues. They look fine to me. I'll probably ping you when I'll rip out all that SD_NODES_PER_DOMAIN crap for good, but until then I'm

[PATCH] powerpc: Fix deadlock in icswx code

2011-09-14 Thread Anton Blanchard
mm_users constant, take the page table spinlock. Signed-off-by: Anton Blanchard an...@samba.org Cc: sta...@kernel.org --- diff --git a/arch/powerpc/mm/mmu_context_hash64.c b/arch/powerpc/mm/mmu_context_hash64.c index 3bafc3d..4ff587e 100644 --- a/arch/powerpc/mm/mmu_context_hash64.c +++ b/arch

[PATCH] memory hotplug: Refuse to add unaligned memory regions

2011-09-14 Thread Anton Blanchard
Return -EINVAL instead of creating these bad regions. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-build/drivers/base/memory.c === --- linux-build.orig/drivers/base/memory.c 2011-08-11 08:25:55.005941391

Re: [RFC PATCH 02/10] fadump: Reserve the memory for firmware assisted dump.

2011-08-30 Thread Anton Blanchard
Hi Mahesh, Just a few comments. +#define RMR_START0x0 +#define RMR_END (0x1UL 28) /* 256 MB */ What if the RMO is bigger than 256MB? Should we be using ppc64_rma_size? +#ifdef DEBUG +#define PREFIX fadump: +#define DBG(fmt...) printk(KERN_ERR PREFIX

Re: [RFC PATCH 03/10] fadump: Register for firmware assisted dump.

2011-08-30 Thread Anton Blanchard
Hi, +static void fadump_show_config(void) +{ + DBG(Support for firmware-assisted dump (fadump): %s\n, + (fw_dump.fadump_supported ? present : no support)); + + if (!fw_dump.fadump_supported) + return; + + DBG(Fadump enabled: %s\n, +

Re: [RFC PATCH 05/10] fadump: Convert firmware-assisted cpu state dump data into elf notes.

2011-08-30 Thread Anton Blanchard
diff --git a/kernel/panic.c b/kernel/panic.c index 6923167..1965b50 100644 --- a/kernel/panic.c +++ b/kernel/panic.c @@ -49,6 +49,15 @@ static long no_blink(int state) long (*panic_blink)(int state); EXPORT_SYMBOL(panic_blink); +#ifdef CONFIG_FA_DUMP +/* + * provide an empty

[PATCH] powerpc: pseries: Avoid spurious error during hotplug CPU add

2011-08-14 Thread Anton Blanchard
During hotplug CPU add we get the following error: Unexpected Error (0) returned from configure-connector ibm,configure-connector returns 0 for configuration complete, so catch this and avoid the error. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-powerpc/arch/powerpc

[PATCH 1/4] [PATCH] powerpc: numa: Remove double of_node_put in hot_add_node_scn_to_nid

2011-08-11 Thread Anton Blanchard
only need the handle the case where we terminate the loop early. As suggested by Stephen Rothwell we can do the of_node_put unconditionally outside of the loop since of_node_put handles a NULL argument fine. Signed-off-by: Anton Blanchard an...@samba.org Cc: sta...@kernel.org --- Index: linux

[PATCH 2/4] [PATCH] powerpc: Use for_each_node_by_type instead of open coding it

2011-08-11 Thread Anton Blanchard
Use for_each_node_by_type instead of open coding it. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-powerpc/arch/powerpc/kernel/machine_kexec_64.c === --- linux-powerpc.orig/arch/powerpc/kernel/machine_kexec_64.c

[PATCH 3/4] [PATCH] powerpc: Coding style cleanups

2011-08-11 Thread Anton Blanchard
While converting code to use for_each_node_by_type I noticed a number of coding style issues. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-powerpc/arch/powerpc/kernel/setup_64.c === --- linux-powerpc.orig/arch

[PATCH 4/4] powerpc: Fix oops when echoing bad values to /sys/devices/system/memory/probe

2011-08-11 Thread Anton Blanchard
/memory/probe -bash: echo: write error: Invalid argument Signed-off-by: Anton Blanchard an...@samba.org Cc: sta...@kernel.org --- Index: linux-build/arch/powerpc/mm/hash_utils_64.c === --- linux-build.orig/arch/powerpc/mm/hash_utils_64

[PATCH 1/3] powerpc: numa: Remove double of_node_put in hot_add_node_scn_to_nid

2011-08-10 Thread Anton Blanchard
the duplicate one inside the loop. Signed-off-by: Anton Blanchard an...@samba.org Cc: sta...@kernel.org --- Index: linux-powerpc/arch/powerpc/mm/numa.c === --- linux-powerpc.orig/arch/powerpc/mm/numa.c 2011-06-06 08:07:35.148708089

[PATCH 2/3] powerpc: Use for_each_node_by_type instead of open coding it

2011-08-10 Thread Anton Blanchard
Use for_each_node_by_type instead of open coding it. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-powerpc/arch/powerpc/kernel/machine_kexec_64.c === --- linux-powerpc.orig/arch/powerpc/kernel/machine_kexec_64.c

[PATCH 3/3] powerpc: Coding style cleanups

2011-08-10 Thread Anton Blanchard
While converting code to use for_each_node_by_type I noticed a number of coding style issues. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-powerpc/arch/powerpc/kernel/setup_64.c === --- linux-powerpc.orig/arch

Re: [PATCH 1/3] powerpc: numa: Remove double of_node_put in hot_add_node_scn_to_nid

2011-08-10 Thread Anton Blanchard
Hi Stephen, Index: linux-powerpc/arch/powerpc/mm/numa.c === --- linux-powerpc.orig/arch/powerpc/mm/numa.c 2011-06-06 08:07:35.148708089 +1000 +++ linux-powerpc/arch/powerpc/mm/numa.c2011-08-10

[PATCH] powerpc: Make KVM_GUEST default to n

2011-08-04 Thread Anton Blanchard
-off-by: Anton Blanchard an...@samba.org --- Index: linux-powerpc/arch/powerpc/platforms/Kconfig === --- linux-powerpc.orig/arch/powerpc/platforms/Kconfig 2011-08-01 17:33:46.120121554 +1000 +++ linux-powerpc/arch/powerpc/platforms

[PATCH] powerpc: Move kdump default base address to half RMO size on 64bit

2011-07-31 Thread Anton Blanchard
will get 128MB. We cap it at 256MB (small SLB size) since some early allocations need to be in the bolted SLB region. We could relax this on machines with 1TB SLBs in a future patch. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-powerpc/arch/powerpc/include/asm/kdump.h

[PATCH] powerpc: Lack! of! ibm,io-events! not! that! important!

2011-07-31 Thread Anton Blanchard
The ibm,io-events code is a bit verbose with its error messages. Reverse the reporting so we only print when we successfully enable I/O event interrupts. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-powerpc/arch/powerpc/platforms/pseries/io_event_irq.c

[PATCH] powerpc: Fix device tree claim code

2011-07-26 Thread Anton Blanchard
with an obvious error. We could relocate the device tree in a future patch. Signed-off-by: Anton Blanchard an...@samba.org Cc: sta...@kernel.org --- Index: linux-powerpc/arch/powerpc/kernel/prom_init.c === --- linux-powerpc.orig/arch

[PATCH] powerpc: Clean up some panic messages in prom_init

2011-07-26 Thread Anton Blanchard
Add a newline to the panic messages in make_room. Also fix a comment that suggested our chunk size is 4Mb. It's 1MB. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-powerpc/arch/powerpc/kernel/prom_init.c

[PATCH] powerpc: Jump label misalignment causes oops at boot

2011-07-26 Thread Anton Blanchard
00 00 00 lfs f0,0(0) c0ad0a24: 00 ac a4 20 .long 0xaca420 And the jump table sort code gets very confused and writes into the wrong spot. Remove the alignment and also remove the padding since we it saves some space and we shouldn't need it. Signed-off-by: Anton Blanchard

[PATCH] powerpc: Jump label misalignment causes oops at boot

2011-07-26 Thread Anton Blanchard
.long 0xaca420 And the jump table sort code gets very confused and writes into the wrong spot. Remove the alignment, and also remove the padding since we it saves some space and we shouldn't need it. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-powerpc/arch/powerpc/include/asm

[PATCH] powerpc: pseries: Fix kexec on machines with more than 4TB of RAM

2011-07-26 Thread Anton Blanchard
On a box with 8TB of RAM the MMU hashtable is 64GB in size. That means we have 4G PTEs. pSeries_lpar_hptab_clear was using a signed int to store the index which will overflow at 2G. Signed-off-by: Anton Blanchard an...@samba.org Cc: sta...@kernel.org --- Index: linux-powerpc/arch/powerpc

[PATCH 0/3] pseries kexec fixes

2011-07-25 Thread Anton Blanchard
Here are a few pseries kexec fixes after testing on a recent version version. Anton ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH 1/3] powerpc/pseries: Fix kexec on recent firmware versions

2011-07-25 Thread Anton Blanchard
is ignored by firmware on unregister so we may as well remove it. Signed-off-by: Anton Blanchard an...@samba.org Cc: sta...@kernel.org --- Index: linux-powerpc/arch/powerpc/platforms/pseries/kexec.c === --- linux-powerpc.orig/arch/powerpc

[PATCH 2/3] powerpc/pseries: Cleanup VPA registration and deregistration errors

2011-07-25 Thread Anton Blanchard
Make the VPA, SLB shadow and DTL registration and deregistration functions print consistent messages on error. I needed the firmware error code while chasing a kexec bug but we weren't printing it. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-powerpc/arch/powerpc/platforms

[PATCH 3/3] powerpc/pseries: Simplify vpa deregistration functions

2011-07-25 Thread Anton Blanchard
The VPA, SLB shadow and DTL degistration functions do not need an address, so simplify things and remove it. Also cleanup pseries_kexec_cpu_down a bit by storing the cpu IDs in local variables. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-powerpc/arch/powerpc/platforms

[PATCH 0/5] ppc64 scheduler fixes

2011-07-25 Thread Anton Blanchard
Here are a set of ppc64 scheduler fixes that help with some multi node performance issues. ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH 1/5] powerpc/numa: Enable SD_WAKE_AFFINE in node definition

2011-07-25 Thread Anton Blanchard
Signed-off-by: Anton Blanchard an...@samba.org --- Cc-ing arch maintainers who might need to look at their SD_NODE_INIT definitions Index: linux-2.6-work/arch/powerpc/include/asm/topology.h === --- linux-2.6-work.orig/arch/powerpc

[PATCH 2/5] sched: Allow SD_NODES_PER_DOMAIN to be overridden

2011-07-25 Thread Anton Blanchard
We want to override the default value of SD_NODES_PER_DOMAIN on ppc64, so move it into linux/topology.h. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-2.6-work/include/linux/topology.h === --- linux-2.6-work.orig

[PATCH 3/5] powerpc/numa: Increase SD_NODES_PER_DOMAIN to 32.

2011-07-25 Thread Anton Blanchard
The largest POWER7 boxes have 32 nodes. SD_NODES_PER_DOMAIN groups nodes into chunks of 16 and adds a global balancing domain (SD_ALLNODES) above it. If we bump SD_NODES_PER_DOMAIN to 32, then we avoid this extra level of balancing on our largest boxes. Signed-off-by: Anton Blanchard

[PATCH 4/5] powerpc/numa: Disable NEWIDLE balancing at node level

2011-07-25 Thread Anton Blanchard
on the scheduler tick to rebalance across nodes. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-2.6-work/arch/powerpc/include/asm/topology.h === --- linux-2.6-work.orig/arch/powerpc/include/asm/topology.h 2011-07-25 12:14

[PATCH 5/5] powerpc/numa: Remove duplicate RECLAIM_DISTANCE definition

2011-07-25 Thread Anton Blanchard
We have two identical definitions of RECLAIM_DISTANCE, looks like the patch got applied twice. Remove one. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-2.6-work/arch/powerpc/include/asm/topology.h === --- linux

[PATCH] perf: powerpc: Disable pagefaults during callchain stack read

2011-07-24 Thread Anton Blanchard
when reading the stack otherwise we can lock up trying to take the mmap_sem when the code we are profiling already has a write lock taken. This will not happen for hardware events, but could for software events. Reported-by: David Ahern dsah...@gmail.com Signed-off-by: Anton Blanchard

Re: [regression] 3.0-rc boot failure -- bisected to cd4ea6ae3982

2011-07-20 Thread Anton Blanchard
Hi Peter, That looks very strange indeed.. up to node 23 there is the normal symmetric matrix with all the trace elements on 10 (as we would expect for local access), and some 4x4 sub-matrix stacked around the trace with 20, suggesting a single hop distance, and the rest on 40 being

Re: [regression] 3.0-rc boot failure -- bisected to cd4ea6ae3982

2011-07-20 Thread Anton Blanchard
Hi Peter, So with that fix the patch makes the machine happy again? Yes, the machine looks fine with the patches applied. Thanks! Anton ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH 4/4] powerpc: Enable lockup and hung task detectors in pseriesand ppc64 defeconfigs

2011-07-19 Thread Anton Blanchard
Hi David, As a result of changes to Kconfig files, we no longer enable the lockup and hung task detectors. Both are very light weight and provide useful information in the event of a hang, so reenable them. ... +CONFIG_LOCKUP_DETECTOR=y +CONFIG_DETECT_HUNG_TASK=y Is one of thise

Re: [regression] 3.0-rc boot failure -- bisected to cd4ea6ae3982

2011-07-19 Thread Anton Blanchard
Hi, That looks very strange indeed.. up to node 23 there is the normal symmetric matrix with all the trace elements on 10 (as we would expect for local access), and some 4x4 sub-matrix stacked around the trace with 20, suggesting a single hop distance, and the rest on 40 being out-there.

Re: [regression] 3.0-rc boot failure -- bisected to cd4ea6ae3982

2011-07-18 Thread Anton Blanchard
On Mon, 18 Jul 2011 23:35:56 +0200 Peter Zijlstra a.p.zijls...@chello.nl wrote: Anton, could you test the below two patches on that machine? It should make things boot again, while I don't have a machine nearly big enough to trigger any of this, I tested the new code paths by setting

Re: [regression] 3.0-rc boot failure -- bisected to cd4ea6ae3982

2011-07-14 Thread Anton Blanchard
Hi, Urgh.. so those spans are generated by sched_domain_node_span(), and it looks like that simply picks the 15 nearest nodes to the one we've got without consideration for overlap with previously generated spans. I do wonder if we need this extra level at all on ppc64. From memory SGI added

Re: [PATCH] hvc_console: Add kdb support

2011-07-13 Thread Anton Blanchard
Hi, Add poll_get_char and poll_put_char for kdb. Enable kdb at boot with: Did you mean ...for kgdb. Enable kgdb at boot.. ? I thought kdb and kgdb shared some infrastructure now, but your patch and comments seem to be all about kgdb. No I do mean kdb :) From the Documentation:

Re: [regression] 3.0-rc boot failure -- bisected to cd4ea6ae3982

2011-07-13 Thread Anton Blanchard
Hi Peter, Surely this isn't the first multi-node P7 to boot a kernel with this patch? If my git foo is any good it hit -next on 23rd of May. I guess I'm asking is, do smaller P7 machines boot? And if so, is there any difference except size? How many nodes does the thing have anyway, 28?

Re: [regression] 3.0-rc boot failure -- bisected to cd4ea6ae3982

2011-07-13 Thread Anton Blanchard
I took a quick look and we are stuck in update_group_power: do { power += group-cpu_power; group = group-next; } while (group != child-groups); I looked at the linked list: child-groups = c07b2f74ff00 and dumping group as we go:

[PATCH] powerpc/pseries: Fix hvterm_raw_get_chars to accept 16 chars, fixing xmon

2011-07-12 Thread Anton Blanchard
into and give it out as requested. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-powerpc/drivers/tty/hvc/hvc_vio.c === --- linux-powerpc.orig/drivers/tty/hvc/hvc_vio.c2011-07-13 14:37:16.251635811 +1000

[PATCH] hvc_console: Add kdb support

2011-07-12 Thread Anton Blanchard
Add poll_get_char and poll_put_char for kdb. Enable kdb at boot with: kgdboc=hvc0 or at runtime with: echo hvc0 /sys/module/kgdboc/parameters/kgdboc Signed-off-by: Anton Blanchard an...@samba.org --- A couple of things: - I needed to enable CONFIG_KGDB_SERIAL_CONSOLE in order to enable

[PATCH] powerpc/irq: Quieten irq mapping printks

2011-07-08 Thread Anton Blanchard
debugfs now so we may as well turn it into a pr_debug. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-powerpc/arch/powerpc/kernel/irq.c === --- linux-powerpc.orig/arch/powerpc/kernel/irq.c2011-07-08 08:49

Re: [RFC] [PATCH] hvc_console: improve tty/console put_chars handling

2011-07-06 Thread Anton Blanchard
Hi Hendrik, So with the patch below, the backend can now indirectly control the way console output is handled for it. I still have to think if this solution is ok or if it is better to introduce a new callback to console output only (and might provide a default implemenatation similar to

[PATCH 1/2]: hvc_console: improve tty/console put_chars handling

2011-07-06 Thread Anton Blanchard
control the way how console output is handled through the hvc console layer. Signed-off-by: Hendrik Brueckner brueck...@linux.vnet.ibm.com Acked-by: Anton Blanchard an...@samba.org Cc: sta...@kernel.org --- Index: linux-powerpc/drivers/tty/hvc/hvc_console.c

[PATCH 2/2]: powerpc/pseries/hvconsole: Fix dropped console output

2011-07-06 Thread Anton Blanchard
Return -EAGAIN when we get H_BUSY back from the hypervisor. This makes the hvc console driver retry, avoiding dropped printks. Signed-off-by: Anton Blanchard an...@samba.org Cc: sta...@kernel.org --- Index: linux-powerpc/arch/powerpc/platforms/pseries/hvconsole.c

Re: [PATCH] powerpc/kdump: Fix timeout in crash_kexec_wait_realmode

2011-07-06 Thread Anton Blanchard
On Tue, 05 Jul 2011 16:40:10 +1000 Michael Neuling mi...@neuling.org wrote: The existing code it pretty ugly. How about we clean it up even more like this? Looks good and it passed my kdump test cases. Anton From: Anton Blanchard an...@samba.org We check for timeout expiry in the outer

[PATCH 0/4] Some defconfig updates

2011-07-06 Thread Anton Blanchard
Here are a few defconfig updates I had lying around in my tree. Anton ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH 1/4] powerpc: Sync pseries and ppc64 defconfigs

2011-07-06 Thread Anton Blanchard
The pseries defconfig had a number of drivers enabled and we may as well add them to the ppc64 defconfig. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-powerpc/arch/powerpc/configs/ppc64_defconfig === --- linux

[PATCH 2/4] powerpc: Disable IRQs off tracer in ppc64 defconfig

2011-07-06 Thread Anton Blanchard
The IRQs off tracer enables mcount which has a big impact on performance. Disable it. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-powerpc/arch/powerpc/configs/ppc64_defconfig === --- linux-powerpc.orig/arch

[PATCH 3/4] powerpc: Add mpt2sas driver to pseries and ppc64 defconfig

2011-07-06 Thread Anton Blanchard
Add mpt2sas driver to pseries and ppc64 defconfig. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-powerpc/arch/powerpc/configs/ppc64_defconfig === --- linux-powerpc.orig/arch/powerpc/configs/ppc64_defconfig 2011

[PATCH 4/4] powerpc: Enable lockup and hung task detectors in pseries and ppc64 defeconfigs

2011-07-06 Thread Anton Blanchard
As a result of changes to Kconfig files, we no longer enable the lockup and hung task detectors. Both are very light weight and provide useful information in the event of a hang, so reenable them. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-powerpc/arch/powerpc/configs

<    4   5   6   7   8   9   10   11   12   >