Re: [PATCH v2] Fix fake numa on ppc

2009-09-01 Thread David Rientjes
On Wed, 2 Sep 2009, Ankita Garg wrote: > Hi, > > Below is a patch to fix a couple of issues with fake numa node creation > on ppc: > > 1) Presently, fake nodes could be created such that real numa node > boundaries are not respected. So a node could have lmbs that belong to > different real node

Re: [PATCH 1/1] powerpc: Fix to handle slb resize across migration

2009-09-01 Thread Benjamin Herrenschmidt
On Fri, 2009-08-28 at 17:06 -0500, Brian King wrote: > The SLB can change sizes across a live migration, which was not > being handled, resulting in possible machine crashes during > migration if migrating to a machine which has a smaller max SLB > size than the source machine. Fix this by first re

Re: [PATCH] Fix fake numa on ppc

2009-09-01 Thread David Rientjes
On Wed, 2 Sep 2009, Benjamin Herrenschmidt wrote: > Since I'm pretty sure there could be CPU less nodes just like there > could be memory-less nodes, it would be good if fake numa could > simulate them too :-) > You don't want to simulate cpu less nodes since they do have affinity to ranges of

[PATCH v2] Fix fake numa on ppc

2009-09-01 Thread Ankita Garg
Hi, Below is a patch to fix a couple of issues with fake numa node creation on ppc: 1) Presently, fake nodes could be created such that real numa node boundaries are not respected. So a node could have lmbs that belong to different real nodes. 2) The cpu association is broken. On a JS22 blade fo

Re: [PATCH] Fix fake numa on ppc

2009-09-01 Thread David Rientjes
On Wed, 2 Sep 2009, Ankita Garg wrote: > > > With the patch, > > > > > > # cat /proc/cmdline > > > root=/dev/sda6 numa=fake=2G,4G,,6G,8G,10G,12G,14G,16G > > > # cat /sys/devices/system/node/node0/cpulist > > > 0-3 > > > # cat /sys/devices/system/node/node1/cpulist > > > > > > > Oh! interesting

Re: [PATCH] powerpc/fsl-booke: Use HW PTE format if CONFIG_PTE_64BIT

2009-09-01 Thread Kumar Gala
On Sep 2, 2009, at 12:48 AM, Benjamin Herrenschmidt wrote: On Tue, 2009-09-01 at 20:48 -0500, Kumar Gala wrote: Switch to using the Power ISA defined PTE format when we have a 64- bit PTE. This makes the code handling between fsl-booke and book3e-64 similiar for TLB faults. Additionally thi

Re: [PATCH] Fix fake numa on ppc

2009-09-01 Thread Benjamin Herrenschmidt
On Wed, 2009-09-02 at 11:06 +0530, Ankita Garg wrote: > > Oh! interesting.. cpuless nodes :) I think we need to fix this in the > > longer run and distribute cpus between fake numa nodes of a real node > > using some acceptable heuristic. > > > > True. Presently this is broken on both x86 and ppc

Re: [PATCH] Fix fake numa on ppc

2009-09-01 Thread Benjamin Herrenschmidt
On Tue, 2009-09-01 at 19:57 +0530, Balbir Singh wrote: > > > > Heres the updated patch: > > > > Signed-off-by: Ankita Garg The thread is too messy. Please Ankita can you re-submit in proper form (ie. subject, cset, signed-off & patch) please ? In general, don't mix reply to comments and new

Re: [PATCH] powerpc/fsl-booke: Use HW PTE format if CONFIG_PTE_64BIT

2009-09-01 Thread Benjamin Herrenschmidt
On Tue, 2009-09-01 at 20:48 -0500, Kumar Gala wrote: > Switch to using the Power ISA defined PTE format when we have a 64-bit > PTE. This makes the code handling between fsl-booke and book3e-64 > similiar for TLB faults. > > Additionally this lets use take advantage of the page size encodings and

Re: [v4 PATCH 1/5]: cpuidle: Cleanup drivers/cpuidle/cpuidle.c

2009-09-01 Thread Peter Zijlstra
On Tue, 2009-09-01 at 17:08 +0530, Arun R Bharadwaj wrote: > * Arun R Bharadwaj [2009-09-01 17:07:04]: > > Cleanup drivers/cpuidle/cpuidle.c > > Cpuidle maintains a pm_idle_old void pointer because, currently in x86 > there is no clean way of registering and unregistering a idle function. Right

Re: [v4 PATCH 1/5]: cpuidle: Cleanup drivers/cpuidle/cpuidle.c

2009-09-01 Thread Arun R Bharadwaj
* Balbir Singh [2009-09-01 22:58:25]: > * Arun R B [2009-09-01 17:08:40]: > > > * Arun R Bharadwaj [2009-09-01 17:07:04]: > > > > Cleanup drivers/cpuidle/cpuidle.c > > > > Cpuidle maintains a pm_idle_old void pointer because, currently in x86 > > there is no clean way of registering and unre

Re: [PATCH v2 0/2] cpu: pseries: Offline state framework.

2009-09-01 Thread Peter Zijlstra
On Fri, 2009-08-28 at 15:30 +0530, Gautham R Shenoy wrote: > Hi, > > This is the version 2 of the patch series to provide a cpu-offline framework > that enables the administrators choose the state the offline CPU must be put > into when multiple such states are exposed by the underlying architectu

Re: [PATCH] Fix fake numa on ppc

2009-09-01 Thread Ankita Garg
Hi Balbir, On Tue, Sep 01, 2009 at 07:57:29PM +0530, Balbir Singh wrote: > * Ankita Garg [2009-09-01 14:54:07]: > > > Hi Balbir, > > > > On Tue, Sep 01, 2009 at 11:27:53AM +0530, Balbir Singh wrote: > > > * Ankita Garg [2009-09-01 10:33:16]: > > > > > > > Hello, > > > > > > > > Below is a pa

Re: [v4 PATCH 1/5]: cpuidle: Cleanup drivers/cpuidle/cpuidle.c

2009-09-01 Thread Arun R Bharadwaj
* Balbir Singh [2009-09-01 22:58:25]: > * Arun R B [2009-09-01 17:08:40]: > > > * Arun R Bharadwaj [2009-09-01 17:07:04]: > > > > Cleanup drivers/cpuidle/cpuidle.c > > > > Cpuidle maintains a pm_idle_old void pointer because, currently in x86 > > there is no clean way of registering and unre

Re: [PATCH v2 1/2] cpu: Offline state Framework.

2009-09-01 Thread Andrew Morton
On Fri, 28 Aug 2009 15:30:16 +0530 Gautham R Shenoy wrote: > Provide an interface by which the system administrator can decide what state > should the CPU go to when it is offlined. > > To query the hotplug states, on needs to perform a read on the sysfs tunable: > /sys/devices/system/cpu/

Re: [v4 PATCH 1/5]: cpuidle: Cleanup drivers/cpuidle/cpuidle.c

2009-09-01 Thread Balbir Singh
* Arun R B [2009-09-01 17:08:40]: > * Arun R Bharadwaj [2009-09-01 17:07:04]: > > Cleanup drivers/cpuidle/cpuidle.c > > Cpuidle maintains a pm_idle_old void pointer because, currently in x86 > there is no clean way of registering and unregistering a idle function. > > So remove pm_idle_old and

[PATCH] powerpc/fsl-booke: Use HW PTE format if CONFIG_PTE_64BIT

2009-09-01 Thread Kumar Gala
Switch to using the Power ISA defined PTE format when we have a 64-bit PTE. This makes the code handling between fsl-booke and book3e-64 similiar for TLB faults. Additionally this lets use take advantage of the page size encodings and full permissions that the HW PTE defines. Also defined _PMD_P

Re: Question about linux boot procedure (head_64.S)

2009-09-01 Thread Lee HongWoo
On Wed, Sep 2, 2009 at 2:32 AM, Geoff Levand wrote: > On 09/01/2009 03:58 AM, Lee HongWoo wrote: > > __start (in head_64.S) > > ---> __start_initialization_multiplatform (in head_64.S) > > ---> __boot_from_prom (in head_64.S) > >---> prom_init ( in prom_init.c) > > ---> __s

[PATCH] powerpc/book3e: Add missing page sizes

2009-09-01 Thread Kumar Gala
Add defines for the other page sizes. Even if HW doesn't support them we made them use them for hugetlbfs support. Signed-off-by: Kumar Gala --- arch/powerpc/include/asm/pte-book3e.h | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/include/asm/pte-

Re: Question about linux boot procedure (head_64.S)

2009-09-01 Thread Geoff Levand
On 09/01/2009 05:25 PM, Lee HongWoo wrote: > On Wed, Sep 2, 2009 at 2:32 AM, Geoff Levand > wrote: >> In the general case, __start is the entry point of the kernel. >> It is where the bootloader or boot wrapper program jumps to >> when it transfers control to the kernel. > > I believe __start is

Re: [PATCH] [V3] net: add Xilinx emac lite device driver

2009-09-01 Thread David Miller
From: Michal Simek Date: Mon, 31 Aug 2009 15:18:44 +0200 > I see that John's patch has wrong file permission > -rwxr-xr-xxilinx_emaclite.c ... > should be 644. > > Please fix it in your repo. Done, thanks! ___ Linuxppc-dev mailing list Linuxppc-d

Re: Question about linux boot procedure (head_64.S)

2009-09-01 Thread Michael Ellerman
On Tue, 2009-09-01 at 19:58 +0900, Lee HongWoo wrote: > Hi ~ > > This is a boot flow of linux kernel under the arch/powerpc/kernel and > I'm using pasemi cpu. > > __start (in head_64.S) > ---> __start_initialization_multiplatform (in head_64.S) > ---> __boot_from_prom (in head_64.S) >

[RFC][POWERPC] WDT: added support for the WDT Chain driver.

2009-09-01 Thread Vitaly Bordug
From: Heiko Schocher [POWERPC] WDT: added support for the WDT Chain driver. This new driver implements a character device with major number 10 and minor number 130. It is a software abstraction of the hardware watchdog with two different APIs. While the driver periodically tri

Re: [PATCH] IB/ehca: Fix CQE flags reporting

2009-09-01 Thread Roland Dreier
applied, thanks ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: Question about linux boot procedure (head_64.S)

2009-09-01 Thread Geoff Levand
On 09/01/2009 03:58 AM, Lee HongWoo wrote: > __start (in head_64.S) > ---> __start_initialization_multiplatform (in head_64.S) > ---> __boot_from_prom (in head_64.S) >---> prom_init ( in prom_init.c) > ---> __start ??? > > And I don't understand where __start is called, bec

Question about linux boot procedure (head_64.S)

2009-09-01 Thread Lee HongWoo
Hi ~ This is a boot flow of linux kernel under the arch/powerpc/kernel and I'm using pasemi cpu. __start (in head_64.S) ---> __start_initialization_multiplatform (in head_64.S) ---> __boot_from_prom (in head_64.S) ---> prom_init ( in prom_init.c) ---> __start ??? And I don

Question about linux boot procedure (head_64.S)

2009-09-01 Thread Lee HongWoo
Hi ~ This is a boot flow of linux kernel under the arch/powerpc/kernel and I'm using pasemi cpu. __start (in head_64.S) ---> __start_initialization_multiplatform (in head_64.S) ---> __boot_from_prom (in head_64.S) ---> prom_init ( in prom_init.c) ---> __start ??? And I don

Re: [PATCH] Fix fake numa on ppc

2009-09-01 Thread Balbir Singh
* Ankita Garg [2009-09-01 14:54:07]: > Hi Balbir, > > On Tue, Sep 01, 2009 at 11:27:53AM +0530, Balbir Singh wrote: > > * Ankita Garg [2009-09-01 10:33:16]: > > > > > Hello, > > > > > > Below is a patch to fix a couple of issues with fake numa node creation > > > on ppc: > > > > > > 1) Prese

[PATCH] IB/ehca: Fix CQE flags reporting

2009-09-01 Thread Joachim Fenkes
Was reporting CQE flags in the wrong bit positions, causing consumers to miss incoming immediate data. Signed-off-by: Joachim Fenkes --- Please review and queue for 2.6.32 if you think it's okay. Thanks! Joachim drivers/infiniband/hw/ehca/ehca_reqs.c |6 +- 1 files changed, 5 inserti

[v4 PATCH 5/5]: pSeries: Implement pSeries processor idle module.

2009-09-01 Thread Arun R Bharadwaj
* Arun R Bharadwaj [2009-09-01 17:07:04]: This patch creates arch/powerpc/platforms/pseries/processor_idle.c, which implements the cpuidle infrastructure for pseries. It implements a pseries_cpuidle_loop() which would be the main idle loop called from cpu_idle(). It makes decision of entering eit

[v4 PATCH 4/5]: cpuidle: Add Kconfig entry to enable cpuidle for POWER.

2009-09-01 Thread Arun R Bharadwaj
* Arun R Bharadwaj [2009-09-01 17:07:04]: This patch enables the cpuidle option in Kconfig for pSeries. Currently cpuidle infrastructure is enabled only for x86 and ARM. This code is almost completely borrowed from x86 to enable cpuidle for pSeries. Signed-off-by: Arun R Bharadwaj --- arch/po

[v4 PATCH 3/5]: pSeries: Incorporate registering of idle loop for pSeries.

2009-09-01 Thread Arun R Bharadwaj
* Arun R Bharadwaj [2009-09-01 17:07:04]: Platform needs to register its idle function via register_idle_function() in order to provide a clean way of handling the ppc_md.power_save Signed-off-by: Arun R Bharadwaj --- arch/powerpc/platforms/pseries/setup.c | 13 +++-- 1 file changed,

[v4 PATCH 2/5]: cpuidle: Implement routines to register and unregister idle function.

2009-09-01 Thread Arun R Bharadwaj
* Arun R Bharadwaj [2009-09-01 17:07:04]: Implement a LIFO based approach for registering arch dependent idle routines. This is a prototype for pseries, needs to be extended for other platforms. Signed-off-by: Arun R Bharadwaj --- arch/powerpc/kernel/idle.c |5 + drivers/cpuidle/cpuid

[v4 PATCH 1/5]: cpuidle: Cleanup drivers/cpuidle/cpuidle.c

2009-09-01 Thread Arun R Bharadwaj
* Arun R Bharadwaj [2009-09-01 17:07:04]: Cleanup drivers/cpuidle/cpuidle.c Cpuidle maintains a pm_idle_old void pointer because, currently in x86 there is no clean way of registering and unregistering a idle function. So remove pm_idle_old and leave the responsibility of maintaining the list o

[v4 PATCH 0/5]: cpuidle/POWER (REDISIGN): Introducing cpuidle to POWER.

2009-09-01 Thread Arun R Bharadwaj
Hi, This is an RFC, not for inclusion ** This patchset introduces cpuidle infrastructure to POWER, prototyping for pseries and currently in the process of porting to x86 and hence will *not* build on x86/other POWER platforms. This is to get initial comments on the redesign of m

Re: time jumps forward/backwards

2009-09-01 Thread Benjamin Gamsa
Benjamin Herrenschmidt wrote: On Mon, 2009-08-31 at 23:57 -0400, Benjamin Gamsa wrote: Sean MacLennan wrote: On Mon, 31 Aug 2009 22:20:00 -0400 Benjamin Gamsa wrote: For what it's worth, the problem occurs even when ntp is not even started. This is grasping, but could it have anything to do

Re: time jumps forward/backwards

2009-09-01 Thread Benjamin Herrenschmidt
On Mon, 2009-08-31 at 23:57 -0400, Benjamin Gamsa wrote: > Sean MacLennan wrote: > > On Mon, 31 Aug 2009 22:20:00 -0400 > > Benjamin Gamsa wrote: > > > >> For what it's worth, the problem occurs even when ntp is not even > >> started. > > > > This is grasping, but could it have anything to do wi

Re: [PATCH] Fix fake numa on ppc

2009-09-01 Thread Ankita Garg
Hi Balbir, On Tue, Sep 01, 2009 at 11:27:53AM +0530, Balbir Singh wrote: > * Ankita Garg [2009-09-01 10:33:16]: > > > Hello, > > > > Below is a patch to fix a couple of issues with fake numa node creation > > on ppc: > > > > 1) Presently, fake nodes could be created such that real numa node >

[PATCH v2] powerpc: Fix some late PowerMac G5 with PCIe ATI graphics

2009-09-01 Thread Benjamin Herrenschmidt
A misconfiguration by the firmware of the U4 PCIe bridge on PowerMac G5 with the U4 bridge (latest generations, may also affect the iMac G5 "iSight") is causing us to re-assign the PCI BARs of the video card, which can get it out of sync with the firmware, thus breaking offb. This works around it

Re: ECC & Magic bitmask errors with JFFS2 file system on 6.23 kernel for powerpc

2009-09-01 Thread Ravinder Kumar
On Aug 31, 2009, at 4:47 PM, Anton Vorontsov wrote: On Mon, Aug 31, 2009 at 01:39:10PM -0700, louise.ye...@sun.com wrote: *Hi Rupesh, We are using a Freescale processor similar to yours with NAND flash supporting 2KB page size . What kernel version and NAND driver you use? I don't think that