Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935546AbXFFXPM (ORCPT ); Wed, 6 Jun 2007 19:15:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S935012AbXFFXO5 (ORCPT ); Wed, 6 Jun 2007 19:14:57 -0400 Received: from e6.ny.us.ibm.com ([32.97.182.146]:49870 "EHLO e6.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932813AbXFFXO4 (ORCPT ); Wed, 6 Jun 2007 19:14:56 -0400 Date: Wed, 6 Jun 2007 16:16:42 -0700 From: "Darrick J. Wong" To: "Siddha, Suresh B" Cc: linux-kernel@vger.kernel.org, ebiederm@xmission.com Subject: Re: Device hang when offlining a CPU due to IRQ misrouting Message-ID: <20070606231642.GH13751@tree.beaverton.ibm.com> References: <20070605173647.GC12782@tree.beaverton.ibm.com> <20070605181342.GE17143@linux-os.sc.intel.com> <20070605183300.GD12782@tree.beaverton.ibm.com> <20070605184015.GF17143@linux-os.sc.intel.com> <20070605200954.GE12782@tree.beaverton.ibm.com> <20070605211451.GG17143@linux-os.sc.intel.com> <20070605235707.GB16074@tree.beaverton.ibm.com> <20070606013759.GI17143@linux-os.sc.intel.com> <20070606185829.GA26062@tree.beaverton.ibm.com> <20070606193514.GN17143@linux-os.sc.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="rWhLK7VZz0iBluhq" Content-Disposition: inline In-Reply-To: <20070606193514.GN17143@linux-os.sc.intel.com> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 5700 Lines: 131 --rWhLK7VZz0iBluhq Content-Type: multipart/mixed; boundary="HeFlAV5LIbMFYYuh" Content-Disposition: inline --HeFlAV5LIbMFYYuh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Jun 06, 2007 at 12:35:14PM -0700, Siddha, Suresh B wrote: > Weird. Then the bug can only happen if for some reason, "mask = map" > didn't happen in fixup_irqs(). Can you send us the disassembly of the > fixup_irqs()? Attached. --D --HeFlAV5LIbMFYYuh Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=a Content-Transfer-Encoding: quoted-printable (gdb) disassemble fixup_irqs Dump of assembler code for function fixup_irqs: 0xffffffff8020bf50 : push %rbp 0xffffffff8020bf51 : mov %rsp,%rbp 0xffffffff8020bf54 : push %r13 0xffffffff8020bf56 : xor %r13d,%r13d 0xffffffff8020bf59 : push %r12 0xffffffff8020bf5b : push %rbx 0xffffffff8020bf5c : sub $0x28,%rsp 0xffffffff8020bf60 : mov %rdi,0xffffffffffffffc0(%rbp) 0xffffffff8020bf64 : mov %rsi,0xffffffffffffffc8(%rbp) 0xffffffff8020bf68 : jmp 0xffffffff8020bf73 0xffffffff8020bf6a : inc %r13d 0xffffffff8020bf6d : cmp $0x2,%r13d 0xffffffff8020bf71 : je 0xffffffff8020bf6a 0xffffffff8020bf73 : mov %r13d,%r12d 0xffffffff8020bf76 : lea 0xffffffffffffffd0(%rbp),%rbx 0xffffffff8020bf7a : lea 0xffffffffffffffc0(%rbp),%rdx 0xffffffff8020bf7e : shl $0x8,%r12 0xffffffff8020bf82 : mov $0x80,%ecx 0xffffffff8020bf87 : lea 0xffffffff805505f8(%r12),%rsi 0xffffffff8020bf8f : mov %rbx,%rdi 0xffffffff8020bf92 : callq 0xffffffff802fb606 <__bitmap_and> 0xffffffff8020bf97 : mov %rbx,%rdi 0xffffffff8020bf9a : callq 0xffffffff802fc6ad <__any_online= _cpu> 0xffffffff8020bf9f : add $0xffffffffffffff80,%eax 0xffffffff8020bfa2 : jne 0xffffffff8020bfc5 0xffffffff8020bfa4 : mov %r13d,%esi 0xffffffff8020bfa7 : mov $0xffffffff804a52b0,%rdi 0xffffffff8020bfae : xor %eax,%eax 0xffffffff8020bfb0 : callq 0xffffffff80233d28 0xffffffff8020bfb5 : mov 0xffffffffffffffc0(%rbp),%rax 0xffffffff8020bfb9 : mov %rax,0xffffffffffffffd0(%rbp) 0xffffffff8020bfbd : mov 0xffffffffffffffc8(%rbp),%rax 0xffffffff8020bfc1 : mov %rax,0xffffffffffffffd8(%rbp) 0xffffffff8020bfc5 : mov 0xffffffff80550588(%r12),%rax 0xffffffff8020bfcd : mov 0x58(%rax),%rax 0xffffffff8020bfd1 : test %rax,%rax 0xffffffff8020bfd4 : je 0xffffffff8020bfe5 0xffffffff8020bfd6 : mov 0xffffffffffffffd0(%rbp),%rsi 0xffffffff8020bfda : mov 0xffffffffffffffd8(%rbp),%rdx 0xffffffff8020bfde : mov %r13d,%edi 0xffffffff8020bfe1 : callq *%rax 0xffffffff8020bfe3 : jmp 0xffffffff8020c013 0xffffffff8020bfe5 : cmpq $0x0,0xffffffff805505a8(%r12) 0xffffffff8020bfee : je 0xffffffff8020c013 0xffffffff8020bff0 : mov 5181486(%rip),%eax # 0xf= fffffff806fd024 0xffffffff8020bff6 : inc %eax 0xffffffff8020bff8 : mov %eax,5181478(%rip) # 0xf= fffffff806fd024 0xffffffff8020bffe : dec %eax 0xffffffff8020c000 : jne 0xffffffff8020c013 0xffffffff8020c002 : mov %r13d,%esi 0xffffffff8020c005 : mov $0xffffffff804a52ce,%rdi 0xffffffff8020c00c : xor %eax,%eax 0xffffffff8020c00e : callq 0xffffffff80233d28 0xffffffff8020c013 : lea 0x1(%r13),%eax 0xffffffff8020c017 : cmp $0x10ff,%eax 0xffffffff8020c01c : jbe 0xffffffff8020bf6a 0xffffffff8020c022 : callq 0xffffffff8024e46e 0xffffffff8020c027 : sti =20 0xffffffff8020c028 : mov $0x418958,%edi 0xffffffff8020c02d : callq 0xffffffff803018cf <__const_ude= lay> 0xffffffff8020c032 : cli =20 0xffffffff8020c033 : callq 0xffffffff8024cf31 0xffffffff8020c038 : add $0x28,%rsp 0xffffffff8020c03c : pop %rbx 0xffffffff8020c03d : pop %r12 0xffffffff8020c03f : pop %r13 0xffffffff8020c041 : leaveq=20 0xffffffff8020c042 : retq =20 --HeFlAV5LIbMFYYuh-- --rWhLK7VZz0iBluhq Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGZ0Baa6vRYYgWQuURAlzcAJ0WhlV2JinIZsALxxGbiEsXLcWGfQCdGYcA yFJgXt0DNOgjFbSGU4acnJ8= =MWlD -----END PGP SIGNATURE----- --rWhLK7VZz0iBluhq-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/