From owner-freebsd-current@FreeBSD.ORG Mon Feb 9 17:56:42 2009 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 20ABC10656C3 for ; Mon, 9 Feb 2009 17:56:42 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id E5BA18FC21 for ; Mon, 9 Feb 2009 17:56:41 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (pool-98-109-39-197.nwrknj.fios.verizon.net [98.109.39.197]) by cyrus.watson.org (Postfix) with ESMTPSA id 771FC46B2A; Mon, 9 Feb 2009 12:56:41 -0500 (EST) Received: from localhost (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.14.3/8.14.3) with ESMTP id n19HuN2t005367; Mon, 9 Feb 2009 12:56:35 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-current@freebsd.org Date: Mon, 9 Feb 2009 11:44:03 -0500 User-Agent: KMail/1.9.7 References: <20090208001656.48a1a14d@gluon> <200902081026.22618.hselasky@c2i.net> In-Reply-To: <200902081026.22618.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200902091144.03748.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Mon, 09 Feb 2009 12:56:35 -0500 (EST) X-Virus-Scanned: ClamAV 0.94.2/8968/Mon Feb 9 10:06:24 2009 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Bruce Cran , Hans Petter Selasky Subject: Re: "Fatal trap" when unloading usb2_controller_ehci 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: Mon, 09 Feb 2009 17:56:42 -0000 On Sunday 08 February 2009 4:26:20 am Hans Petter Selasky wrote: > Hi, > > I don't think this is a USB problem. I rather think it has something to do > with the IRQ handler. On my box the EHCI IRQ is shared with the IRQ of the > graphics adapter, and when I unload the EHCI driver under X11 a couple of > times X11 freezes. This does not happen on the console. Perhaps try reverting Jeff's per-CPU IDT changes to see if it is related to that? It seems that the IDT handler was torn down, but that an APIC IRQ wasn't masked or some such. > --HPS > > On Sunday 08 February 2009, Bruce Cran wrote: > > Unloading usb2_controller_ehci is crashing FreeBSD on -CURRENT > > from a few days ago, resulting in a "Fatal trap" that isn't immediately > > fatal but ends up knocking out the rest of the system. > > > > Shortly after issuing a kldunload, the kernel drops into DDB with: > > > > Fatal trap 30: reserved (unknown) fault while in kernel mode > > cpuid = 0; apic id = 00 > > instruction pointer = 0x8 : 0xffffffff804bc646 > > stack pointer = 0x10: 0xfffffffe40023b70 > > frame pointer = 0x10: 0xfffffffe40023b80 > > code segment = base 0x0, limit 0xfffff, type 0x1b > > processor eflags = interrupt enabled, IOPL = 0 > > current process = 11 (idle : cpu0) > > [thread pid 11 tid 100004] > > Stopped at acpi_cpu_c1+0x6 : leave > > > > A backtrace just shows that the idle task was running at the time of > > the trap. Attempting to continue results in a load of "calcru: runtime > > went backwards" messages followed by the ATA driver dying with: > > > > WARNING - SETFEATURES SET TRANSFER MODE taskqueue timeout - completing > > request directly > > > > Then follows similar messages about SET_MULTI, ENABLE RCACHE, > > ENABLE_WCACHE and WRITE_DMA48 etc. > > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > -- John Baldwin