Received: with ECARTIS (v1.0.0; list linux-mips); Mon, 28 Jul 2014 12:15:36 +0200 (CEST) Received: from hall.aurel32.net ([195.154.112.97]:34060 "EHLO hall.aurel32.net" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S6861589AbaG1JqBSToJV (ORCPT ); Mon, 28 Jul 2014 11:46:01 +0200 Received: from aurel32 by hall.aurel32.net with local (Exim 4.80) (envelope-from ) id 1XBhVD-0006Q5-EI; Mon, 28 Jul 2014 11:45:55 +0200 Date: Mon, 28 Jul 2014 11:45:55 +0200 From: Aurelien Jarno To: =?utf-8?B?6ZmI5Y2O5omN?= Cc: linux-mips , Andreas Barth Subject: Re: SMP IPI issues on Loongson 3A based machines Message-ID: <20140728094555.GB31499@hall.aurel32.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Mailer: Mutt 1.5.21 (2010-09-15) User-Agent: Mutt/1.5.21 (2010-09-15) Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 41665 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: aurelien@aurel32.net Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips Hi, On Sun, Jul 27, 2014 at 12:20:11PM +0800, 陈华才 wrote: > Hi, > > Which version of gcc do you use, we found that kernel built by gcc<4.5 have the "irq not handled" issue. It was with gcc-4.7. > I haven't reproduce mysqld issue yet (I don't have enough time), but I think I can reproduce it next week. Ok, thanks. If you want to reproduce it easily, here is a chroot to trigger the problem: http://temp.aurel32.net/mysql-chroot.tar.xz Unpack it, and run "chroot ./mysql-chroot ./root/bug.sh". Note also that we have been able to trigger the problem even with a kernel built with PREEMPT=y, by building llvm-toolchain-3.5. The kernel messages on the console look the same, though we haven't debugged the issue further yet. Thanks, Aurelien > > ------------------ Original ------------------ > From: "Aurelien Jarno" > Date: Sat, Jul 26, 2014 10:51 PM > To: "陈华才"; > Cc: "linux-mips";"Andreas Barth"; > Subject: Re: SMP IPI issues on Loongson 3A based machines > > > On Sat, Jul 26, 2014 at 02:05:28PM +0800, 陈华才 wrote: > > Hi, > > > > I'm debugging, please wait for some time. > > Great, thanks! Does it means you have been able to reproduce the issue? > If not I can provide you a copy of the chroot I used to reproduce the > issue. > > I also tried with the kernel from > http://dev.lemote.com/cgit/linux-official.git/ but unfortunately > I haven't been able to get it working correctly with > PREEMPT_VOLUNTARY=yes. I have tried with the kernel from the master > branch and after merging the v3.15.6 tag. In one of the case I got the > following backtrace on the serial console: > > | [ 75.128906] irq 17, desc: ffffffff80c911e0, depth: 1, count: 0, unhandled: 0 > | [ 75.136718] ->handle_irq(): ffffffff80289a18, handle_bad_irq+0x0/0x2d0 > | [ 75.144531] ->irq_data.chip(): ffffffff80cbe210, 0xffffffff80cbe210 > | [ 75.144531] ->action(): (null) > | [ 75.144531] IRQ_NOPROBE set > | [ 75.144531] unexpected IRQ # 17 > > Aurelien > > -- > Aurelien Jarno GPG: 4096R/1DDD8C9B > aurelien@aurel32.net http://www.aurel32.net -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurelien@aurel32.net http://www.aurel32.net