Received: by mail.netbsd.org (Postfix, from userid 605) id 6F94E14A16D; Fri, 9 Dec 2011 01:53:03 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 8FCAB14A16C for ; Fri, 9 Dec 2011 01:53:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id ZtLHMkFnvG4Y for ; Fri, 9 Dec 2011 01:53:01 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 67FA914A153 for ; Fri, 9 Dec 2011 01:53:01 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 543DE175DD; Fri, 9 Dec 2011 01:53:01 +0000 (UTC) MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Date: Fri, 9 Dec 2011 01:53:01 +0000 From: "matthew green" Subject: CVS commit: [jmcneill-usbmp] src/sys/dev To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20111209015301.543DE175DD@cvs.netbsd.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "matthew green" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: mrg Date: Fri Dec 9 01:53:00 UTC 2011 Modified Files: src/sys/dev/pci [jmcneill-usbmp]: ehci_pci.c ohci_pci.c uhci_pci.c src/sys/dev/usb [jmcneill-usbmp]: ehci.c ohci.c uaudio.c uhci.c umidi.c usb.c usb_subr.c usbdi.c usbdivar.h Log Message: - make pipe->close method take the thread lock - convert usb_taskq to use mutex/cv - convert needs_explore usage into a cv on the thread lock - remove KERNEL_*LOCK from uaudio and umidi, since we're supposedly MPSAFE here now - use IPL_SCHED instead of IPL_USB (aka biglocked) interrupts - drop the audio thread lock when calling into usb when it may sleep, avoiding a deadlock between audiowrite and audioioctl. this fixes mixerctl -a vs. playing hanging the system XXX probably need to check this in a bunch more places. To generate a diff of this commit: cvs rdiff -u -r1.53.6.1 -r1.53.6.2 src/sys/dev/pci/ehci_pci.c cvs rdiff -u -r1.47 -r1.47.8.1 src/sys/dev/pci/ohci_pci.c cvs rdiff -u -r1.53 -r1.53.8.1 src/sys/dev/pci/uhci_pci.c cvs rdiff -u -r1.181.6.4 -r1.181.6.5 src/sys/dev/usb/ehci.c cvs rdiff -u -r1.218.6.7 -r1.218.6.8 src/sys/dev/usb/ohci.c cvs rdiff -u -r1.124 -r1.124.2.1 src/sys/dev/usb/uaudio.c cvs rdiff -u -r1.240.6.5 -r1.240.6.6 src/sys/dev/usb/uhci.c cvs rdiff -u -r1.53 -r1.53.2.1 src/sys/dev/usb/umidi.c cvs rdiff -u -r1.125.6.4 -r1.125.6.5 src/sys/dev/usb/usb.c cvs rdiff -u -r1.180.6.2 -r1.180.6.3 src/sys/dev/usb/usb_subr.c cvs rdiff -u -r1.134.2.4 -r1.134.2.5 src/sys/dev/usb/usbdi.c cvs rdiff -u -r1.93.8.3 -r1.93.8.4 src/sys/dev/usb/usbdivar.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.