[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 --- Index: linux-2.6/arch/powerpc/include/asm/topology.h === --- linux-2.6.orig/arch/powerpc/include/asm/topology.h 2010-04-29 15:58:58.

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] 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 --- diff --git a/arch/powerpc/configs/40x/acadia_defconfig b/arch/powerpc/configs/40x/acadia_defconfig index 8e95f8d

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 freq

[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 --- Index: linux-2.6/arch

[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 --- 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/crash.c

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

2010-05-10 Thread Anton Blanchard
cal CPU id. 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 --- Index: linux-2.6/arch/powerpc/kernel/crash.c === --- linux-2.6

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

2010-05-10 Thread Anton Blanchard
>mask(irq); desc->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 --- Index: linux-2.6

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

2010-05-10 Thread Anton Blanchard
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 Signed-off-by: Anton Blanchard --- Some things we should add: - Specify a more intelligent limit for BookE - The allocation of the PACAs

[PATCH] powerpc: Replace open coded instruction patching with patch_instruction/patch_branch

2011-04-05 Thread Anton Blanchard
There are a few places we patch instructions without using patch_instruction and patch_branch, probably because they predated it. Fix it. Signed-off-by: Anton Blanchard --- Index: powerpc.git/arch/powerpc/mm/hash_utils_64.c

[PATCH] rtas: Only sleep in rtas_busy_delay if we have useful work to do

2011-04-07 Thread Anton Blanchard
definitely be decreased, but even if we slept 1ms each iteration this would take 32s. Signed-off-by: Anton Blanchard --- Index: linux-2.6/arch/powerpc/kernel/rtas.c === --- linux-2.6.orig/arch/powerpc/kernel/rtas.c 2011-04-05 11:19

[PATCH] powerpc: Fix oops if scan_dispatch_log is called too early

2011-04-08 Thread Anton Blanchard
.irq_enter+0x88/0xc0 .do_IRQ+0x48/0x230 The patch below adds a check to scan_dispatch_log to ensure the dispatch log has been allocated. Signed-off-by: Anton Blanchard Cc: --- Index: powerpc.git/arch/powerpc/kernel/time.c

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

2011-04-17 Thread Anton Blanchard
Signed-off-by: Anton Blanchard --- Changes: - By including linux/spinlock_types.h we can remove the dynamic allocation of the spinlock hack and simplify things a lot. - We had a nasty bug with threaded applications. We weren't ensuring all running threads saw the updates from a use_c

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

2011-05-02 Thread Anton Blanchard
Signed-off-by: Anton Blanchard --- Changes: - Go back to dynamically allocating the spinlock to avoid the mmu_context.h and spinlock_types.h include mess. Index: linux-powerpc/arch/powerpc/include/asm/cputable.h === --- linux

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

2011-05-02 Thread Anton Blanchard
Hi Ben, > My only comment (sorry Anton :-) would have been that we could lazily > allocate the spinlock on the first use_cop() ... or do we have that > potentially called in the wrong context ? I worry what might happen in a threaded app. It would be a strange thing to do, but the program may ca

[PATCH] powerpc/pseries: Enable Emulex and Qlogic 10Gbit cards

2011-05-08 Thread Anton Blanchard
Enable the Qlogic and Emulex 10Gbit adapters. Signed-off-by: Anton Blanchard --- Index: linux-powerpc/arch/powerpc/configs/pseries_defconfig === --- linux-powerpc.orig/arch/powerpc/configs/pseries_defconfig 2011-05-09 09:14

[PATCH] powerpc/pseries: Enable iSCSI support for a number of cards

2011-05-08 Thread Anton Blanchard
Enable iSCSI support for a number of cards. We had the base networking devices enabled but forgot to enable iSCSI. Signed-off-by: Anton Blanchard --- Index: linux-powerpc/arch/powerpc/configs/pseries_defconfig === --- linux

[PATCH] powerpc: Simplify 4k/64k copy_page logic

2011-05-09 Thread Anton Blanchard
To make it easier to add optimised versions of copy_page, remove the 4kB loop for 64kB pages and just do all the work in copy_page. Signed-off-by: Anton Blanchard --- Index: linux-powerpc/arch/powerpc/include/asm/page_64.h

[PATCH] powerpc: Remove static branch hint in giveup_altivec

2011-05-09 Thread Anton Blanchard
A static branch hint will override dynamic branch prediction on recent POWER CPUs. Since we are about to use more altivec in the kernel remove the static hint in giveup_altivec that assumes a userspace task is using altivec. Signed-off-by: Anton Blanchard --- Index: linux-powerpc/arch/powerpc

[PATCH] powerpc: Improve scheduling of system call entry instructions

2011-05-09 Thread Anton Blanchard
cycles sd = 0.138 modified: mean = 404.1 cycles sd = 0.109 So we have 1.77% improvement on POWER7 which looks significant. The POWER6 suggest a 0.25% slowdown, but the results are within 1 standard deviation and may be in the noise. Signed-off-by: Anton Blanchard --- Index

[PATCH 1/2] powerpc: Add ioremap_wc

2011-05-09 Thread Anton Blanchard
Add ioremap_wc so drivers can request write combining on kernel mappings. Signed-off-by: Anton Blanchard --- Index: linux-powerpc/arch/powerpc/include/asm/io.h === --- linux-powerpc.orig/arch/powerpc/include/asm/io.h2011-05-09

[PATCH 2/2] powerpc: Remove ioremap_flags

2011-05-09 Thread Anton Blanchard
We have a confusing number of ioremap functions. Make things just a bit simpler by merging ioremap_flags and ioremap_prot. Signed-off-by: Anton Blanchard --- Index: linux-powerpc/arch/powerpc/include/asm/io.h === --- linux

[PATCH] powerpc: Print corrupt r3 in FWNMI code

2011-05-10 Thread Anton Blanchard
I have a report of an FWNMI with an r3 value that we think is corrupt, but since we don't print r3 we have no idea what was wrong with it. Signed-off-by: Anton Blanchard --- Index: linux-net/arch/powerpc/platforms/pseries/

[PATCH] powerpc/pseries: Enable iSCSI support for a number of cards

2011-05-12 Thread Anton Blanchard
Enable iSCSI support for a number of cards. We had the base networking devices enabled but forgot to enable iSCSI. Signed-off-by: Anton Blanchard --- v2: I added the bnx2 iscsi twice. Index: junk/arch/powerpc/configs/pseries_defconfig

[PATCH 0/3] POWER7 optimised copy loops

2011-06-16 Thread Anton Blanchard
Here are POWER7 optimised versions of copy_page, memcpy and copy_tofrom_user. Anton ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH 1/3] powerpc: POWER7 optimised copy_page using VMX

2011-06-16 Thread Anton Blanchard
Implement a POWER7 optimised copy_page using VMX. We copy a cacheline at a time using VMX loads and stores. Signed-off-by: Anton Blanchard --- How do we want to handle per machine optimised functions? I create yet another feature bit, but feature bits might get out of control at some point

[PATCH 2/3] powerpc: POWER7 optimised memcpy using VMX

2011-06-16 Thread Anton Blanchard
ltivec. - We could have two VMX breakpoints, one for when we know the user VMX state is loaded into the registers and one when it isn't. This could be a second bit in the paca so we can calculate the break points quickly. Signed-off-by: Anton Blanchard --- Index: linux-powe

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

2011-06-16 Thread Anton Blanchard
o the registers and one when it isn't. This could be a second bit in the paca so we can calculate the break points quickly. Signed-off-by: Anton Blanchard --- Index: linux-powerpc/arch/powerpc/lib/copyuser_64.S === --- linux-p

Re: [PATCH 1/3] powerpc: POWER7 optimised copy_page using VMX

2011-06-16 Thread Anton Blanchard
Hi, > Yeah, I'm pretty against CPU_FTR_POWER7. Every loon is going to > attach anything POWER7 to it. > > I'm keen to see it setup in __setup_cpu_power7. Either a function > pointer or use the patch_instruction infrastructure to avoid indirect > function calls on small copies. Instruction

[PATCH] powerpc: Use -mtraceback=no

2011-06-30 Thread Anton Blanchard
ld match. Switch to using -mtraceback=no should work everywhere. Signed-off-by: Anton Blanchard --- Index: linux-powerpc/arch/powerpc/Makefile === --- linux-powerpc.orig/arch/powerpc/Makefile2011-07-01 09:40:57.902255472 +1000

hvc_console change results in corrupt oops output

2011-07-04 Thread Anton Blanchard
Hi, We've been struggling to debug a hang on a large ppc64 box. Every time we collect oops output there are pieces of the oops output missing and in some cases entire CPUs are missing. Eventually I realised the hvc_console driver is dropping characters. The commit that caused this is: commit 3

[PATCH] powerpc/kdump: Fix timeout in crash_kexec_wait_realmode

2011-07-04 Thread Anton Blanchard
We check for timeout expiry in the outer loop, but we also need to check it in the inner loop or we can lock up forever waiting for a CPU to hit real mode. Signed-off-by: Anton Blanchard Cc: --- Index: linux-powerpc/arch/powerpc/kernel/crash.c

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

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

2011-07-06 Thread Anton Blanchard
nsole output is handled through the hvc console layer. Signed-off-by: Hendrik Brueckner Acked-by: Anton Blanchard Cc: --- Index: linux-powerpc/drivers/tty/hvc/hvc_console.c === --- linux-powerpc.orig/drivers/tty/hvc/hvc_cons

[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 Cc: --- 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 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 > > We check for timeout expiry in the outer loop, but

[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 --- Index: linux-powerpc/arch/powerpc/configs/ppc64_defconfig === --- linux-powerpc.orig/arch

[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 --- Index: linux-powerpc/arch/powerpc/configs/ppc64_defconfig === --- linux-powerpc.orig/arch/powerpc/configs

[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 --- Index: linux-powerpc/arch/powerpc/configs/ppc64_defconfig === --- linux-powerpc.orig/arch/powerpc/configs/ppc64_defconfig 2011-07-07 09:07

[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 --- Index: linux-powerpc/arch/powerpc/configs/ppc64_defconfig

[PATCH] powerpc/irq: Quieten irq mapping printks

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

[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 --- 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 +++ linux-powerpc

[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 --- A couple of things: - I needed to enable CONFIG_KGDB_SERIAL_CONSOLE in order to ena

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 Documentat

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 anywa

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 g

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 add

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 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 FORCE_SD_OVERLAP in /deb

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

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-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 > out

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

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

2011-07-24 Thread Anton Blanchard
lked to Ben about this last week and he pointed me at pagefault_disable/enable. Untested patch below. Anton -- We need to disable pagefaults 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 no

[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
ignored by firmware on unregister so we may as well remove it. Signed-off-by: Anton Blanchard Cc: --- Index: linux-powerpc/arch/powerpc/platforms/pseries/kexec.c === --- linux-powerpc.orig/arch/powerpc/platforms/pseries/kexec.c

[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 --- Index: linux-powerpc/arch/powerpc/platforms/pseries/ke

[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 --- Index: linux-powerpc/arch/powerpc/platforms/pseries/hotplug-cpu.c

[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 --- 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/include/asm

[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 --- Index: linux-2.6-work/include/linux/topology.h === --- linux-2.6-work.orig/include/linux

[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
scheduler tick to rebalance across nodes. Signed-off-by: Anton Blanchard --- 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:25.448671947

[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 --- Index: linux-2.6-work/arch/powerpc/include/asm/topology.h === --- linux-2.6-work.orig

[PATCH] powerpc: Fix device tree claim code

2011-07-25 Thread Anton Blanchard
oot, but we at least fail with an obvious error. We could relocate the device tree in a future patch. Signed-off-by: Anton Blanchard Cc: --- Index: linux-powerpc/arch/powerpc/kernel/prom_init.c === --- linux-powerpc.orig/arch/powerp

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

2011-07-25 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 --- Index: linux-powerpc/arch/powerpc/kernel/prom_init.c === ---

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

2011-07-26 Thread Anton Blanchard
00ad0a20: c0 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. Sig

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

2011-07-26 Thread Anton Blanchard
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 --- Index: linux-powerpc/arch/powerpc/include

[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 Cc: --- Index: linux-powerpc/arch/powerpc/platforms/pseries/lpar.c

[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 --- 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 --- Index: linux-powerpc/arch/powerpc/platforms/pseries/io_event_irq.c

[PATCH] powerpc: Make KVM_GUEST default to n

2011-08-04 Thread Anton Blanchard
-off-by: Anton Blanchard --- 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/Kconfig

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

2011-08-09 Thread Anton Blanchard
the duplicate one inside the loop. Signed-off-by: Anton Blanchard 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 +1000 +++ linux

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

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

[PATCH 3/3] powerpc: Coding style cleanups

2011-08-09 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 --- Index: linux-powerpc/arch/powerpc/kernel/setup_64.c === --- linux-powerpc.orig/arch/powerpc/kernel

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

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

2011-08-10 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 Cc: sta...@kernel.org --- Index: linux-powerpc/arch

[PATCH 2/4] [PATCH] 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 --- Index: linux-powerpc/arch/powerpc/kernel/machine_kexec_64.c === --- linux-powerpc.orig/arch/powerpc/kernel/machine_kexec_64.c 2011-08-10 16

[PATCH 3/4] [PATCH] 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 --- Index: linux-powerpc/arch/powerpc/kernel/setup_64.c === --- linux-powerpc.orig/arch/powerpc/kernel

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

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

[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 --- Index: linux-powerpc/arch/powerpc/platforms/pseries

[PATCH 1/2] powerpc: Remove ibm,smt-snooze-delay OF property

2010-05-16 Thread Anton Blanchard
I'm not sure why we have code for parsing an ibm,smt-snooze-delay OF property. Since we have a smt-snooze-delay= boot option and we can also set it at runtime via sysfs, it should be safe to get rid of this code. Signed-off-by: Anton Blanchard --- Index: powerpc.git/arch/powerpc/kernel/sy

[PATCH 2/2] powerpc: Use smt_snooze_delay=-1 to always busy loop

2010-05-16 Thread Anton Blanchard
erspace tools (eg ppc64_cpu), but I'm cc-ing Nathan just to be sure. Signed-off-by: Anton Blanchard --- Index: powerpc.git/arch/powerpc/kernel/sysfs.c === --- powerpc.git.orig/arch/powerpc/kernel/sysfs.c2010-05-17 15:18:

[PATCH 2/3] powerpc: numa: Use ibm,architecture-vec-5 to detect form 1 affinity

2010-05-16 Thread Anton Blanchard
reate FW_FEATURE_* bits. Signed-off-by: Anton Blanchard --- Index: powerpc.git/arch/powerpc/mm/numa.c === --- powerpc.git.orig/arch/powerpc/mm/numa.c 2010-05-17 12:56:02.0 +1000 +++ powerpc.git/arch/powerpc/mm/numa.c 2010-05-

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

2010-05-16 Thread Anton Blanchard
boot it didn't seem worth adding a per node valid bit. Signed-off-by: Anton Blanchard --- Index: powerpc.git/arch/powerpc/mm/numa.c === --- powerpc.git.orig/arch/powerpc/mm/numa.c 2010-05-17 15:01:40.345954329

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

2010-05-16 Thread Anton Blanchard
ode. The patch below sets a smaller value for RECLAIM_DISTANCE and thus enables zone reclaim. Signed-off-by: Anton Blanchard --- Index: powerpc.git/arch/powerpc/include/asm/topology.h === --- powerpc.git.orig/arch/powerpc/include/

[PATCH 2/3] powerpc: numa: Use ibm,architecture-vec-5 to detect form 1 affinity

2010-05-16 Thread Anton Blanchard
reate FW_FEATURE_* bits. Signed-off-by: Anton Blanchard --- v2: I said "fifth byte of the ibm,client-architecture" when I should have said "fifth vector of the ibm,client-architecture" Index: powerpc.g

[PATCH] powerpc: Optimise per cpu accesses on 64bit

2010-05-31 Thread Anton Blanchard
each cacheline. Signed-off-by: Anton Blanchard --- Index: powerpc.git/arch/powerpc/include/asm/percpu.h === --- powerpc.git.orig/arch/powerpc/include/asm/percpu.h 2010-06-01 11:10:16.225954322 +1000 +++ powerpc.git/arch/powerpc/includ

[PATCH] [SCSI] ipr: Fix stack overflow in ipr_format_resource_path

2010-06-02 Thread Anton Blanchard
rminate in the first place. That can be fixed in a follow up patch. Signed-off-by: Anton Blanchard --- Index: linux.trees.git/drivers/scsi/ipr.c === --- linux.trees.git.orig/drivers/scsi/ipr.c 2010-05-31 08:51:20.0 +1000

Re: [PATCH] [SCSI] ipr: Fix stack overflow in ipr_format_resource_path

2010-06-02 Thread Anton Blanchard
Hi Wayne, > We also saw a variation of this problem last week and I have an alternative > patch that I'd prefer over this one. I'll post the patch in a separate > email. Thanks. Can you get it into -stable too? As you can see users are hitting it. Anton

Re: [PATCH] powerpc: Disable CONFIG_SYSFS_DEPRECATED

2010-06-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 frequ

Re: [PATCH] powerpc: Disable CONFIG_SYSFS_DEPRECATED

2010-06-07 Thread Anton Blanchard
Hi Josh, > Yes actually. I've tested on a few boards and it seems to be working well > enough. My apologies for not replying sooner. > > Acked-by: Josh Boyer Thanks for testing! Anton ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org htt

[PATCH] powerpc: Move kdump default base address to 64MB on 64bit

2010-06-07 Thread Anton Blanchard
ted towards the top of our RMO, so if we were to go any higher we risk not having enough RMO memory for the kdump kernel on boxes with a 128MB RMO. Signed-off-by: Anton Blanchard --- Index: powerpc.git/arch/powerpc/incl

[PATCH] powerpc: rtas_flash cannot be a module

2010-06-08 Thread Anton Blanchard
be in the kernel data and could be above 4GB. Change RTAS_FLASH to a bool. If we are worried about kernel footprint we could move the problem variables out of the module and export them. Signed-off-by: Anton Blanchard --- Index: linux-2.6/arch/powerpc/platfor

Re: [PATCH] powerpc: rtas_flash cannot be a module

2010-06-12 Thread Anton Blanchard
Hi, > So we should use that rtas_data_buf with its lock ... > > Oh look, the driver already uses that buffer for the call to verify_flash > > untested patch to follow Thanks, it built and tested OK with the following patch. Will send a complete patch with these changes in a minute. Anton --

Re: [PATCH] powerpc: rtas_flash needs to use rtas_data_buf

2010-06-12 Thread Anton Blanchard
means the variable may not be in the kernel data and could be above 4GB. Instead of relying on the data segment being below 4GB, use the static data buffer allocated by the kernel for use by rtas. Since we don't use the header struct directly anymore, convert it to a simple pointer. Reported-By:

[PATCH] powerpc: Linux cannot run with 0 cores

2010-06-17 Thread Anton Blanchard
handle not only the CONFIG_SMP=n case but also the case where NR_CPUS isn't a multiple of the number of SMT threads. Signed-off-by: Anton Blanchard --- Index: linux-2.6/arch/powerpc/kernel/prom_init.c === --- linux-2.6.orig

[PATCH] powerpc/mm: Handle hypervisor pte insert failure in __hash_page_huge

2010-07-14 Thread Anton Blanchard
: Anton Blanchard --- Index: powerpc.git/arch/powerpc/mm/hugetlbpage-hash64.c === --- powerpc.git.orig/arch/powerpc/mm/hugetlbpage-hash64.c 2010-07-15 15:24:19.520742137 +1000 +++ powerpc.git/arch/powerpc/mm/hugetlbpage-hash64.c

[PATCH 1/3] powerpc: Optimise 64bit csum_partial

2010-08-02 Thread Anton Blanchard
this patch. Signed-off-by: Anton Blanchard -- Index: powerpc.git/arch/powerpc/lib/checksum_64.S === --- powerpc.git.orig/arch/powerpc/lib/checksum_64.S 2010-08-03 13:32:45.291991557 +1000 +++ powerpc.git/arch/powerpc/lib

[PATCH 2/3] powerpc: Optimise 64bit csum_partial_copy_generic and add csum_and_copy_from_user

2010-08-02 Thread Anton Blanchard
benchmark from being cache bandwidth limited to cpu limited), adding this patch improved performance by 55% Signed-off-by: Anton Blanchard -- Index: powerpc.git/arch/powerpc/lib/checksum_64.S === --- powerpc.git.orig/arch/powerpc

<    5   6   7   8   9   10   11   12   13   >