From owner-freebsd-current@FreeBSD.ORG Mon Feb 9 18:40:21 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 DD8C31065670 for ; Mon, 9 Feb 2009 18:40:20 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-ew0-f21.google.com (mail-ew0-f21.google.com [209.85.219.21]) by mx1.freebsd.org (Postfix) with ESMTP id 24F368FC08 for ; Mon, 9 Feb 2009 18:40:19 +0000 (UTC) (envelope-from onemda@gmail.com) Received: by ewy14 with SMTP id 14so3294841ewy.19 for ; Mon, 09 Feb 2009 10:40:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=ThRov50nwjBJoyaixdjijRW4rrvfHEcFg/WQqEJzTE4=; b=kwqd+FGEkOqXNn5irBttZ4O1D7mlb69kEL97yqAVIhGTiJ91R2qSE0OAtZs288BxiI AF8K1Lrq3kgxXuasDrbw64vomTEjCla1BCiDnGmdrmcJAdl/jIckCzdZe6by1MJKl7n5 quAA5T8Ist9WCEsbDCz6P0mo154/Dx6vJgQSs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=flnhVFk0FRMK8QnN8oUy6Jj4Zvy2q060mfFedYl6yPIpKaOrI1ScVUIBh9K+CDI+5e Zi/Yzp10BDVci/nKd762XgzBkyYmoiRu0rmygBVZ0iCmVHIaSpaI/TgQUCEn72bO7/Ka SwkqaXpzDGsBAcjoYKY5gS2aOvH9ObeCJOWww= MIME-Version: 1.0 Received: by 10.210.136.10 with SMTP id j10mr4070671ebd.25.1234204819064; Mon, 09 Feb 2009 10:40:19 -0800 (PST) In-Reply-To: <200902091144.03748.jhb@freebsd.org> References: <20090208001656.48a1a14d@gluon> <200902081026.22618.hselasky@c2i.net> <200902091144.03748.jhb@freebsd.org> Date: Mon, 9 Feb 2009 19:40:19 +0100 Message-ID: <3a142e750902091040l522ab605i13d0d5a56c292a6c@mail.gmail.com> From: "Paul B. Mahol" To: John Baldwin Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Bruce Cran , freebsd-current@freebsd.org, 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 18:40:21 -0000 On 2/9/09, John Baldwin wrote: > 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. I'm reporting similar problem with drm+X11+intel when zaping Xorg on SMP enabled kernel (core2 CPU) Panic happens in something like acpi_ec handler. I share John's opinion about *recent* per CPU IDT changes being source of problem. >> --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 > _______________________________________________ > 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" > -- Paul