Re: linux-next: build failure after merge of the final tree (Linus' tree related)

2011-06-16 Thread KAMEZAWA Hiroyuki
On Fri, 17 Jun 2011 15:38:09 +1000 Stephen Rothwell wrote: > Hi all, > > After merging the final tree, today's linux-next build (powerpc > allyesconfig) failed like this: > > mm/page_cgroup.c: In function 'page_cgroup_init': > mm/page_cgroup.c:309:13: error: 'pg_data_t' has no member named 'nod

RE: powerpc: Add printk companion for ppc_md.progress

2011-06-16 Thread Benjamin Herrenschmidt
On Fri, 2011-06-17 at 15:39 +1000, Benjamin Herrenschmidt wrote: > (Original mail lost in my email cleanup so this isn't a proper reply) > > I'll apply that for now, but I'd very much like somebody to just get rid > of the whole ppc_md.progress business. > > We have printk working early enough no

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

2011-06-16 Thread Benjamin Herrenschmidt
On Fri, 2011-06-17 at 14:54 +1000, Anton Blanchard wrote: > plain text document attachment (power7_copy_tofrom_user) > Implement a POWER7 optimised copy_to_user/copy_from_user using VMX. > For large aligned copies this new loop is over 10% faster, and for > large unaligned copies it is over 200% fa

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

2011-06-16 Thread Benjamin Herrenschmidt
O > +.Lvmx_copy: > + mflrr0 > + std r4,56(r1) > + std r5,64(r1) > + std r0,16(r1) > + stdur1,-STACKFRAMESIZE(r1) > + bl .enable_kernel_altivec > + ld r0,STACKFRAMESIZE+16(r1) > + ld r3,STACKFRAMESIZE+48(r1) > + ld r4,STACKF

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

2011-06-16 Thread Benjamin Herrenschmidt
On Fri, 2011-06-17 at 14:53 +1000, Anton Blanchard wrote: > +#include > +#include > + > +#define STACKFRAMESIZE 112 > + > +_GLOBAL(copypage_power7) > + mflrr0 > + std r3,48(r1) > + std r4,56(r1) > + std r0,16(r1) > + stdur1,-STACKFRAMESIZE(r1) > + >

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

2011-06-16 Thread Benjamin Herrenschmidt
On Fri, 2011-06-17 at 14:53 +1000, Anton Blanchard wrote: > plain text document attachment (power7_copypage) > 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 m

RE: powerpc: Add printk companion for ppc_md.progress

2011-06-16 Thread Benjamin Herrenschmidt
(Original mail lost in my email cleanup so this isn't a proper reply) I'll apply that for now, but I'd very much like somebody to just get rid of the whole ppc_md.progress business. We have printk working early enough nowadays (and we can use udbg for debugging). It was meant to display magic nu

linux-next: build failure after merge of the final tree (Linus' tree related)

2011-06-16 Thread Stephen Rothwell
Hi all, After merging the final tree, today's linux-next build (powerpc allyesconfig) failed like this: mm/page_cgroup.c: In function 'page_cgroup_init': mm/page_cgroup.c:309:13: error: 'pg_data_t' has no member named 'node_end_pfn' Caused by commit 37573e8c7182 ("memcg: fix init_page_cgroup nid

Re: [PATCH v3 2/2] powerpc: add support for MPIC message register API

2011-06-16 Thread Benjamin Herrenschmidt
On Tue, 2011-05-31 at 14:19 -0500, Meador Inge wrote: > Some MPIC implementations contain one or more blocks of message registers > that are used to send messages between cores via IPIs. A simple API has > been added to access (get/put, read, write, etc ...) these message registers. > The availabl

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

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

2011-06-16 Thread Michael Neuling
> 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 > a

Re: [PATCH 2/2] powerpc/book3e-64: reraise doorbell when masked by soft-irq-disable

2011-06-16 Thread Benjamin Herrenschmidt
On Tue, 2011-05-24 at 06:51 +1000, Benjamin Herrenschmidt wrote: > On Mon, 2011-05-23 at 15:26 -0500, Scott Wood wrote: > > On Sat, 21 May 2011 08:32:58 +1000 > > Benjamin Herrenschmidt wrote: > > > > > On Fri, 2011-05-20 at 14:00 -0500, Scott Wood wrote: > > > > Signed-off-by: Scott Wood > > >

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

2011-06-16 Thread Anton Blanchard
Implement a POWER7 optimised copy_to_user/copy_from_user using VMX. For large aligned copies this new loop is over 10% faster, and for large unaligned copies it is over 200% faster. If we take a fault we fall back to the old version, this keeps things relatively simple and easy to verify. (The de

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

2011-06-16 Thread Anton Blanchard
Implement a POWER7 optimised memcpy using VMX. For large aligned copies this new loop is over 10% faster and for large unaligned copies it is over 200% faster. On POWER7 unaligned stores rarely slow down - they only flush when a store crosses a 4KB page boundary. Furthermore this flush is handled

[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. Ind

[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

Re: [RFC PATCH V1 5/7] cpuidle: (POWER) cpuidle driver for pSeries

2011-06-16 Thread Benjamin Herrenschmidt
On Tue, 2011-06-07 at 22:00 +0530, Trinabh Gupta wrote: > +static int snooze_loop(struct cpuidle_device *dev, > + struct cpuidle_driver *drv, > + int index) > +{ > + unsigned long in_purr, out_purr; > + ktime_t kt_before, kt_after; > + s64 usec_d

Re: [RFC PATCH V1 4/7] cpuidle: (powerpc) Add cpu_idle_wait() to allow switching idle routines

2011-06-16 Thread Benjamin Herrenschmidt
On Tue, 2011-06-07 at 22:00 +0530, Trinabh Gupta wrote: > diff --git a/arch/powerpc/kernel/idle.c b/arch/powerpc/kernel/idle.c > index 39a2baa..932392b 100644 > --- a/arch/powerpc/kernel/idle.c > +++ b/arch/powerpc/kernel/idle.c > @@ -102,6 +102,24 @@ void cpu_idle(void) > } > } > > +stat

Re: [RFC PATCH V1 1/7] cpuidle: create bootparam "cpuidle.off=1"

2011-06-16 Thread Benjamin Herrenschmidt
On Tue, 2011-06-07 at 21:59 +0530, Trinabh Gupta wrote: > From: Len Brown > > useful for disabling cpuidle to fall back > to architecture-default idle loop > > cpuidle drivers and governors will fail to register. > on x86 they'll say so: > > intel_idle: intel_idle yielding to (null) > ACPI: acp

Re: [PATCH] perf_events: Enable idle state tracing for pseries (ppc64)

2011-06-16 Thread Benjamin Herrenschmidt
On Wed, 2011-06-01 at 18:05 +0530, Deepthi Dharwar wrote: > Hi, > > Please find below a patch, which has perf_events added for pseries (ppc64) > platform in order to emit the trace required for perf timechart. > It essentially enables perf timechart for pseries platfrom to analyse > power savings

Re: [PATCH] Add cpufreq driver for Momentum Maple boards

2011-06-16 Thread Benjamin Herrenschmidt
On Sat, 2011-05-21 at 14:28 +0400, Dmitry Eremin-Solenikov wrote: > Add simple cpufreq driver for Maple-based boards (ppc970fx evaluation > kit and others). Driver is based on a cpufreq driver for 64-bit powermac > boxes with all pmac-dependant features removed and simple cleanup > applied. No spe

Re: [PATCH] powerpc/book3e-64: use a separate TLB handler when linear map is bolted

2011-06-16 Thread Benjamin Herrenschmidt
On Fri, 2011-06-03 at 17:12 -0500, Scott Wood wrote: > On MMUs such as FSL where we can guarantee the entire linear mapping is > bolted, we don't need to worry about linear TLB misses. If on top of > that we do a full table walk, we get rid of all recursive TLB faults, and > can dispense with some

[PATCH 4/5] powerpc/pseries: Re-implement HVSI as part of hvc_vio

2011-06-16 Thread Benjamin Herrenschmidt
On pseries machines, consoles are provided by the hypervisor using a low level get_chars/put_chars type interface. However, this is really just a transport to the service processor which implements them either as "raw" console (networked consoles, HMC, ...) or as "hvsi" serial ports. The later is

[PATCH 3/5] powerpc/udbg: Register udbg console generically

2011-06-16 Thread Benjamin Herrenschmidt
When CONFIG_PPC_EARLY_DEBUG is set, call register_early_udbg_console() early from generic code. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/kernel/udbg.c|2 ++ arch/powerpc/platforms/pseries/lpar.c |2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 5/5] powerpc/pseries: Move hvsi support into a library

2011-06-16 Thread Benjamin Herrenschmidt
This will allow a different backend to share it Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/include/asm/hvsi.h | 34 +++ drivers/tty/hvc/Makefile|2 +- drivers/tty/hvc/hvc_vio.c | 405 ++--- drivers/tty/hvc/hvsi_lib.c | 426 ++

[PATCH 2/5] powerpc/pseries: Factor HVSI header struct in packet definitions

2011-06-16 Thread Benjamin Herrenschmidt
Embed the struct hvsi_header in the various packet definitions rather than open coding it multiple times. Will help provide stronger type checking. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/include/asm/hvsi.h | 16 ++--- drivers/tty/hvc/hvsi.c | 66 +

[PATCH 1/5] powerpc/hvsi: Move HVSI protocol definitions to a header file

2011-06-16 Thread Benjamin Herrenschmidt
This moves various HVSI protocol definitions from the hvsi.c driver to a header file that can be used later on by a udbg implementation Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/include/asm/hvsi.h | 68 +++ drivers/tty/hvc/hvsi.c | 63

Re: [PATCH v2] kexec-tools: powerpc: Use the #address-cells information to parsememory/reg

2011-06-16 Thread Simon Horman
On Thu, Jun 16, 2011 at 04:15:13PM +0530, Suzuki K. Poulose wrote: > The format of memory/reg is based on the #address-cells,#size-cells. > Currently, > the kexec-tools doesn't use the above values in parsing the memory/reg values. > Hence the kexec cannot handle cases where #address-cells, #size-

Re: [PATCH][v3] Add support for RTC device: pt7c4338 in rtc-ds1307.c

2011-06-16 Thread Wolfram Sang
On Thu, Jun 16, 2011 at 10:38:11AM -0500, Timur Tabi wrote: > Priyanka Jain wrote: > > PT7C4338 chip is being manufactured by Pericom Technology Inc. > > It is a serial real-time clock which provides: > > 1)Low-power clock/calendar. > > 2)Programmable square-wave output. > > It has 56 bytes of nonv

[PATCH] powerpc/e500: fix breakage with fsl_rio_mcheck_exception

2011-06-16 Thread Scott Wood
The wrong MCSR bit was being used on e500mc. MCSR_BUS_RBERR only exists on e500v1/v2. Use MCSR_LD on e500mc, and remove all MCSR checking in fsl_rio_mcheck_exception as we now no longer call that function if the appropriate bit in MCSR is not set. If RIO support was enabled at compile-time, but

Re: [PATCH][v3] Add support for RTC device: pt7c4338 in rtc-ds1307.c

2011-06-16 Thread Timur Tabi
Priyanka Jain wrote: > PT7C4338 chip is being manufactured by Pericom Technology Inc. > It is a serial real-time clock which provides: > 1)Low-power clock/calendar. > 2)Programmable square-wave output. > It has 56 bytes of nonvolatile RAM. > Its register set is same as that of rtc device: DS1307. >

[PATCH] libata/sas: only set FROZEN flag if new EH is supported

2011-06-16 Thread Nishanth Aravamudan
On 16.06.2011 [08:28:39 -0500], Brian King wrote: > On 06/16/2011 02:51 AM, Tejun Heo wrote: > > On Wed, Jun 15, 2011 at 04:34:17PM -0700, Nishanth Aravamudan wrote: > >>> That looks like the right thing to do. For ipr's usage of > >>> libata, we don't have the concept of a port frozen state, so th

[RFC PATCH 6/7] powerpc: Update the default FIT image to use the correct load/boot addresses

2011-06-16 Thread Michal Simek
From: John Williams The default kernel_fdt.its hard codes zero load/start addresses, but this may no longer be true. As we copy the FIT tree descriptor, update these values based on the incoming ELF payload. Signed-off-by: John Williams --- arch/powerpc/boot/wrapper |6 +- 1 files cha

[RFC PATCH 3/7] powerpc: simpleboot get load address from ELF instead of assuming zero

2011-06-16 Thread Michal Simek
From: John Williams simpleboot current assumes that the physical load address is zero, even if the ELF payload has a non-zero paddr. This is a simple fix that avoids a custom pltform_ops handler in this case. Signed-off-by: John Williams --- arch/powerpc/boot/elf.h |1 + arch/powerpc

[RFC PATCH 7/7] powerpc: Support RELOCATABLE kernel for PPC44x

2011-06-16 Thread Michal Simek
Changes: - Find out address where kernel runs - Create the first 256MB TLB from online detected address Limitations: - Kernel must be aligned to 256MB Backport: - Changes in page.h are backported from newer kernel version mmu_mapin_ram function has to reflect offset in memory start. memstart_add

[RFC PATCH 5/7] powerpc: Consider a non-zero boot address when computing the bootwrapper start

2011-06-16 Thread Michal Simek
From: John Williams There's no fundamental reason the bootwrapper can't boot off a non-zero base, we just need to make sure we account for it in the link. Do this by adding the (up-aligned) kernel size to membase, and using that as the link address. Signed-off-by: John Williams --- arch/power

[RFC PATCH 4/7] powerpc: Let simpleboot function with non zero-based memory maps

2011-06-16 Thread Michal Simek
From: John Williams It is unnecessarily restrictive to fatal() if there is physical memory at a non-zero base address. Signed-off-by: John Williams --- arch/powerpc/boot/simpleboot.c |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/boot/simpleboot.c b/a

[RFC PATCH 2/7] powerpc: Permit non-zero physical start address for PPC44x

2011-06-16 Thread Michal Simek
From: John Williams The initial TLB entry is 256M, meaning that the physical base address must be 256M aligned. Signed-off-by: John Williams --- arch/powerpc/Kconfig |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index d00

[RFC PATCH 1/7] powerpc: ppc440 remove zero physical memory base assumption

2011-06-16 Thread Michal Simek
From: John Williams The macro PHYSICAL_START is available in this context, currently always with the value zero. However, that will change in a future patchset. For now, just remove the zero physical address start assumption in head_44x.S where we setup the initial TLB, and in the later MMU set

[RFC] Relocatable kernel for ppc44x

2011-06-16 Thread Michal Simek
Hi, John mentioned in his email that we have some patches. I am also sending them [patch 1/7-6/7]. It is support for non zero boot address for ppc44x. Patch 7/7 is relocatable support for ppc44x. All patches are against 2.6.31.13 but it shouldn't be big problem to port them to the latest and gre

Re: libata/ipr/powerpc: regression between 2.6.39-rc4 and 2.6.39-rc5

2011-06-16 Thread Brian King
On 06/16/2011 02:51 AM, Tejun Heo wrote: > On Wed, Jun 15, 2011 at 04:34:17PM -0700, Nishanth Aravamudan wrote: >>> That looks like the right thing to do. For ipr's usage of >>> libata, we don't have the concept of a port frozen state, so this flag >>> should really never get set. The alternate way

[PATCH v2] kexec-tools: powerpc: Use the #address-cells information to parsememory/reg

2011-06-16 Thread Suzuki K. Poulose
The problem was with the mail client. Also, mistyped the "To" field in the previous one. Resending. ChangeLog from V1: * Changed the interface for read_memory_region_limits to use 'int fd' * Use sizeof(variable) for read(, instead of sizeof(type). --- The format of memory/reg is

[PATCH v2] kexec-tools: powerpc: Use the #address-cells information to parsememory/reg

2011-06-16 Thread Suzuki K. Poulose
The format of memory/reg is based on the #address-cells,#size-cells. Currently, the kexec-tools doesn't use the above values in parsing the memory/reg values. Hence the kexec cannot handle cases where #address-cells, #size-cells are different, (for e.g, PPC440X ). This patch introduces a read_memo

Re: libata/ipr/powerpc: regression between 2.6.39-rc4 and 2.6.39-rc5

2011-06-16 Thread Tejun Heo
On Wed, Jun 15, 2011 at 04:34:17PM -0700, Nishanth Aravamudan wrote: > > That looks like the right thing to do. For ipr's usage of > > libata, we don't have the concept of a port frozen state, so this flag > > should really never get set. The alternate way to fix this would be to > > only set ATA_P

[21/85] seqlock: Dont smp_rmb in seqlock reader spin loop

2011-06-16 Thread Greg KH
2.6.33-longterm review patch. If anyone has any objections, please let us know. -- From: Milton Miller commit 5db1256a5131d3b133946fa02ac9770a784e6eb2 upstream. Move the smp_rmb after cpu_relax loop in read_seqlock and add ACCESS_ONCE to make sure the test and return are consi

[21/91] seqlock: Dont smp_rmb in seqlock reader spin loop

2011-06-16 Thread Greg KH
2.6.32-longterm review patch. If anyone has any objections, please let us know. -- From: Milton Miller commit 5db1256a5131d3b133946fa02ac9770a784e6eb2 upstream. Move the smp_rmb after cpu_relax loop in read_seqlock and add ACCESS_ONCE to make sure the test and return are consi