From owner-freebsd-usb@FreeBSD.ORG Tue Jan 31 19:44:18 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8943616A420 for ; Tue, 31 Jan 2006 19:44:18 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5735043D53 for ; Tue, 31 Jan 2006 19:44:15 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn [127.0.0.1]) by gwyn.kn-bremen.de (8.13.4/8.13.4/Debian-3) with ESMTP id k0VJiEXU014910; Tue, 31 Jan 2006 20:44:14 +0100 Received: from saturn.kn-bremen.de (uucp@localhost) by gwyn.kn-bremen.de (8.13.4/8.13.4/Submit) with UUCP id k0VJiEKb014908; Tue, 31 Jan 2006 20:44:14 +0100 Received: from saturn.kn-bremen.de (nox@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.13.3/8.13.1) with ESMTP id k0VJgi6A076144; Tue, 31 Jan 2006 20:42:44 +0100 (CET) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.13.3/8.13.1/Submit) id k0VJgi5D076143; Tue, 31 Jan 2006 20:42:44 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Tue, 31 Jan 2006 20:42:44 +0100 To: Ian Dowse Message-ID: <20060131194244.GA75983@saturn.kn-bremen.de> References: <20060130223413.GA11711@saturn.kn-bremen.de> <200601310112.aa34663@nowhere.iedowse.com> <20060131182045.GA47403@saturn.kn-bremen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060131182045.GA47403@saturn.kn-bremen.de> User-Agent: Mutt/1.4.2.1i Cc: freebsd-usb@freebsd.org Subject: Re: cvs commit: src/sys/dev/usb ehci.c ehci_pci.c ehcivar.h 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: Tue, 31 Jan 2006 19:44:18 -0000 On Tue, Jan 31, 2006 at 07:20:46PM +0100, Juergen Lock wrote: > On Tue, Jan 31, 2006 at 01:12:35AM +0000, Ian Dowse wrote: > > In message <20060130223413.GA11711@saturn.kn-bremen.de>, Juergen Lock writes: > > > Alright, here comes that: > > > > > intr_context = 3, > > > > Interesting - this actually suggests that two threads might be in > > the the interrupt service routine at the same time, which should > > not be possible unless there is a bug causing a callback to sleep. > > > > Could you see if you can find the EHCI interrupt thread in the output of: > > > > ps -axl -M vmcore -N kernel | grep irq > > > > It might show up like "[irq3: ehci" but if there are other interrupts > > shared with it you might need to look through dmesg output to find the > > IRQ number used by ehci and then look for that thread instead. > > Had to look at dmesg, ehci is sharing irq 11 with the promise sata > card and the symbios scsi card. > > > > Then from gdb, use 'info threads' to find the gdb thread ID for it > > (look for the PID=XX then read the first column). Finally, "thread > > TID" followed by "bt" should show what that thread is doing. e.g. > > if you see > > > > 7 Thread 100002 (PID=14: irq3: ehci0) 0xc050bb23 in ... > > > > then use "thread 7" and "bt". > > Alright, looks like it was paging: (usb_block_allocmem ending up > calling contigmalloc... which makes me wonder what would happen > there if someone had swap on a umass device? swap here is on > ad4s2b which is on the sata card.) Ah, seems the actual problem is that it is sleeping although bus_dmamem_alloc is called with BUS_DMA_NOWAIT, and there even is a pr for that: http://www.freebsd.org/cgi/query-pr.cgi?pr=78179 The pr is still open so i guess there is no fix yet?