RE: [PATCH][v2] driver/FSL SATA:Fix wrong Device Error Register usage

2011-03-08 Thread David Laight
Case when ffs return will never arise.This scenario is already been discussed on linuxppc-dev@lists.ozlabs.org. Please see below explanation: sata_fsl_error_intr() is called during device error.The mentioned scenario will never comes. It can be observed via code:- if (cereg)

Re: Mpc8315erdb openvpn segmentation fault

2011-03-08 Thread Scott Wood
On Mon, 7 Mar 2011 20:28:32 -0800 Vasanth Ragavendran ragavendra...@yahoo.co.in wrote: Thanks a ton Scott. Actually i was working with the same version of the kernel on both the boards. it was 2.6.29.6. neither i changed the u-boot. it was the same in both. however i recompiled the kernel

Re: RFC: x86: kill binutils 2.16.x?

2011-03-08 Thread Kyle Moffett
On Thu, Mar 3, 2011 at 03:30, Ingo Molnar mi...@elte.hu wrote: This is how specific GAS functionality is tested in arch/powerpc:        @if ! /bin/echo dssall | $(AS) -many -o $(TOUT) /dev/null 21 ; then \                echo -n '*** ${VERSION}.${PATCHLEVEL} kernels no longer build ' ; \  

Re: RFC: x86: kill binutils 2.16.x?

2011-03-08 Thread Benjamin Herrenschmidt
On Tue, 2011-03-08 at 14:57 -0500, Kyle Moffett wrote: Specifically the e500 doesn't have a normal PowerPC FPU, it has a custom FPU built using extended integer registers instead, and it happens to borrow the AltiVec opcode range to do it. When trying to port Debian to the platform we were

Re: RFC: x86: kill binutils 2.16.x?

2011-03-08 Thread Kyle Moffett
On Tue, Mar 8, 2011 at 16:28, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Tue, 2011-03-08 at 14:57 -0500, Kyle Moffett wrote: Specifically the e500 doesn't have a normal PowerPC FPU, it has a custom FPU built using extended integer registers instead, and it happens to borrow the

Re: RFC: x86: kill binutils 2.16.x?

2011-03-08 Thread Scott Wood
On Wed, 9 Mar 2011 08:28:36 +1100 Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Tue, 2011-03-08 at 14:57 -0500, Kyle Moffett wrote: Specifically the e500 doesn't have a normal PowerPC FPU, it has a custom FPU built using extended integer registers instead, and it happens to

Re: RFC: x86: kill binutils 2.16.x?

2011-03-08 Thread Benjamin Herrenschmidt
On Tue, 2011-03-08 at 16:59 -0500, Kyle Moffett wrote: The problem is not with the kernel compile itself, but with the 2.12 dssall binutils test. Basically, recent binutils treats e500 as effectively a separate architecture that happens to share *most* of the opcodes with regular PowerPC.

Re: RFC: x86: kill binutils 2.16.x?

2011-03-08 Thread Kyle Moffett
On Tue, Mar 8, 2011 at 18:13, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Tue, 2011-03-08 at 16:59 -0500, Kyle Moffett wrote: The problem is not with the kernel compile itself, but with the 2.12 dssall binutils test.  Basically, recent binutils treats e500 as effectively a

Re: [PATCH] RTC driver(Linux) for PT7C4338 chip.

2011-03-08 Thread Andrew Morton
On Wed, 2 Mar 2011 09:42:30 +0530 Priyanka Jain priyanka.j...@freescale.com 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.

[PATCH 0/5] make *_gate_vma accept mm_struct instead of task_struct

2011-03-08 Thread Stephen Wilson
Morally, the question of whether an address lies in a gate vma should be asked with respect to an mm, not a particular task. Practically, dropping the dependency on task_struct will help make current and future operations on mm's more flexible and convenient. In particular, it allows some code

[PATCH 2/5] x86: mark associated mm when running a task in 32 bit compatibility mode

2011-03-08 Thread Stephen Wilson
This patch simply follows the same practice as for setting the TIF_IA32 flag. In particular, an mm is marked as holding 32-bit tasks when a 32-bit binary is exec'ed. Both ELF and a.out formats are updated. Signed-off-by: Stephen Wilson wils...@start.ca --- arch/x86/ia32/ia32_aout.c|1 +

[PATCH 1/5] x86: add context tag to mark mm when running a task in 32-bit compatibility mode

2011-03-08 Thread Stephen Wilson
This tag is intended to mirror the thread info TIF_IA32 flag. Will be used to identify mm's which support 32 bit tasks running in compatibility mode without requiring a reference to the task itself. Signed-off-by: Stephen Wilson wils...@start.ca --- arch/x86/include/asm/mmu.h |6 ++ 1

[PATCH 3/5] mm: arch: make get_gate_vma take an mm_struct instead of a task_struct

2011-03-08 Thread Stephen Wilson
Morally, the presence of a gate vma is more an attribute of a particular mm than a particular task. Moreover, dropping the dependency on task_struct will help make both existing and future operations on mm's more flexible and convenient. Signed-off-by: Stephen Wilson wils...@start.ca ---

[PATCH 4/5] mm: arch: make in_gate_area take an mm_struct instead of a task_struct

2011-03-08 Thread Stephen Wilson
Morally, the question of whether an address lies in a gate vma should be asked with respect to an mm, not a particular task. Moreover, dropping the dependency on task_struct will help make existing and future operations on mm's more flexible and convenient. Signed-off-by: Stephen Wilson

[PATCH 5/5] mm: arch: rename in_gate_area_no_task to in_gate_area_no_mm

2011-03-08 Thread Stephen Wilson
Now that gate vma's are referenced with respect to a particular mm and not a particular task it only makes sense to propagate the change to this predicate as well. Signed-off-by: Stephen Wilson wils...@start.ca --- arch/powerpc/kernel/vdso.c |2 +- arch/s390/kernel/vdso.c

Re: [rtc-linux] [PATCH] RTC driver(Linux) for PT7C4338 chip.

2011-03-08 Thread Andrew Morton
On Thu, 3 Mar 2011 10:22:39 +0100 Wolfram Sang w.s...@pengutronix.de wrote: Hi, +/* + * This file provides Date Time support (no alarms) for PT7C4338 chip. + * + * This file is based on drivers/rtc/rtc-ds1307.c Please explain why you can't use rtc-ds1307 directly (or with slight

Re: Mpc8315erdb openvpn segmentation fault

2011-03-08 Thread Vasanth Ragavendran
Thanks again Scott. That was really helpful. Actually i forgot to mention that i had created an ext2 ramdisk file system and it was non-persistent. and then i changed the file system to jffs2 and it is persistent. so my question is why is that the ext2 ramdisk is non-persistent? and what needs to

[BUG] rebuild_sched_domains considered dangerous

2011-03-08 Thread Benjamin Herrenschmidt
So I've been experiencing hangs shortly after boot with recent kernels on a Power7 machine. I was testing with PREEMPT HZ=1024 which might increase the frequency of the problem but I don't think they are necessary to expose it. From what I've figured out, when the machine hangs, it's essentially

[PATCH] powerpc: perf: Handle events that raise an exception without overflowing

2011-03-08 Thread Anton Blanchard
Events on POWER7 can roll back if a speculative event doesn't eventually complete. Unfortunately in some rare cases they will raise a performance monitor exception. We need to catch this to ensure we reset the PMC. In all cases the PMC will be 256 or less cycles from overflow. Signed-off-by:

Re: [PATCH 01/28] powerpc: mpic irq_data conversion.

2011-03-08 Thread Benjamin Herrenschmidt
On Tue, 2011-03-08 at 00:59 +0100, Lennert Buytenhek wrote: -static void mpic_unmask_ht_irq(unsigned int irq) +static void mpic_unmask_ht_irq(struct irq_data *d) { - struct mpic *mpic = mpic_from_irq(irq); - unsigned int src = mpic_irq_to_hw(irq); + struct mpic *mpic =

Re: RFC: x86: kill binutils 2.16.x?

2011-03-08 Thread Segher Boessenkool
The problem is not with the kernel compile itself, but with the 2.12 dssall binutils test. Basically, recent binutils treats e500 as effectively a separate architecture that happens to share *most* of the opcodes with regular PowerPC. Any opcode which is not understood by the e500 chip is

powerpc/e500: binutils tests [Was: RFC: x86: kill binutils 2.16.x?]

2011-03-08 Thread Kyle Moffett
On Tue, Mar 8, 2011 at 23:39, Segher Boessenkool seg...@kernel.crashing.org wrote: The problem is not with the kernel compile itself, but with the 2.12 dssall binutils test.  Basically, recent binutils treats e500 as effectively a separate architecture that happens to share *most* of the

Re: [PATCH 1/2] kdump: Allow shrinking of kdump region to be overridden

2011-03-08 Thread Mahesh Jagannath Salgaonkar
On 08/25/2010 06:07 AM, Eric W. Biederman wrote: Anton Blanchard an...@samba.org writes: On ppc64 the crashkernel region almost always overlaps an area of firmware. This works fine except when using the sysfs interface to reduce the kdump region. If we free the firmware area we are

Re: [rtc-linux] [PATCH] RTC driver(Linux) for PT7C4338 chip.

2011-03-08 Thread Wolfram Sang
On Tue, Mar 08, 2011 at 04:55:31PM -0800, Andrew Morton wrote: On Thu, 3 Mar 2011 10:22:39 +0100 Wolfram Sang w.s...@pengutronix.de wrote: Hi, +/* + * This file provides Date Time support (no alarms) for PT7C4338 chip. + * + * This file is based on drivers/rtc/rtc-ds1307.c

Re: Mpc8315erdb openvpn segmentation fault

2011-03-08 Thread Vasanth Ragavendran
Thanks again Scott. That was really helpful. Actually i forgot to mention that i had created an ext2 ramdisk file system and it was non-persistent (the mount point was /dev/ram for this ext2 ramdisk filesystem). and then i changed the file system to jffs2 and it is persistent (and the mount point

[PATCH][v3] driver/FSL SATA:Fix wrong Device Error Register usage

2011-03-08 Thread Prabhakar Kushwaha
When a single device error is detected, the device under the error is indicated by the error bit set in the DER. There is a one to one mapping between register bit and devices on Port multiplier(PMP) i.e. bit 0 represents PMP device 0 and bit 1 represents PMP device 1 etc. Current implementation

Re: [PATCH 01/28] powerpc: mpic irq_data conversion.

2011-03-08 Thread Lennert Buytenhek
On Wed, Mar 09, 2011 at 02:22:55PM +1100, Benjamin Herrenschmidt wrote: -static void mpic_unmask_ht_irq(unsigned int irq) +static void mpic_unmask_ht_irq(struct irq_data *d) { - struct mpic *mpic = mpic_from_irq(irq); - unsigned int src = mpic_irq_to_hw(irq); + struct mpic

Re: [PATCH 01/28] powerpc: mpic irq_data conversion.

2011-03-08 Thread Benjamin Herrenschmidt
On Wed, 2011-03-09 at 08:33 +0100, Lennert Buytenhek wrote: -static void mpic_unmask_ht_irq(unsigned int irq) +static void mpic_unmask_ht_irq(struct irq_data *d) { - struct mpic *mpic = mpic_from_irq(irq); - unsigned int src = mpic_irq_to_hw(irq); + struct mpic *mpic =

Re: powerpc/e500: binutils tests [Was: RFC: x86: kill binutils 2.16.x?]

2011-03-08 Thread Sebastian Andrzej Siewior
* Kyle Moffett | 2011-03-09 00:22:11 [-0500]: On Tue, Mar 8, 2011 at 23:39, Segher Boessenkool seg...@kernel.crashing.org wrote: The problem is not with the kernel compile itself, but with the 2.12 dssall binutils test. ??Basically, recent binutils treats e500 as effectively a separate