From owner-freebsd-usb@FreeBSD.ORG Thu Apr 23 06:59:41 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 57CE51065688; Thu, 23 Apr 2009 06:59:41 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.swip.net [212.247.154.65]) by mx1.freebsd.org (Postfix) with ESMTP id 8C7238FC1F; Thu, 23 Apr 2009 06:59:40 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=98Dae9zcMkUA:10 a=sWoc6dfXLBoA:10 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=5ECRmXxOZc7mAxISaV0A:9 a=2-drugtvqdRQIO5LCjUA:7 a=lT7YVwu71gIdgR6hcnyaIxASkQMA:4 a=pHyjbESoQXC1FM12:21 a=IPBldzQPDE2ulueZ:21 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop) by mailfe03.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1234410542; Thu, 23 Apr 2009 08:59:39 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Thu, 23 Apr 2009 09:02:10 +0200 User-Agent: KMail/1.9.7 References: <200904211949.n3LJniob051061@www.freebsd.org> In-Reply-To: <200904211949.n3LJniob051061@www.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904230902.11572.hselasky@c2i.net> Cc: freebsd-gnats-submit@freebsd.org Subject: Re: usb/133896: [cdce] panic when disconnecting cdce device just before powering off PC X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Apr 2009 06:59:41 -0000 On Tuesday 21 April 2009, Bruce Cran wrote: > >Number: 133896 > >Category: usb > >Synopsis: [cdce] panic when disconnecting cdce device just before > > powering off PC Confidential: no > >Severity: serious > >Priority: low > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Tue Apr 21 19:50:00 UTC 2009 > >Closed-Date: > >Last-Modified: > >Originator: Bruce Cran > >Release: 8.0-CURRENT > >Organization: > >Environment: > > FreeBSD 8.0-CURRENT amd64 > > >Description: > > Running -current from mid-April 2009 I got a panic when shutting > down. I'd pressed the power button on my GTA02 and at about the same > time pressed the power button on my PC too. It seems the GTA02 > CDCE device powered off first, just before FreeBSD was going to power > off: > > Waiting (max 60 seconds) for system process 'vnlru' to stop...done > Waiting (max 60 seconds) for system process 'bufdaemon' to stop...done > Waiting (max 60 seconds) for system process 'syncer' to stop... > Syncing disks, vnodes remaining...1 1 1 0 0 0 done > All buffers synced. > Uptime: 10h12m10s > ugen3.2: at usbus3 (disconnected) > cdce0: at uhub3, port 2, addr 2 (disconnected) > > > Fatal trap 12: page fault while in kernel mode > cpuid = 0; apic id = 00 > fault virtual address = 0x288 > fault code = supervisor read data, page not present > instruction pointer = 0x20:0xffffffff80343d3e > stack pointer = 0x28:0xfffffffe4001c8a0 > frame pointer = 0x28:0xfffffffe4001c8c0 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, long 1, def32 0, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 1 (init) > [thread pid 1 tid 100002 ] > Stopped at _mtx_lock_sleep+0x4e: movl 0x288(%rcx),%esi > db> bt > Tracing pid 1 tid 100002 td 0xffffff00014d7a80 > _mtx_lock_sleep() at _mtx_lock_sleep+0x4e > _sleep() at _sleep+0x232 > usb2_proc_mwait() at usb2_proc_mwait+0x46 > usb2_ether_ifshutdown() at usb2_ether_ifshutdown+0xaf > cdce_shutdown() at cdce_shutdown+0x11 > bus_generic_shutdown() at bus_generic_shutdown+0x1a > bus_generic_shutdown() at bus_generic_shutdown+0x1a > bus_generic_shutdown() at bus_generic_shutdown+0x1a > bus_generic_shutdown() at bus_generic_shutdown+0x1a > bus_generic_shutdown() at bus_generic_shutdown+0x1a > bus_generic_shutdown() at bus_generic_shutdown+0x1a > acpi_shutdown() at acpi_shutdown+0x9 > bus_generic_shutdown() at bus_generic_shutdown+0x1a > bus_generic_shutdown() at bus_generic_shutdown+0x1a > root_bus_module_handler() at root_bus_module_handler+0x11b > module_shutdown() at module_shutdown+0x84 > boot() at boot+0x37b > reboot() at reboot+0x46 > syscall() at syscall+0x264 > Xfast_syscall() at Xfast_syscall+0xd0 > --- syscall (55, FreeBSD ELF64, reboot), rip = 0x40897c, rsp = > 0x7fffffffe738, rbp = 0x402420 --- > > >How-To-Repeat: > > > >Fix: > > > > > >Release-Note: > >Audit-Trail: > >Unformatted: > I'm working on this issue. --HPS