From owner-freebsd-current@FreeBSD.ORG Thu Nov 3 20:09:18 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 13CCD1065670 for ; Thu, 3 Nov 2011 20:09:18 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.c2i.net [212.247.154.130]) by mx1.freebsd.org (Postfix) with ESMTP id 9013B8FC1D for ; Thu, 3 Nov 2011 20:09:17 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 197443195; Thu, 03 Nov 2011 21:09:15 +0100 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Thu, 3 Nov 2011 21:06:20 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <4EB1602C.6030807@janh.de> <201111031942.30498.hselasky@c2i.net> <201111032104.23332.hselasky@c2i.net> In-Reply-To: <201111032104.23332.hselasky@c2i.net> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201111032106.20278.hselasky@c2i.net> Cc: Jan Henrik Sylvester Subject: Re: USB3 express card panics on 9.0-RC1 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Nov 2011 20:09:18 -0000 On Thursday 03 November 2011 21:04:23 Hans Petter Selasky wrote: > On Thursday 03 November 2011 19:42:30 Hans Petter Selasky wrote: > > On Thursday 03 November 2011 13:30:19 Jan Henrik Sylvester wrote: > > > After reading http://www.unixguide.net/freebsd/faq/18.13.shtml , I > > > found that ffffffff806e8040 t usb_process is the last symbol before > > > instruction pointer = 0x20:0xffffffff806e80aa. Does this help? > > > > Try add: > > > > options KDB # Enable kernel debugger support. > > options DDB # Support DDB. > > Hi, > > Looks like it panics at: > > mtx_lock(up->up_mtx); > > In "usb_process()" which is created by the "xhci0" instance. > > I would really like to see a dump of "up" and "up_mtx" because I cannot see > how this can happen. > > Have you seen any USB errors in the dmesg up to the point of this panic? > > --HPS Here is a snippet of assembly code: ffffffff806e808b: 48 8b 13 mov (%rbx),%rdx ffffffff806e808e: 83 6a 0c 01 subl $0x1,0xc(%rdx) ffffffff806e8092: e8 19 4e 42 00 callq ffffffff80b0ceb0 ffffffff806e8097: 65 48 8b 34 25 00 00 mov %gs:0x0,%rsi ffffffff806e809e: 00 00 ffffffff806e80a0: 49 8b 7c 24 40 mov 0x40(%r12),%rdi ffffffff806e80a5: b8 04 00 00 00 mov $0x4,%eax ffffffff806e80aa: f0 48 0f b1 77 18 lock cmpxchg %rsi,0x18(%rdi) ^^^^^ fault line ffffffff806e80b0: 0f 94 c0 sete %al ffffffff806e80b3: 84 c0 test %al,%al ffffffff806e80b5: 0f 84 5f 01 00 00 je ffffffff806e821a ffffffff806e80bb: 4d 8d 6c 24 10 lea 0x10(%r12),%r13 ffffffff806e80c0: 4d 8d 74 24 20 lea 0x20(%r12),%r14 ffffffff806e80c5: 49 89 5c 24 38 mov %rbx,0x38(%r12) --HPS