From owner-freebsd-usb@FreeBSD.ORG Sat Dec 5 19:26:53 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 2C717106566B for ; Sat, 5 Dec 2009 19:26:53 +0000 (UTC) (envelope-from mashtizadeh@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.27]) by mx1.freebsd.org (Postfix) with ESMTP id DD14C8FC1B for ; Sat, 5 Dec 2009 19:26:52 +0000 (UTC) Received: by qw-out-2122.google.com with SMTP id 9so737423qwb.7 for ; Sat, 05 Dec 2009 11:26:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=OWDRk7XeMG2R71Z3nL5bTiuSSRxir9gQkI3VvaS67UQ=; b=qCuHSfJziKzkMfHMe0xOa1nQqbClN8ka6nxR17gUYsLabgSbn8arnFj1lkpszl3Zyi Pf1OtItBc9ETf2JGv2cTcuUDS/hMFL8FxyyaSKa0XxLYg3sbmnd0TW+8LwULm45bDmSG QGKtFhqVVTZSPv3i2dgVLUKH5CSvmhn0uqeuU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=pMkaaUTBJRDb+7j+mdZKLYYmokS6GXzmGei+rlQh1YDnryfoEzdYUXVoXEF0fyaFLD 9b8qbByiEh7acyke6VB70ayTZzdXB7Sox+hYXjITzh9jWK9ABB/sNJepayPZyWlZMQah wvbrahMzIgKXBN/1bkqgChuMFIFYxzA8Xqyxg= MIME-Version: 1.0 Received: by 10.224.81.132 with SMTP id x4mr2553063qak.163.1260039850600; Sat, 05 Dec 2009 11:04:10 -0800 (PST) Date: Sat, 5 Dec 2009 11:04:10 -0800 Message-ID: <440b3e930912051104h365888ecka32353ac415afd8a@mail.gmail.com> From: Ali Mashtizadeh To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: FreeBSD 8.0 RELEASE USB deadlocks? 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: Sat, 05 Dec 2009 19:26:53 -0000 Is anyone seeing deadlocks with USB devices on 8 RELEASE? This is a definite regression from 7.1 and 7.2 for me. I had just upgraded my laptop an HP NX6125, AMD Turion 64, ATI Xpress 200M Chipset. Anytime I insert or remove a USB device, WIFI chipset (broadcom with ndis driver)/Bluetooth, External USB hard drive, The system becomes completely unresponsive. If you look at the top output below my attempt to run a zpool import on the Western digital hard drive I have has stopped in tx->tx and I can't kill the process. --- dmesg --- ohci0: mem 0xd8400000-0xd8400fff irq 19 at device 19.0 on pci0 ohci0: [ITHREAD] usbus0: on ohci0 ohci1: mem 0xd8401000-0xd8401fff irq 19 at device 19.1 on pci0 ohci1: [ITHREAD] usbus1: on ohci1 ehci0: mem 0xd8402000-0xd8402fff irq 19 at device 19.2 on pci0 ehci0: [ITHREAD] usbus2: EHCI version 1.0 usbus2: on ehci0 .... ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus2 --- END --- --- usbconfig --- ugen0.1: at usbus0, cfg=3D255 md=3DHOST spd=3DFULL (12M= bps) pwr=3DON ugen1.1: at usbus1, cfg=3D0 md=3DHOST spd=3DFULL (12Mbp= s) pwr=3DON ugen2.1: at usbus2, cfg=3D0 md=3DHOST spd=3DHIGH (480Mb= ps) pwr=3DON ugen1.2: at usbus1, cfg=3D0 md=3DHOST spd=3DFULL (12Mbps) pwr=3DON ugen2.2: at usbus2, cfg=3D0 md=3DHOST spd=3DHIGH (480Mbps) pwr=3DON --- END --- --- top --- 1970 root 1 45 0 14636K 2312K tx->tx 0:00 0.00% zpool --- END --- ------------- /home/ali# usbconfig -u 2 -a 2 dump_curr_config_desc ugen2.2: at usbus2, cfg=3D0 md=3DHOST spd=3DHIGH (480Mbps) p r=3DON Configuration index 0 bLength =3D 0x0009 bDescriptorType =3D 0x0002 wTotalLength =3D 0x0039 bNumInterfaces =3D 0x0002 bConfigurationValue =3D 0x0001 iConfiguration =3D 0x0000 bmAttributes =3D 0x00c0 bMaxPower =3D 0x0001 Interface 0 bLength =3D 0x0009 bDescriptorType =3D 0x0004 bInterfaceNumber =3D 0x0000 bAlternateSetting =3D 0x0000 bNumEndpoints =3D 0x0002 bInterfaceClass =3D 0x0008 bInterfaceSubClass =3D 0x0006 bInterfaceProtocol =3D 0x0050 iInterface =3D 0x0000 Endpoint 0 bLength =3D 0x0007 bDescriptorType =3D 0x0005 bEndpointAddress =3D 0x0081 bmAttributes =3D 0x0002 wMaxPacketSize =3D 0x0200 bInterval =3D 0x0007 bRefresh =3D 0x0000 bSynchAddress =3D 0x0000 Endpoint 1 bLength =3D 0x0007 bDescriptorType =3D 0x0005 bEndpointAddress =3D 0x0002 bmAttributes =3D 0x0002 wMaxPacketSize =3D 0x0200 bInterval =3D 0x0000 bRefresh =3D 0x0000 bSynchAddress =3D 0x0000 Interface 1 bLength =3D 0x0009 bDescriptorType =3D 0x0004 bInterfaceNumber =3D 0x0001 bAlternateSetting =3D 0x0000 bNumEndpoints =3D 0x0001 bInterfaceClass =3D 0x0003 bInterfaceSubClass =3D 0x0000 bInterfaceProtocol =3D 0x0000 iInterface =3D 0x0005 Additional Descriptor bLength =3D 0x09 bDescriptorType =3D 0x21 bDescriptorSubType =3D 0x10 RAW dump: 0x00 | 0x09, 0x21, 0x10, 0x01, 0x00, 0x01, 0x22, 0x21, 0x08 | 0x00 Endpoint 0 bLength =3D 0x0007 bDescriptorType =3D 0x0005 bEndpointAddress =3D 0x0083 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0040 bInterval =3D 0x0006 bRefresh =3D 0x0000 bSynchAddress =3D 0x0000 --=20 Ali Mashtizadeh =D8=B9=D9=84=DB=8C =D9=85=D8=B4=D8=AA=DB=8C =D8=B2=D8=A7=D8=AF=D9=87