[PATCH 2/2] powerpc: Dynamically allocate most lppaca structs

2010-08-13 Thread Paul Mackerras
This arranges for the lppaca structs for most cpus to be dynamically allocated in the same manner as the paca structs. If we don't include support for legacy iSeries, only the first lppaca is statically allocated; the rest are dynamically allocated. If we include legacy iSeries support, then we

[PATCH 1/2] powerpc: Abstract indexing of lppaca structs

2010-08-13 Thread Paul Mackerras
Currently we have the lppaca structs as a simple array of NR_CPUS entries, taking up space in the data section of the kernel image. In future we would like to allocate them dynamically, so this abstracts out the accesses to the array, making it easier to change how we locate the lppaca for a given

Re: 2.6.35-stable/ppc64/p7: suspicious rcu_dereference_check() usage detected during 2.6.35-stable boot

2010-08-13 Thread Subrata Modak
Hi Paul, Is there any specific person(s) whom we whom we should direct this mail to ? We have not received any response from CGROUP developers on this. Kindly let me know whom to contact for this. I am adding few more people i know :-) Regards-- Subrata On Mon, 2010-08-09 at 09:12 -0700, Paul

[PATCH] powerpc: Initialise paca-kstack before early_setup_secondary

2010-08-13 Thread Matt Evans
As early setup calls down to slb_initialize(), we must have kstack initialised before checking should we add a bolted SLB entry for our kstack? Failing to do so means stack access requires an SLB miss exception to refill an entry dynamically, if the stack isn't accessible via SLB(0) (kernel text

Re: 2.6.35-stable/ppc64/p7: suspicious rcu_dereference_check() usage detected during 2.6.35-stable boot

2010-08-13 Thread Dhaval Giani
On Fri, Aug 13, 2010 at 8:55 AM, Subrata Modak subr...@linux.vnet.ibm.com wrote: Hi Paul, Is there any specific person(s) whom we whom we should direct this mail to ? We have not received any response from CGROUP developers on this. Kindly let me know whom to contact for this. I am adding few

Re: 2.6.35-stable/ppc64/p7: suspicious rcu_dereference_check() usage detected during 2.6.35-stable boot

2010-08-13 Thread Subrata Modak
Adding CONTROL GROUP Maintainers/Mailing list.. Regards-- Subrata On Mon, 2010-08-09 at 09:12 -0700, Paul E. McKenney wrote: On Mon, Aug 02, 2010 at 02:22:12PM +0530, Subrata Modak wrote: Hi, The following suspicious rcu_dereference_check() usage is detected during 2.6.35-stable boot

Re: [PATCH 08/12] ptp: Added a brand new class driver for ptp clocks.

2010-08-13 Thread Richard Cochran
On Tue, Jun 15, 2010 at 01:11:30PM -0600, Grant Likely wrote: On Tue, Jun 15, 2010 at 10:09 AM, Richard Cochran +static DEFINE_SPINLOCK(clocks_lock); /* protects 'clocks' */ Doesn't appear that clocks is manipulated at atomic context. Mutex instead? ... If the spinlock is changed to a

Re: How to use mpc8xxx_gpio.c device driver

2010-08-13 Thread Ravi Gupta
On Wed, Aug 11, 2010 at 10:15 PM, Anton Vorontsov cbouatmai...@gmail.comwrote: Hi, On Wed, Aug 11, 2010 at 06:57:16PM +0530, Ravi Gupta wrote: I am new to device driver development. I am trying to access the GPIO of MPC837xERDB eval board. I have upgraded its kernel to linux-2.6.28.9 and

Re: How to use mpc8xxx_gpio.c device driver

2010-08-13 Thread Ravi Gupta
Looking at the device tree for this board, it appears U-Boot remaps the IMMR registers to 0xe000. They are no longer accessible at 0xff40. I would recommend studying arch/powerpc/boot/dts/mpc8377_rdb.dts in the Linux source code. That describes the device layout on your board after

Re: How to use mpc8xxx_gpio.c device driver

2010-08-13 Thread Anton Vorontsov
Hi, On Fri, Aug 13, 2010 at 03:29:11PM +0530, Ravi Gupta wrote: [...] Thanks for the reply. I had added the entries for gpio pin 9 for both controllers(I was not sure with controller's pin is connected to LED, but now I know it is pin no. 233 i.e 224+9) in the mpc8377_rdb.dts file. Below is a

[PATCH 1/9] RapidIO: fix RapidIO sysfs hierarchy

2010-08-13 Thread Alexandre Bounine
Makes RapidIO devices appear in /sys/devices/rapidio directory instead of top of /sys/devices directory. Signed-off-by: Alexandre Bounine alexandre.boun...@idt.com Reviewed-by: Thomas Moll thomas.m...@sysgo.com Cc: Matt Porter mpor...@kernel.crashing.org Cc: Li Yang le...@freescale.com Cc: Kumar

[PATCH 0/9] RapidIO: Set of patches to add Gen2 switches

2010-08-13 Thread Alexandre Bounine
This set of RapidIO patches adds support for new IDT Gen2 sRIO switch devices - CPS-1848 and CPS-1616. Adding these sRIO switches required to implement standard error recovery mechanism defined by the RapidIO specification. ___ Linuxppc-dev mailing list

[PATCH 2/9] RapidIO, powerpc/85xx: modify RIO port-write interrupt handler

2010-08-13 Thread Alexandre Bounine
- Rearranged RIO port-write interrupt handling to perform message buffering as soon as possible. - Modified to disable port-write controller when clearing Transaction Error (TE) bit. Signed-off-by: Alexandre Bounine alexandre.boun...@idt.com Reviewed-by: Thomas Moll thomas.m...@sysgo.com Cc: Matt

[PATCH 3/9] RapidIO: Add the ingress port number into the RIO switch data structure

2010-08-13 Thread Alexandre Bounine
A switch ingress port number has to be saved for software assisted error recovery from the error-stopped state. Saving this information also allows to remove several register reads from the RIO enumeration process. Signed-off-by: Alexandre Bounine alexandre.boun...@idt.com Reviewed-by: Thomas

[PATCH 4/9] RapidIO: Add relation links between RIO device structures

2010-08-13 Thread Alexandre Bounine
Create back and forward links between RIO devices. These links are intended for use by error management and hot-plug extensions. Signed-off-by: Alexandre Bounine alexandre.boun...@idt.com Reviewed-by: Thomas Moll thomas.m...@sysgo.com Cc: Matt Porter mpor...@kernel.crashing.org Cc: Li Yang

[PATCH 5/9] RapidIO: Add default handler for error_stopped state

2010-08-13 Thread Alexandre Bounine
The default error-stopped state handler provides recovery mechanism as defined by RIO specification. Signed-off-by: Alexandre Bounine alexandre.boun...@idt.com Reviewed-by: Thomas Moll thomas.m...@sysgo.com Cc: Matt Porter mpor...@kernel.crashing.org Cc: Li Yang le...@freescale.com Cc: Kumar Gala

[PATCH 6/9] RapidIO: Add switch-specific sysfs initialization callback

2010-08-13 Thread Alexandre Bounine
Add callback that allows to create/remove switch-specific sysfs attributes. Signed-off-by: Alexandre Bounine alexandre.boun...@idt.com Reviewed-by: Thomas Moll thomas.m...@sysgo.com Cc: Matt Porter mpor...@kernel.crashing.org Cc: Li Yang le...@freescale.com Cc: Kumar Gala

[PATCH 7/9] RapidIO: Add handling for PW message from a lost device

2010-08-13 Thread Alexandre Bounine
Add check if PW message source device is accessible and change PW message handler to recover if PW message source device is not available anymore (power down or link disconnect). To avoid possible loss of notification, the PW message handler scans the route back from the source device to identify

[PATCH 8/9] RapidIO: Add device access check into the enumeration

2010-08-13 Thread Alexandre Bounine
Add explicit device access check before performing device enumeration. This gives a chance to clear possible link error conditions by issuing safe maintenance read request(s). Signed-off-by: Alexandre Bounine alexandre.boun...@idt.com Reviewed-by: Thomas Moll thomas.m...@sysgo.com Cc: Matt Porter

[PATCH 9/9] RapidIO: Add support for IDT CPS Gen2 switches

2010-08-13 Thread Alexandre Bounine
Add the RIO switch driver and definitions for IDT CPS-1848 and CPS-1616 Gen2 devices. Signed-off-by: Alexandre Bounine alexandre.boun...@idt.com Reviewed-by: Thomas Moll thomas.m...@sysgo.com Cc: Matt Porter mpor...@kernel.crashing.org Cc: Li Yang le...@freescale.com Cc: Kumar Gala

help with kernel panics in task swapper on 460ex

2010-08-13 Thread Ayman El-Khashab
I have an odd problem when using the 460ex rev b processors. Previously, I'd used the rev A without any issues on the same pcbs. This happens on multiple units now. Basically, while running the system will just randomly kernel panic. We have seen this probably 4 or 5 times on a over the

Re: help with kernel panics in task swapper on 460ex

2010-08-13 Thread Benjamin Herrenschmidt
On Fri, 2010-08-13 at 15:36 -0500, Ayman El-Khashab wrote: The exact details (though I don't think they are too useful are as follows. The one interesting item if I read it correctly, is that the CPU was trying to get instructions from c002 address. However, this board only has 512MB

Re: [PATCH 08/12] ptp: Added a brand new class driver for ptp clocks.

2010-08-13 Thread Grant Likely
On Fri, Aug 13, 2010 at 3:34 AM, Richard Cochran richardcoch...@gmail.com wrote: On Tue, Jun 15, 2010 at 01:11:30PM -0600, Grant Likely wrote: On Tue, Jun 15, 2010 at 10:09 AM, Richard Cochran +static DEFINE_SPINLOCK(clocks_lock); /* protects 'clocks' */ Doesn't appear that clocks is

[Resend][PATCHv3] Xilinx Virtex 4 FX Soft FPU support

2010-08-13 Thread Sergey Temerkhanov
This patch enables support for Xilinx Virtex 4 FX singe-float FPU. Changelog v2-v3: -Fixed whitespaces for SAVE_FPR/REST_FPR. -Changed description of MSR_AP bit. -Removed the stub for APU unavailable exception. Changelog v1-v2: -Added MSR_AP bit definition