Skip to contentSkip to conversation

SMP IPI issues on Loongson 3A based machines

DISCUSSION Aurelien Jarno 1 participant 1 message Jul 28, 2014 1 message not in the archive MIPS

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi,

Quoted 3 lines · 陈华才

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.

Quoted 1 line

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

Quoted 37 lines

------------------ Original ------------------
From: "Aurelien Jarno"<[email protected]>
Date: Sat, Jul 26, 2014 10:51 PM
To: "陈华才"<[email protected]>;
Cc: "linux-mips"<[email protected]>;"Andreas Barth"<[email protected]>;
Subject: Re: SMP IPI issues on Loongson 3A based machines

Quoted 3 lines · 陈华才

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

Signature · 2 lines
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
[email protected]                 http://www.aurel32.net
Signature · 2 lines
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
[email protected]                 http://www.aurel32.net