linux-mips
[Top] [All Lists]

Re: cmpxchg broken in some situation

To: Fuxin Zhang <fxzhang@ict.ac.cn>
Subject: Re: cmpxchg broken in some situation
From: Ralf Baechle <ralf@linux-mips.org>
Date: Mon, 1 Oct 2007 16:26:20 +0100
Cc: linux-mips@linux-mips.org
In-reply-to: <47010E15.7060109@ict.ac.cn>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <46FF7BC2.5050905@ict.ac.cn> <20071001025340.GA7091@linux-mips.org> <47010E15.7060109@ict.ac.cn>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.14 (2007-02-12)
On Mon, Oct 01, 2007 at 11:11:17PM +0800, Fuxin Zhang wrote:

> Sorry that it seems not work:
> the kernel oops at sysfs_open_file->sysfs_get_active with unaligned 
> access(last seen exception on screen, no serial console by hand so it 
> may not be the first exception). It is probably caused by 
> "atomic_cmpxchg" there.
> And keep the old kernel using new modules with patched cmpxchg also lead 
> to glxgears die(should be lock problem like before).

Can you look at the disassembly of the generated code?  It should hopefully
be relativly obvious in the disassembly.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>