Re: [PATCH 0/6] 8xx MMU fixes

2009-10-09 Thread Joakim Tjernlund
Rex Feany rfe...@mrv.com wrote on 09/10/2009 02:15:27: Thus spake Joakim Tjernlund (joakim.tjernl...@transmode.se): So here we go again. This time I am fairly confindent I got most things correct :) Also manged to use even less instructions in the TLB Miss handlers. Scott and Rex,

Re: [PATCH 2/6] 8xx: Update TLB asm so it behaves as linux mm expects.

2009-10-09 Thread Joakim Tjernlund
Benjamin Herrenschmidt b...@kernel.crashing.org wrote on 09/10/2009 02:53:31: Subject: Re: [PATCH 2/6] 8xx: Update TLB asm so it behaves as linux mm expects. On Fri, 2009-10-09 at 00:44 +0200, Joakim Tjernlund wrote: accessed == 1 and present = 0 is impossible, right? So basically just

Re: [PATCH/RFC] powerpc: Fix decrementer setup on 1GHz boards

2009-10-09 Thread Benjamin Herrenschmidt
On Fri, 2009-10-09 at 07:28 +0200, Stefan Roese wrote: So how could we solve this issue now? Apply my current patch? Any other suggestions? Well, we probably need your current patch, but I'm not 100% it's enough. We need to check for example that the vDSO code for 32-bit isn't going to go

Re: [PATCH 2/6] 8xx: Update TLB asm so it behaves as linux mm expects.

2009-10-09 Thread Benjamin Herrenschmidt
On Fri, 2009-10-09 at 08:16 +0200, Joakim Tjernlund wrote: Which will be fixed once I activate: #if 0 /* Not yet */ /* Honour kernel RO, User NA */ andi. r11, r10, _PAGE_USER | _PAGE_RW bne-cr0, 5f ori r10,r10, 0x200 /* Extended encoding, bit 22 */ #endif

Re: [RFC] misc/at24: add experimental OF support for the generic eeprom driver

2009-10-09 Thread Grant Likely
On Thu, Oct 8, 2009 at 4:20 PM, Anton Vorontsov avoront...@ru.mvista.com wrote: On Thu, Oct 08, 2009 at 09:48:50AM -0600, Grant Likely wrote: But the focus is still on creating pdata.  If a translator gets too big, then sure, split it into a separate file.  Until then, there I see no good

Re: [RFC PATCH 05/12] of: add common header for flattened device tree representation

2009-10-09 Thread David Gibson
On Tue, Oct 06, 2009 at 10:30:59PM -0600, Grant Likely wrote: Add a common header file for working with the flattened device tree data structure and merge the shared data tags used by Microblaze and PowerPC Signed-off-by: Grant Likely grant.lik...@secretlab.ca ---

Re: [PATCH 0/6] 8xx MMU fixes

2009-10-09 Thread Rex Feany
Thus spake Joakim Tjernlund (joakim.tjernl...@transmode.se): Rex Feany rfe...@mrv.com wrote on 09/10/2009 02:15:27: open(/proc/mounts, O_RDONLY) = 3 fstat64(0x3, 0x7fe7e2a8)= 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =

Re: [RFC PATCH 10/12] of: merge of_*_flat_dt*() functions

2009-10-09 Thread Grant Likely
On Fri, Oct 9, 2009 at 12:36 AM, David Gibson da...@gibson.dropbear.id.au wrote: On Tue, Oct 06, 2009 at 10:32:02PM -0600, Grant Likely wrote: Merge common flattened device tree code between Microblaze and PowerPC And I guess another question is do we want to replace these with a libfdt based

Re: [RFC PATCH 05/12] of: add common header for flattened device tree representation

2009-10-09 Thread Grant Likely
On Fri, Oct 9, 2009 at 12:35 AM, David Gibson da...@gibson.dropbear.id.au wrote: On Tue, Oct 06, 2009 at 10:30:59PM -0600, Grant Likely wrote: Add a common header file for working with the flattened device tree data structure and merge the shared data tags used by Microblaze and PowerPC

RE: Regression detecting memory size on PPC440EPx

2009-10-09 Thread Benjamin Herrenschmidt
On Mon, 2009-10-05 at 11:49 -0400, Mike Nuss wrote: PS: Is top posting customary on this list? I'm used to bottom posting; let me know if I'm doing it wrong. No you are right but if we were going to have a go at everybody who does top-posting, we would never finish :-) Cheers, Ben.

[PATCH 0/1] powerpc/40x: Add new PPC440EPx based board HCU5 of Netstal Maschinen

2009-10-09 Thread Niklaus Giger
Cc: niklaus.gi...@netstal.com, jwbo...@linux.vnet.ibm.com, mpor...@kernel.crashing.org Patch ist against the next branch of git://git.kernel.org/pub/scm/linux/kernel/git/jwboyer/powerpc-4xx.git This is my second board to go into the kernel after the 40x/HCU4. The HCU5 board is based on

[PATCH 1/1] powerpc/40x: Add new PPC440EPx based board HCU5 of Netstal Maschinen

2009-10-09 Thread Niklaus Giger
Adds support for a HCU5 PPC405EPx based board from Netstal Maschinen AG. Signed-off-by: Niklaus Giger niklaus.gi...@member.fsf.org --- arch/powerpc/boot/dts/hcu5.dts | 254 +++ arch/powerpc/configs/44x/hcu5_defconfig | 1166 +++

[PATCH 2/8] bitmap: Introduce bitmap_set, bitmap_clear, bitmap_find_next_zero_area

2009-10-09 Thread Akinobu Mita
This introduces new bitmap functions: bitmap_set: Set specified bit area bitmap_clear: Clear specified bit area bitmap_find_next_zero_area: Find free bit area These are stolen from iommu helper. I changed the return value of bitmap_find_next_zero_area if there is no zero area.

[PATCH 3/8] iommu-helper: Use bitmap library

2009-10-09 Thread Akinobu Mita
Use bitmap library and kill some unused iommu helper functions. Cc: David S. Miller da...@davemloft.net Cc: sparcli...@vger.kernel.org Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Paul Mackerras pau...@samba.org Cc: linuxppc-...@ozlabs.org Cc: Thomas Gleixner t...@linutronix.de Cc:

[PATCH v4 0/4] pseries: Add cede support for cpu-offline

2009-10-09 Thread Gautham R Shenoy
Hi, This is version 4 of patch series that provides a framework to choose the state a pseries CPU must be put to when it is offlined. Previous versions can be found here: Version 3: http://lkml.org/lkml/2009/9/15/164 Version 2: http://lkml.org/lkml/2009/8/28/102 Version 1:

[PATCH v4 2/4] pSeries: Add hooks to put the CPU into an appropriate offline state

2009-10-09 Thread Gautham R Shenoy
When a CPU is offlined on POWER currently, we call rtas_stop_self() and hand the CPU back to the resource pool. This path is used for DLPAR which will cause a change in the LPAR configuration which will be visible outside. This patch changes the default state a CPU is put into when it is

[PATCH v4 3/4] pseries: Add code to online/offline CPUs of a DLPAR node.

2009-10-09 Thread Gautham R Shenoy
Currently the cpu-allocation/deallocation on pSeries is a two step process from the Userspace. - Set the indicators and update the device tree by writing to the sysfs tunable probe during allocation and release during deallocation. - Online / Offline the CPUs of the

[PATCH v4 4/4] pseries: Serialize cpu hotplug operations during deactivate Vs deallocate

2009-10-09 Thread Gautham R Shenoy
Currently the cpu-allocation/deallocation process comprises of two steps: - Set the indicators and to update the device tree with DLPAR node information. - Online/offline the allocated/deallocated CPU. This is achieved by writing to the sysfs tunables probe during allocation and release during

Re: [v8 PATCH 2/8]: cpuidle: implement a list based approach to register a set of idle routines.

2009-10-09 Thread Arun R Bharadwaj
* Peter Zijlstra a.p.zijls...@chello.nl [2009-10-08 14:25:37]: On Thu, 2009-10-08 at 17:31 +0530, Arun R Bharadwaj wrote: Uhm, no, it would mean ACPI putting its idle routines on the same level as all others. Putting them all on the same level would mean, we need an

Re: linux booting fails on ppc440x5 with SRAM

2009-10-09 Thread Vineeth _
We ported the uboot Memory test and tested the 15MB ram and it was successful.interestingly we have only 16MB SRAM in our board.We used 1 MB of RAM for the bootloader to execute and tested the other 15 MB. i couldnt see any reason why the DEAR, MSR value become identical. checked the objcopy of my

[RFC] scripts/get_maintainer: add emails based on keywords in the patch

2009-10-09 Thread Wolfram Sang
Make get_maintainer.pl scan the modifying lines of a patch for a list of keywords and add an associated email if found. The first user is the devicetree-discuss mailing list which should always be cc'ed if a device tree property is inserted/removed (keyword 'of_get_property'). This patch is the

Re: [PATCH 0/6] 8xx MMU fixes

2009-10-09 Thread Joakim Tjernlund
Rex Feany rfe...@mrv.com wrote on 09/10/2009 08:46:49: Thus spake Joakim Tjernlund (joakim.tjernl...@transmode.se): Rex Feany rfe...@mrv.com wrote on 09/10/2009 02:15:27: open(/proc/mounts, O_RDONLY) = 3 fstat64(0x3, 0x7fe7e2a8)= 0 mmap(NULL, 4096,

Re: [PATCH 1/2][v2] mm: add notifier in pageblock isolation for balloon drivers

2009-10-09 Thread Mel Gorman
On Fri, Oct 02, 2009 at 01:44:58PM -0500, Robert Jennings wrote: Memory balloon drivers can allocate a large amount of memory which is not movable but could be freed to accomodate memory hotplug remove. Prior to calling the memory hotplug notifier chain the memory in the pageblock is

Re: [RFC] scripts/get_maintainer: add emails based on keywords in the patch

2009-10-09 Thread Joe Perches
On Fri, 2009-10-09 at 12:32 +0200, Wolfram Sang wrote: +my %keywords_to_mail = ( + 'of_get_property' = 'L: devicetree-disc...@lists.ozlabs.org', maybe: '\bof_get_property\b' + # Check the lines which a patch modifies for keywords; add mail if found. + } elsif

Re: linux booting fails on ppc440x5 with SRAM

2009-10-09 Thread Wolfgang Denk
Dear Vineeth _, In message a9b543570910090320t1444f8f1qf4c8ab7dbbef6...@mail.gmail.com you wrote: We ported the uboot Memory test and tested the 15MB ram and it was successful.interestingly we have only 16MB SRAM in our board.We used 1 Such a memory test means nothing. The only thing you can

Re: [PATCH][v2] powerpc/4xx: Add 16K FIFO size DTS entries on supported platforms

2009-10-09 Thread Josh Boyer
On Fri, Oct 09, 2009 at 01:15:54PM +1100, Benjamin Herrenschmidt wrote: On Thu, 2009-10-08 at 11:33 -0500, Dave Mitchell wrote: Adding tx/rx-fifo-size-gige to EMAC fields for evaluation kit DTS files where appropriate. Signed-off-by: Dave Mitchell dmitch...@appliedmicro.com Acked-by: Prodyut

[RESEND][PATCH]Ftrace - fix function_graph tracer OOPS

2009-10-09 Thread Sachin Sant
This time sending the patch as inline and not as an attachment. Enabling function graph causes oops due to usage of LOAD_REG_IMMEDIATE(). As explained by Ben the usage of LOAD_REG_IMMEDIATE generates relocs that are not supported when CONFIG_RELOCATABLE is set. Switch to LOAD_REG_ADDR().

Re: [PATCH 0/6] 8xx MMU fixes

2009-10-09 Thread Joakim Tjernlund
Rex Feany rfe...@mrv.com wrote on 09/10/2009 08:46:49: Thus spake Joakim Tjernlund (joakim.tjernl...@transmode.se): Rex Feany rfe...@mrv.com wrote on 09/10/2009 02:15:27: open(/proc/mounts, O_RDONLY) = 3 fstat64(0x3, 0x7fe7e2a8)= 0 mmap(NULL, 4096,

Re: ppc_md.SMI replacement for 2.6

2009-10-09 Thread Arnd Bergmann
On Friday 09 October 2009, Donald Kayser wrote: On further comparison, this section of code has been added by the vendor that actually ported linux 2.4 to this PPC HPPB target. So, if anyone would like to lend a thought towards System Managment Exceptions on PPC, please cc me at

Re: [RFC] misc/at24: add experimental OF support for the generic eeprom driver

2009-10-09 Thread Nate Case
On Thu, 2009-10-08 at 23:40 -0600, Grant Likely wrote: For your future reference, patches that look at the device tree should also cc: devicetree-disc...@lists.ozlabs.org so that new bindings can be reviewed and common mistakes can be avoided. It is expected that new device tree bindings are

Re: [RFC] misc/at24: add experimental OF support for the generic eeprom driver

2009-10-09 Thread Nate Case
On Fri, 2009-10-09 at 07:14 +0200, Wolfram Sang wrote: And while doing this and figuring the pro/cons of those methods, I stumbled over this commit: gpio: pca953x: Get platform_data from OpenFirmware (1965d30356c1c65660ba3330927671cfe81acdd5) Aside from any issues you have

Support for S29JL064 in MPC8272ADS?

2009-10-09 Thread Roberto Guerra
Hello, My uboot can read my flash chip, finding the uImage and the initramfs, and booting the kernel fine. However, I'd like the Linux kernel to read my flash chip so that it can update files in it. My flash chip is the Spansion S29JL064H (AMD), 16 bit wide, 64 Mbit. The chip is mapped from

Re: [PATCH 1/2][v2] mm: add notifier in pageblock isolation for balloon drivers

2009-10-09 Thread Robert Jennings
* KAMEZAWA Hiroyuki (kamezawa.hir...@jp.fujitsu.com) wrote: On Fri, 2 Oct 2009 13:44:58 -0500 Robert Jennings r...@linux.vnet.ibm.com wrote: Memory balloon drivers can allocate a large amount of memory which is not movable but could be freed to accomodate memory hotplug remove. Prior

Re: [PATCH 1/2][v2] mm: add notifier in pageblock isolation for balloon drivers

2009-10-09 Thread Robert Jennings
* Mel Gorman (m...@csn.ul.ie) wrote: On Fri, Oct 02, 2009 at 01:44:58PM -0500, Robert Jennings wrote: Memory balloon drivers can allocate a large amount of memory which is not movable but could be freed to accomodate memory hotplug remove. Prior to calling the memory hotplug notifier

Re: [RFC] scripts/get_maintainer: add emails based on keywords in the patch

2009-10-09 Thread Grant Likely
On Fri, Oct 9, 2009 at 4:32 AM, Wolfram Sang w.s...@pengutronix.de wrote: Make get_maintainer.pl scan the modifying lines of a patch for a list of keywords and add an associated email if found. The first user is the devicetree-discuss mailing list which should always be cc'ed if a device tree

Re: [PATCH 10/16] percpu: make percpu symbols in powerpc unique

2009-10-09 Thread Arnd Bergmann
On Wednesday 07 October 2009, Tejun Heo wrote: This patch updates percpu related symbols in powerpc such that percpu symbols are unique and don't clash with local symbols. This serves two purposes of decreasing the possibility of global percpu symbol collision and allowing dropping per_cpu__

Re: ppc_md.SMI replacement for 2.6

2009-10-09 Thread Donald Kayser
I have more information on this PPC HPPB target. I compared the EXCEPTION macro between 2.4 and 2.6 with respect to SMI Exceptions. I noticed that in the 2.4 kernel a macro named STD_EXCEPTION was used and in the 2.6 kernel their is a new EXCEPTION macro structure. In the 2.6 kernel, it is

Re: [RFC] misc/at24: add experimental OF support for the generic eeprom driver

2009-10-09 Thread Grant Likely
On Fri, Oct 9, 2009 at 8:01 AM, Nate Case nc...@xes-inc.com wrote: On Thu, 2009-10-08 at 23:40 -0600, Grant Likely wrote: For your future reference, patches that look at the device tree should also cc: devicetree-disc...@lists.ozlabs.org so that new bindings can be reviewed and common mistakes

Re: [RFC] misc/at24: add experimental OF support for the generic eeprom driver

2009-10-09 Thread Wolfram Sang
Aside from any issues you have with the properties themselves, what's your take on this approach? Well, my approach for AT24 looked very similar to your approach. In fact, even the motivation was the same as yours :) Well, the outcome of this is the current thread and no definite solution yet.

Re: [RFC] misc/at24: add experimental OF support for the generic eeprom driver

2009-10-09 Thread Grant Likely
On Fri, Oct 9, 2009 at 7:43 AM, Nate Case nc...@xes-inc.com wrote: On Fri, 2009-10-09 at 07:14 +0200, Wolfram Sang wrote: And while doing this and figuring the pro/cons of those methods, I stumbled over this commit:         gpio: pca953x: Get platform_data from OpenFirmware        

Re: [RFC] misc/at24: add experimental OF support for the generic eeprom driver

2009-10-09 Thread Wolfram Sang
I can submit that soon, but it probably makes sense for Wolfram to voice whatever his concerns were about questionable properties before I document what's there. Please don't feel offended. The things I noticed are: a) no documentation b) 'polarity' is a direct mapping to the register

Re: Support for S29JL064 in MPC8272ADS?

2009-10-09 Thread Scott Wood
On Fri, Oct 09, 2009 at 10:14:56AM -0400, Roberto Guerra wrote: Hello, My uboot can read my flash chip, finding the uImage and the initramfs, and booting the kernel fine. However, I'd like the Linux kernel to read my flash chip so that it can update files in it. Have you described your flash

Re: Support for S29JL064 in MPC8272ADS?

2009-10-09 Thread Roberto Guerra
No. I did not. My FDT was simplified from the stock MPC8272ADS: = fdt list / { model = pq2fads; compatible = fsl,pq2fads; #address-cells = 0x0001; #size-cells = 0x0001; cpus { }; memory { }; s...@f000 { };

Re: Support for S29JL064 in MPC8272ADS?

2009-10-09 Thread Scott Wood
On Fri, Oct 09, 2009 at 01:59:58PM -0400, Roberto Guerra wrote: No. I did not. My FDT was simplified from the stock MPC8272ADS: = fdt list / { model = pq2fads; compatible = fsl,pq2fads; #address-cells = 0x0001; #size-cells = 0x0001; cpus {

Linux net-2.6 build error for PPC

2009-10-09 Thread Ron Mercer
I recently grabbed the latest net-2.6 kernel for a powerpc test box and got this compile error. CC arch/powerpc/kernel/cputable.o CC arch/powerpc/kernel/ptrace.o CC arch/powerpc/kernel/syscalls.o CC arch/powerpc/kernel/irq.o CC

Re: [RFC] scripts/get_maintainer: add emails based on keywords in the patch

2009-10-09 Thread Joe Perches
On Fri, 2009-10-09 at 04:23 -0700, Joe Perches wrote: If this facility is desired by many others, it might be better to have a separate file of 'regex generates email' read at initialization. Perhaps it's better to use the existing MAINTAINERS file and extend it with a new K: for keyword

Re: linux-next: tree build failure

2009-10-09 Thread Hollis Blanchard
Rusty's version of BUILD_BUG_ON() does indeed fix the build break, and also exposes the bug in kvmppc_account_exit_stat(). So to recap: original: built but didn't work Jan's: doesn't build Rusty's: builds and works Where do you want to go from here? -- Hollis Blanchard IBM Linux Technology

[PATCH] powerpc/40x: Cleanups for HCU4 board

2009-10-09 Thread Niklaus Giger
- hcu4.dts: Added definitions for 2 CAN (Intel 82527) - hcu4.c: Some code for CPLD (special HW clock) and 2 CAN (Intel 82527) Signed-off-by: Niklaus Giger niklaus.gi...@member.fsf.org --- arch/powerpc/boot/dts/hcu4.dts| 193 ++---

Re: [PATCH 1/2][v2] mm: add notifier in pageblock isolation for balloon drivers

2009-10-09 Thread Robert Jennings
* Andrew Morton (a...@linux-foundation.org) wrote: On Fri, 2 Oct 2009 13:44:58 -0500 Robert Jennings r...@linux.vnet.ibm.com wrote: Memory balloon drivers can allocate a large amount of memory which is not movable but could be freed to accomodate memory hotplug remove. Prior to

[PATCH 1/2][v3] mm: add notifier in pageblock isolation for balloon drivers

2009-10-09 Thread Robert Jennings
Memory balloon drivers can allocate a large amount of memory which is not movable but could be freed to accomodate memory hotplug remove. Prior to calling the memory hotplug notifier chain the memory in the pageblock is isolated. Currently, if the migrate type is not MIGRATE_MOVABLE the

[PATCH 2/2][v3] powerpc: Make the CMM memory hotplug aware

2009-10-09 Thread Robert Jennings
The Collaborative Memory Manager (CMM) module allocates individual pages over time that are not migratable. On a long running system this can severely impact the ability to find enough pages to support a hotplug memory remove operation. This patch adds a memory isolation notifier and a memory

Re: [PATCH 1/2][v2] mm: add notifier in pageblock isolation for balloon drivers

2009-10-09 Thread Mel Gorman
On Fri, Oct 09, 2009 at 03:23:04PM -0500, Robert Jennings wrote: * Andrew Morton (a...@linux-foundation.org) wrote: On Fri, 2 Oct 2009 13:44:58 -0500 Robert Jennings r...@linux.vnet.ibm.com wrote: Memory balloon drivers can allocate a large amount of memory which is not movable but

Re: Linux net-2.6 build error for PPC

2009-10-09 Thread Kumar Gala
On Oct 9, 2009, at 12:49 PM, Ron Mercer wrote: I recently grabbed the latest net-2.6 kernel for a powerpc test box and got this compile error. CC arch/powerpc/kernel/cputable.o CC arch/powerpc/kernel/ptrace.o CC arch/powerpc/kernel/syscalls.o CC

Re: [PATCH][v2] powerpc/4xx: Add 16K FIFO size DTS entries on supported platforms

2009-10-09 Thread Benjamin Herrenschmidt
On Fri, 2009-10-09 at 07:50 -0400, Josh Boyer wrote: On Fri, Oct 09, 2009 at 01:15:54PM +1100, Benjamin Herrenschmidt wrote: On Thu, 2009-10-08 at 11:33 -0500, Dave Mitchell wrote: Adding tx/rx-fifo-size-gige to EMAC fields for evaluation kit DTS files where appropriate. Signed-off-by:

[PATCH] powerpc/pmac: Fix issues with sleep on some powerbooks

2009-10-09 Thread Benjamin Herrenschmidt
Since the change of how interrupts are disabled during suspend, certain PowerBook models started exhibiting various issues during suspend or resume from sleep. I finally tracked it down to the code that runs various platform functions (kind of little scripts extracted from the device-tree), which

Re: [PATCH 2/8] bitmap: Introduce bitmap_set, bitmap_clear, bitmap_find_next_zero_area

2009-10-09 Thread Andrew Morton
On Fri, 9 Oct 2009 17:29:15 +0900 Akinobu Mita akinobu.m...@gmail.com wrote: This introduces new bitmap functions: bitmap_set: Set specified bit area bitmap_clear: Clear specified bit area bitmap_find_next_zero_area: Find free bit area These are stolen from iommu helper. I changed