Re: GPIO driver for MPC8313.

2009-09-22 Thread Peter Korsgaard
> "Johnny" == Johnny Hung writes: Johnny> Hi All: Johnny>    Is there a alreday written GPIO dirver or example for Johnny> MPC8313/similar ppc platform. It looks like many people need GPIO Johnny> dirver to control LED, etc... I think is it possible to write a Johnny> general gpio driver

Re: NAND ECC Error with wrong SMC ording bug

2009-09-22 Thread Stefan Roese
On Tuesday 22 September 2009 23:20:49 Sean MacLennan wrote: > What is the status of this bug? I've noticed that David pulled in into his repo. So I expect it to hit mainline in this merge window. Cheers, Stefan ___ Linuxppc-dev mailing list Linuxppc-d

[PATCH] powerpc/mm: Fix 40x and 8xx vs. _PAGE_SPECIAL

2009-09-22 Thread Benjamin Herrenschmidt
The test to check whether we have _PAGE_SPECIAL defined is broken, since we always define it, just not always to a meaninful value :-) That broke 8xx and 40x under some circumstances. This fixes it by adding _PAGE_SPECIAL for both of these since they had a free PTE bit, and removing the condition

GPIO driver for MPC8313.

2009-09-22 Thread Johnny Hung
Hi All:    Is there a alreday written GPIO dirver or example for MPC8313/similar ppc platform. It looks like many people need GPIO dirver to control LED, etc... I think is it possible to write a general gpio driver for all ppc platform and only need to modify gpio iomap information of dtb file. Ple

Re: powerpc: Move 64bit heap above 1TB on machines with 1TB segments

2009-09-22 Thread David Gibson
On Wed, Sep 23, 2009 at 07:08:22AM +1000, Benjamin Herrenschmidt wrote: > > > Unfortunately, I am not sensitive to issues surrounding 1TB segments or how > > they are currently being used. However, as this clearly helps performance > > for large amounts of memory, is it worth providing an option t

Re: [PATCH 2/6] mtd: m25p80: Convert to device table matching

2009-09-22 Thread Andrew Morton
On Wed, 23 Sep 2009 03:55:34 +0400 Anton Vorontsov wrote: > On Tue, Sep 22, 2009 at 04:43:47PM -0700, David Woodhouse wrote: > > On Wed, 2009-09-23 at 03:01 +0400, Anton Vorontsov wrote: > > > > > > And the two patches I sent on top: > > > > > > http://lkml.org/lkml/2009/8/18/364 > > > http://l

Re: [PATCH 2/6] mtd: m25p80: Convert to device table matching

2009-09-22 Thread Anton Vorontsov
On Tue, Sep 22, 2009 at 04:43:47PM -0700, David Woodhouse wrote: > On Wed, 2009-09-23 at 03:01 +0400, Anton Vorontsov wrote: > > > > And the two patches I sent on top: > > > > http://lkml.org/lkml/2009/8/18/364 > > http://lkml.org/lkml/2009/8/18/366 > > Got versions of those which apply to the m

Re: [PATCH 2/6] mtd: m25p80: Convert to device table matching

2009-09-22 Thread Andrew Morton
On Tue, 22 Sep 2009 16:43:47 -0700 David Woodhouse wrote: > On Wed, 2009-09-23 at 03:01 +0400, Anton Vorontsov wrote: > > > > And the two patches I sent on top: > > > > http://lkml.org/lkml/2009/8/18/364 > > http://lkml.org/lkml/2009/8/18/366 > > Got versions of those which apply to the mtd-2.

Re: [PATCH 2/6] mtd: m25p80: Convert to device table matching

2009-09-22 Thread David Woodhouse
On Wed, 2009-09-23 at 03:01 +0400, Anton Vorontsov wrote: > > And the two patches I sent on top: > > http://lkml.org/lkml/2009/8/18/364 > http://lkml.org/lkml/2009/8/18/366 Got versions of those which apply to the mtd-2.6.git tree (which I'm about to ask Linus to pull)? -- dwmw2

Re: [PATCH 2/2] mtd: m25p80: Add support for CAT25xxx serial EEPROMs

2009-09-22 Thread Anton Vorontsov
On Tue, Sep 22, 2009 at 04:25:48PM -0700, Andrew Morton wrote: > On Wed, 19 Aug 2009 01:46:28 +0400 > Anton Vorontsov wrote: > > > CAT25 chips (as manufactured by On Semiconductor, previously Catalyst > > Semiconductor) are similar to the original M25Px0 chips, except: > > > > - Address width ca

Re: [PATCH 2/2] mtd: m25p80: Add support for CAT25xxx serial EEPROMs

2009-09-22 Thread Andrew Morton
On Wed, 19 Aug 2009 01:46:28 +0400 Anton Vorontsov wrote: > CAT25 chips (as manufactured by On Semiconductor, previously Catalyst > Semiconductor) are similar to the original M25Px0 chips, except: > > - Address width can vary (1-2 bytes, in contrast to 3 bytes in M25P > chips). So, implement c

Re: [PATCH 2/6] mtd: m25p80: Convert to device table matching

2009-09-22 Thread Anton Vorontsov
On Tue, Sep 22, 2009 at 02:17:05PM -0700, Andrew Morton wrote: > On Mon, 3 Aug 2009 19:54:50 -0700 > David Brownell wrote: > > > On Thursday 30 July 2009, Anton Vorontsov wrote: > > > This patch converts the m25p80 driver so that now it uses .id_table > > > for device matching, making it properly

PCI HotPlug and Adding Resources after Linux Boots

2009-09-22 Thread Morrison, Tom
I am not exactly sure who to direct this question to (general Linux kernel or LinuxPPC), so I am directing to both - in hopes that someone will recognize this problem - and perhaps give me some suggestions on how to proceed... I am running Linux (2.6.23x (and 2.6.27.x)) on a MPC8572 based system

Re: powerpc: Move 64bit heap above 1TB on machines with 1TB segments

2009-09-22 Thread Mel Gorman
Anton Blanchard wrote on 22/09/2009 03:52:35: > If we are using 1TB segments and we are allowed to randomise the heap, we can > put it above 1TB so it is backed by a 1TB segment. Otherwise the heap will be > in the bottom 1TB which always uses 256MB segments and this may result in a > performance

Re: [PATCH v3] xilinx_spi: Splitted into generic, of and platform driver, added support for DS570

2009-09-22 Thread Richard Röjfors
John Linn wrote: >> -Original Message- >> From: linuxppc-dev-bounces+john.linn=xilinx@lists.ozlabs.org >> [mailto:linuxppc-dev- >> bounces+john.linn=xilinx@lists.ozlabs.org] On Behalf Of Richard Röjfors >> Sent: Tuesday, September 22, 2009 6:55 AM >> To: spi-devel-gene...@lists.sou

NAND ECC Error with wrong SMC ording bug

2009-09-22 Thread Sean MacLennan
What is the status of this bug? Cheers, Sean ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH] rtc: Set wakeup capability for I2C and SPI RTC drivers

2009-09-22 Thread Andrew Morton
On Fri, 28 Aug 2009 04:30:10 +0400 Anton Vorontsov wrote: > On Fri, Aug 28, 2009 at 03:19:25AM +0400, Anton Vorontsov wrote: > [...] > > > That is why platform code should device_init_wakeup() and > > > drivers should check device_can_wakeup(dev) ... > > > > They should (and do) check may_wakeup

Re: [PATCH 2/6] mtd: m25p80: Convert to device table matching

2009-09-22 Thread Andrew Morton
On Mon, 3 Aug 2009 19:54:50 -0700 David Brownell wrote: > On Thursday 30 July 2009, Anton Vorontsov wrote: > > This patch converts the m25p80 driver so that now it uses .id_table > > for device matching, making it properly detect devices on OpenFirmware > > platforms (prior to this patch the driv

Re: [PATCH] net: xilinx_emaclite: Fix problem with first incoming packet

2009-09-22 Thread David Miller
From: John Linn Date: Tue, 22 Sep 2009 10:56:27 -0600 > Thanks Grant, I wondered about that myself. I've applied this patch, thanks. ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: powerpc: Move 64bit heap above 1TB on machines with 1TB segments

2009-09-22 Thread Benjamin Herrenschmidt
> Unfortunately, I am not sensitive to issues surrounding 1TB segments or how > they are currently being used. However, as this clearly helps performance > for large amounts of memory, is it worth providing an option to > libhugetlbfs to locate 16MB pages above 1TB when they are otherwise being >

RE: [PATCH] net: xilinx_emaclite: Fix problem with first incoming packet

2009-09-22 Thread John Linn
Thanks Grant, I wondered about that myself. > -Original Message- > From: glik...@secretlab.ca [mailto:glik...@secretlab.ca] On Behalf Of Grant > Likely > Sent: Tuesday, September 22, 2009 10:54 AM > To: John Linn > Cc: net...@vger.kernel.org; da...@davemloft.net; linuxppc-...@ozlabs.org;

Re: [PATCH] net: xilinx_emaclite: Fix problem with first incoming packet

2009-09-22 Thread Grant Likely
On Tue, Sep 22, 2009 at 8:24 AM, John Linn wrote: > From: Michal Simek > > You can't ping the board or connect to it unless you send > any packet out from board. > > Tested-by: John Williams > Signed-off-by: Michal Simek > Acked-by: John Linn John, Since this patch is being *sent* by you, the

RE: [PATCH v3] xilinx_spi: Splitted into generic, of and platform driver, added support for DS570

2009-09-22 Thread John Linn
> -Original Message- > From: linuxppc-dev-bounces+john.linn=xilinx@lists.ozlabs.org > [mailto:linuxppc-dev- > bounces+john.linn=xilinx@lists.ozlabs.org] On Behalf Of Richard Röjfors > Sent: Tuesday, September 22, 2009 6:55 AM > To: spi-devel-gene...@lists.sourceforge.net > Cc: linu

[PATCH] net: xilinx_emaclite: Fix problem with first incoming packet

2009-09-22 Thread John Linn
From: Michal Simek You can't ping the board or connect to it unless you send any packet out from board. Tested-by: John Williams Signed-off-by: Michal Simek Acked-by: John Linn --- drivers/net/xilinx_emaclite.c |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/dr

[PATCH v2] Linker script cleanup for powerpc

2009-09-22 Thread Tim Abbott
This is an updated version of the patch I sent on September 6 cleaning up the powerpc architecture's linker scripts. The only change is that it is rebased on top of Linus's current master. This cross-architecture linker script cleanup project is in preparation for adding support for building the

[PATCH] powerpc: Cleanup linker script using new linker script macros.

2009-09-22 Thread Tim Abbott
Signed-off-by: Tim Abbott Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-...@ozlabs.org Cc: Sam Ravnborg --- arch/powerpc/kernel/vmlinux.lds.S | 69 - 1 files changed, 15 insertions(+), 54 deletions(-) diff --git a/arch/powerpc/kernel/vmlinux.

[PATCH] POWERPC: includecheck fix: exceptions-64e.S

2009-09-22 Thread Jaswinder Singh Rajput
fix the following 'make includecheck' warning: arch/powerpc/kernel/exceptions-64e.S: asm/reg.h is included more than once. Signed-off-by: Jaswinder Singh Rajput --- arch/powerpc/kernel/exceptions-64e.S |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/kern

[PATCH] POWERPC: includecheck fix: mm, tlb_low_64e.S

2009-09-22 Thread Jaswinder Singh Rajput
fix the following 'make includecheck' warning: arch/powerpc/mm/tlb_low_64e.S: asm/reg.h is included more than once. Signed-off-by: Jaswinder Singh Rajput --- arch/powerpc/mm/tlb_low_64e.S |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/mm/tlb_low_64e.S b

[PATCH v3] xilinx_spi: Splitted into generic, of and platform driver, added support for DS570

2009-09-22 Thread Richard Röjfors
This patch splits xilinx_spi into three parts, an OF and a platform driver and generic part. The generic part now also works on X86 and also supports the Xilinx SPI IP DS570 Signed-off-by: Richard Röjfors --- diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 2c733c2..eca491b 100644 --

[PATCH] i2c-mpc: Do not generate STOP after read.

2009-09-22 Thread Joakim Tjernlund
The driver always ends a read with a STOP condition which breaks subsequent I2C reads/writes in the same transaction as these expect to do a repeated START(ReSTART). This will also help I2C multimaster as the bus will not be released after the first read, but when the whole transaction ends. Sign

Re: [PATCH] perf_event, powerpc: Fix compilation after big perf_counter rename

2009-09-22 Thread Michael Ellerman
On Tue, 2009-09-22 at 18:00 +1000, Benjamin Herrenschmidt wrote: > On Tue, 2009-09-22 at 09:28 +0200, Ingo Molnar wrote: > > > > Nevertheless you are right that i should have caught this particular > > PowerPC build bug - i missed it - sorry about that! > > > Allright. Well, to help in general,

[v6 PATCH 7/7]: pSeries: implement pSeries processor idle module.

2009-09-22 Thread Arun R Bharadwaj
* Arun R Bharadwaj [2009-09-22 16:55:27]: 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

[v6 PATCH 6/7]: POWER: add a default_idle idle loop for POWER.

2009-09-22 Thread Arun R Bharadwaj
* Arun R Bharadwaj [2009-09-22 16:55:27]: In arch/powerpc/kernel/idle.c create a default_idle() routine by moving the failover condition of the cpu_idle() idle loop. This is needed by cpuidle infrastructure to call default_idle when other idle routines are not yet registered. Functionality remain

[v6 PATCH 5/7]: pSeries/cpuidle: remove dedicate/shared idle loops, which will be moved to arch/powerpc/platforms/pseries/processor_idle.c

2009-09-22 Thread Arun R Bharadwaj
* Arun R Bharadwaj [2009-09-22 16:55:27]: This patch removes the routines, pseries_shared_idle_sleep and pseries_dedicated_idle_sleep, since this is implemented as a part of arch/powerpc/platform/pseries/processor_idle.c Also, similar to x86, call cpuidle_idle_call from cpu_idle() idle loop inst

[v6 PATCH 4/7]: POWER: enable cpuidle for POWER.

2009-09-22 Thread Arun R Bharadwaj
* Arun R Bharadwaj [2009-09-22 16:55:27]: 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

[v6 PATCH 3/7]: x86: refactor x86 idle power management code and remove all instances of pm_idle.

2009-09-22 Thread Arun R Bharadwaj
* Arun R Bharadwaj [2009-09-22 16:55:27]: This patch cleans up x86 of all instances of pm_idle. pm_idle which was earlier called from cpu_idle() idle loop is replaced by cpuidle_idle_call. x86 also registers to cpuidle when the idle routine is selected, by populating the cpuidle_device data str

[v6 PATCH 2/7]: cpuidle: implement a list based approach to register a set of idle routines.

2009-09-22 Thread Arun R Bharadwaj
* Arun R Bharadwaj [2009-09-22 16:55:27]: Implement a list based registering mechanism for architectures which have multiple sets of idle routines which are to be registered. Currently, in x86 it is done by merely setting pm_idle = idle_routine and managing this pm_idle pointer is messy. To giv

[v6 PATCH 1/7]: cpuidle: cleanup drivers/cpuidle/cpuidle.c

2009-09-22 Thread Arun R Bharadwaj
* Arun R Bharadwaj [2009-09-22 16:55:27]: This patch cleans up drivers/cpuidle/cpuidle.c Earlier cpuidle assumed pm_idle as the default idle loop. Break that assumption and make it more generic. cpuidle_idle_call() which is the main idle loop of cpuidle is to be called by architectures which have

[v6 PATCH 0/7]: cpuidle/x86/POWER: Cleanup idle power management code in x86, cleanup drivers/cpuidle/cpuidle.c and introduce cpuidle to POWER.

2009-09-22 Thread Arun R Bharadwaj
Hi, This patchset introduces cpuidle infrastructure to POWER, prototyping for pSeries, and also does a major refactoring of current x86 idle power management and a cleanup of cpuidle infrastructure. My earlier iterations can be found at: v5 --> http://lkml.org/lkml/2009/9/22/26 v4 --> http://lkm

RE: [PATCH][v3] powerpc/85xx: P1020RDB Support Added

2009-09-22 Thread Aggrwal Poonam-B10812
Hello Kumar Could you please accept this patch if it is okay. Regards POonam > -Original Message- > From: Aggrwal Poonam-B10812 > Sent: Monday, August 31, 2009 5:22 PM > To: linuxppc-...@ozlabs.org > Cc: Aggrwal Poonam-B10812 > Subject: [PATCH][v3] powerpc/85xx: P1020RDB Support Added

RE: [PATCH][v2] powerpc/85xx: Create dts for each core in CAMP mode for P2020RDB

2009-09-22 Thread Aggrwal Poonam-B10812
Hello Kumar Could you please accept this patch if it is fine. Regards Poonam > -Original Message- > From: Aggrwal Poonam-B10812 > Sent: Saturday, September 19, 2009 10:44 PM > To: linuxppc-...@ozlabs.org > Cc: Aggrwal Poonam-B10812 > Subject: [PATCH][v2] powerpc/85xx: Create dts for ea

Re: [PATCH] Re: [405EX] Bad page map in process ...

2009-09-22 Thread Benjamin Herrenschmidt
On Tue, 2009-09-22 at 20:07 +1000, Benjamin Herrenschmidt wrote: > On Tue, 2009-09-22 at 11:29 +0200, Weirich, Bernhard wrote: > > Hello, > > > > I found the cause of the problem. > > My architecture does not define the _PAGE_SPECIAL macro, thus in > > pte-common.h line 32, it is defined as 0 > >

Re: [PATCH] Re: [405EX] Bad page map in process ...

2009-09-22 Thread Benjamin Herrenschmidt
On Tue, 2009-09-22 at 11:29 +0200, Weirich, Bernhard wrote: > Hello, > > I found the cause of the problem. > My architecture does not define the _PAGE_SPECIAL macro, thus in pte-common.h > line 32, it is defined as 0 > And then in line 180, since _PAGE_SPECIAL is defined, the macro > __HAVE_ARCH

Re: [LTP] mmapstress03 weirdness? (fwd)

2009-09-22 Thread Geert Uytterhoeven
On Tue, 22 Sep 2009, Benjamin Herrenschmidt wrote: > On Mon, 2009-09-21 at 15:40 +0200, Geert Uytterhoeven wrote: > > With 32-bit userland, this boils down to: > > | mmap addr 0x7fff size 0x7fff > > | mmap returned 0x7fff > > > > i.e. mmap() succeeds, but (1) the test expects it to fai

[405EX] Bad page map in process ...

2009-09-22 Thread Weirich, Bernhard
Hello, I use mmap to map an IO address space to user space on a PPC405EX processor. till kernel 2.6.29 this worked without problems, since 2.6.30. I get intimidating error messages when I do the unmap, mmap works fine, though. BUG: Bad page map in process deviceDaemon pte:ffe3b45e pmd:0f11a400

R: High load average but low cpu (xenomai can be the explanation?)

2009-09-22 Thread Bosi Daniele
I suggest you to take a look at the meaning of the data showed by "/proc/loadavg". See: http://www.luci.org/luci-discuss/200210/msg00055.html for more details. In my opinion your loadavg of 3.0 means only that in your application there is an average of 3 task waiting for running on the CPU. Th

[PATCH] Re: [405EX] Bad page map in process ...

2009-09-22 Thread Weirich, Bernhard
Hello, I found the cause of the problem. My architecture does not define the _PAGE_SPECIAL macro, thus in pte-common.h line 32, it is defined as 0 And then in line 180, since _PAGE_SPECIAL is defined, the macro __HAVE_ARCH_PTE_SPECIAL is erroneously defined. This makes any ppc architecture to ac

Re: [v5 RFC PATCH 0/7]: cpuidle/x86/POWER (REDESIGN): Cleanup idle power management code in x86, cleanup drivers/cpuidle/cpuidle.c and introduce cpuidle to POWER.

2009-09-22 Thread Arun R Bharadwaj
* Peter Zijlstra [2009-09-22 09:25:59]: > > > Much better :-) > > > But I'm puzzled by all the per-cpu-ish-ness of the stuff. Why would you > need to register things on a per-cpu basis? > > Also: > > > + list_for_each(pos, &per_cpu(cpuidle_devices_list, cpu)) { > + temp

R: High load average but low cpu (xenomai can be the explanation?)

2009-09-22 Thread diba...@libero.it
It is an AgentX subagent, it does a lot of things like accessing the hardware, handling messages from the main snmp agent received from an unix socket, writing files on jffs2 partition, polling hardware for alarms. If I kill it, the load goes down. Anyway the subagent only takes 2-3% of the CPU.

Re: [PATCH] perf_event, powerpc: Fix compilation after big perf_counter rename

2009-09-22 Thread Ingo Molnar
* Benjamin Herrenschmidt wrote: > On Tue, 2009-09-22 at 09:28 +0200, Ingo Molnar wrote: > > > > Nevertheless you are right that i should have caught this particular > > PowerPC build bug - i missed it - sorry about that! > > Allright. Well, to help in general, we are setting up a build-bot he

Re: [PATCH] perf_event, powerpc: Fix compilation after big perf_counter rename

2009-09-22 Thread Benjamin Herrenschmidt
On Tue, 2009-09-22 at 09:28 +0200, Ingo Molnar wrote: > > Nevertheless you are right that i should have caught this particular > PowerPC build bug - i missed it - sorry about that! > Allright. Well, to help in general, we are setting up a build-bot here too that will build -tip HEAD for at least

Re: [v5 RFC PATCH 0/7]: cpuidle/x86/POWER (REDESIGN): Cleanup idle power management code in x86, cleanup drivers/cpuidle/cpuidle.c and introduce cpuidle to POWER.

2009-09-22 Thread Peter Zijlstra
Much better :-) But I'm puzzled by all the per-cpu-ish-ness of the stuff. Why would you need to register things on a per-cpu basis? Also: + list_for_each(pos, &per_cpu(cpuidle_devices_list, cpu)) { + temp_dev = container_of(pos, struct cpuidle_device, +

Re: [PATCH] perf_event, powerpc: Fix compilation after big perf_counter rename

2009-09-22 Thread Ingo Molnar
* Benjamin Herrenschmidt wrote: > On Tue, 2009-09-22 at 09:48 +1000, Paul Mackerras wrote: > > > This fixes two places in the powerpc perf_event (perf_counter) code > > where 'list_entry' needs to be changed to 'group_entry', but were > > missed in commit 65abc865 ("perf_counter: Rename list_e

Re: MPC8536 PCI rescan to discover FPGA

2009-09-22 Thread Benjamin Herrenschmidt
On Mon, 2009-09-21 at 09:04 -0700, David Hawkins wrote: > This can be made to work using the kernel hot-swap > interface. PCI devices have an ENUM# interrupt that > they assert when inserted or extracted, and the host > hot-swap driver can be hooked up to it. PCI-E may > have a similar mechanism, i