From owner-freebsd-usb@FreeBSD.ORG Sun Jul 21 19:10:00 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A76F0B18 for ; Sun, 21 Jul 2013 19:10:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 89B8EDE5 for ; Sun, 21 Jul 2013 19:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r6LJA0Kj034559 for ; Sun, 21 Jul 2013 19:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6LJA0Yl034558; Sun, 21 Jul 2013 19:10:00 GMT (envelope-from gnats) Resent-Date: Sun, 21 Jul 2013 19:10:00 GMT Resent-Message-Id: <201307211910.r6LJA0Yl034558@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alexandre Kovalenko Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7AFAE741 for ; Sun, 21 Jul 2013 19:06:12 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) by mx1.freebsd.org (Postfix) with ESMTP id 6C73BDB6 for ; Sun, 21 Jul 2013 19:06:12 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r6LJ6Bqm024339 for ; Sun, 21 Jul 2013 19:06:11 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r6LJ6BU7024335; Sun, 21 Jul 2013 19:06:11 GMT (envelope-from nobody) Message-Id: <201307211906.r6LJ6BU7024335@oldred.freebsd.org> Date: Sun, 21 Jul 2013 19:06:11 GMT From: Alexandre Kovalenko To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: usb/180726: XHCI umass support breaks between r248085 and r252560 on 9-STABLE X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jul 2013 19:10:00 -0000 >Number: 180726 >Category: usb >Synopsis: XHCI umass support breaks between r248085 and r252560 on 9-STABLE >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jul 21 19:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Alexandre Kovalenko >Release: 9-STABLE >Organization: >Environment: FreeBSD twinhead 9.2-BETA1 FreeBSD 9.2-BETA1 #11 r248085:253503: Sun Jul 21 14:29:42 EDT 2013 root@twinhead:/usr/obj/usr/src/sys/TWINHEAD amd64 >Description: Three different external hard drives (Seagate, Western Digital and noname USB 3.0 enclosure) refused to be recognized as the umass devices. Reverting /usr/src/sys/dev/bsd/controller to r248085, building and loading just xhci module makes drives appear again. Below are snippets from the log in both cases: Non working: Jul 4 14:35:17 twinhead kernel: xhci0: mem 0xfddfe000-0xfddfffff irq 16 at device 0.0 on pci2 Jul 4 14:35:17 twinhead kernel: xhci0: 64 byte context size. Jul 4 14:35:17 twinhead kernel: usbus0 on xhci0 Jul 4 14:35:17 twinhead kernel: usbus0: 5.0Gbps Super Speed USB v3.0 Jul 4 14:35:17 twinhead kernel: ugen0.1: <0x1912> at usbus0 Jul 4 14:35:17 twinhead kernel: uhub0: <0x1912 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 Jul 4 14:35:17 twinhead kernel: uhub0: 8 ports with 8 removable, self powered Jul 4 14:35:24 twinhead kernel: ugen0.2: at usbus0 Jul 4 14:35:24 twinhead kernel: umass0: on usbus0 Jul 4 14:35:29 twinhead kernel: (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 Jul 4 14:35:29 twinhead kernel: (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error Jul 4 14:35:29 twinhead kernel: (probe0:umass-sim0:0:0:0): Retrying command Jul 4 14:35:30 twinhead kernel: (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 Jul 4 14:35:30 twinhead kernel: (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error Jul 4 14:35:30 twinhead kernel: (probe0:umass-sim0:0:0:0): Retrying command Jul 4 14:35:35 twinhead kernel: (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 Jul 4 14:35:35 twinhead kernel: (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error Jul 4 14:35:35 twinhead kernel: (probe0:umass-sim0:0:0:0): Retrying command Jul 4 14:35:36 twinhead kernel: (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 Jul 4 14:35:36 twinhead kernel: (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error Jul 4 14:35:36 twinhead kernel: (probe0:umass-sim0:0:0:0): Retrying command Jul 4 14:35:41 twinhead kernel: (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 Jul 4 14:35:41 twinhead kernel: (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error Jul 4 14:35:41 twinhead kernel: (probe0:umass-sim0:0:0:0): Error 5, Retries exhausted Working: Jul 4 14:40:20 twinhead kernel: ugen0.2: at usbus0 (disconnected) Jul 4 14:40:20 twinhead kernel: umass0: at uhub0, port 2, addr 1 (disconnected) Jul 4 14:40:27 twinhead kernel: ugen0.2: at usbus0 Jul 4 14:40:27 twinhead kernel: umass0: on usbus0 Jul 4 14:40:27 twinhead kernel: (probe0:umass-sim0:0:0:0): REPORT LUNS. CDB: a0 00 00 00 00 00 00 00 00 10 00 00 Jul 4 14:40:27 twinhead kernel: (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error Jul 4 14:40:27 twinhead kernel: (probe0:umass-sim0:0:0:0): SCSI status: Check Condition Jul 4 14:40:27 twinhead kernel: (probe0:umass-sim0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid command operation code) Jul 4 14:40:27 twinhead kernel: (probe0:umass-sim0:0:0:0): Error 22, Unretryable error Jul 4 14:40:27 twinhead kernel: da0 at umass-sim0 bus 0 scbus4 target 0 lun 0 Jul 4 14:40:27 twinhead kernel: da0: Fixed Direct Access SCSI-5 device Jul 4 14:40:27 twinhead kernel: da0: 400.000MB/s transfers Jul 4 14:40:27 twinhead kernel: da0: 190782MB (390721968 512 byte sectors: 255H 63S/T 24321C) Jul 4 14:40:27 twinhead kernel: da0: quirks=0x2 >How-To-Repeat: Plug USB 3.0 mass storage and observe results. >Fix: Roll back /usr/src/sys/dev/usb/controller directory to r248085. >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Sun Jul 21 19:31:21 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 4E3132CD for ; Sun, 21 Jul 2013 19:31:21 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id D2F70EB4 for ; Sun, 21 Jul 2013 19:31:20 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id 5511A7A14B; Sun, 21 Jul 2013 21:31:13 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id C887B8EF629; Sun, 21 Jul 2013 21:31:16 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Si1GiqZ2zMH0; Sun, 21 Jul 2013 21:31:15 +0200 (CEST) Received: from laptop015.hselasky.homeunix.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id 847768EF628; Sun, 21 Jul 2013 21:31:15 +0200 (CEST) Message-ID: <51EC375E.2030404@bitfrost.no> Date: Sun, 21 Jul 2013 21:32:46 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 To: "freebsd-usb@freebsd.org" , bsd.gaijin@gmail.com Subject: Re: usb/180726: XHCI umass support breaks between r248085 and r252560 on 9-STABLE References: <201307211906.r6LJ6BU7024335@oldred.freebsd.org> In-Reply-To: <201307211906.r6LJ6BU7024335@oldred.freebsd.org> Content-Type: multipart/mixed; boundary="------------050502040601060004000209" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jul 2013 19:31:21 -0000 This is a multi-part message in MIME format. --------------050502040601060004000209 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 07/21/13 21:06, Alexandre Kovalenko wrote: > >> Number: 180726 >> Category: usb >> Synopsis: XHCI umass support breaks between r248085 and r252560 on 9-STABLE >> Confidential: no >> Severity: non-critical >> Priority: low >> Responsible: freebsd-usb >> State: open >> Quarter: >> Keywords: >> Date-Required: >> Class: sw-bug >> Submitter-Id: current-users >> Arrival-Date: Sun Jul 21 19:10:00 UTC 2013 >> Closed-Date: >> Last-Modified: >> Originator: Alexandre Kovalenko >> Release: 9-STABLE >> Organization: >> Environment: > FreeBSD twinhead 9.2-BETA1 FreeBSD 9.2-BETA1 #11 r248085:253503: Sun Jul 21 14:29:42 EDT 2013 root@twinhead:/usr/obj/usr/src/sys/TWINHEAD amd64 >> Description: > > Three different external hard drives (Seagate, Western Digital and noname USB 3.0 enclosure) refused to be recognized as the umass devices. Reverting /usr/src/sys/dev/bsd/controller to r248085, building and loading just xhci module makes drives appear again. Below are snippets from the log in both cases: > Can you try: 1) Attached patch. 2) Non ASMedia USB 3.0 controller --HPS --------------050502040601060004000209 Content-Type: text/x-patch; name="xhci.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xhci.diff" diff --git a/sys/dev/usb/controller/xhci.c b/sys/dev/usb/controller/xhci.c index e6d5865..7070ef7 100644 --- a/sys/dev/usb/controller/xhci.c +++ b/sys/dev/usb/controller/xhci.c @@ -1654,7 +1654,7 @@ restart: /* fill out buffer pointers */ if (average == 0) { - npkt = 0; + npkt = 1; memset(&buf_res, 0, sizeof(buf_res)); } else { usbd_get_page(temp->pc, temp->offset + @@ -1691,9 +1691,7 @@ restart: switch (temp->trb_type) { case XHCI_TRB_TYPE_ISOCH: - /* BEI: Interrupts are inhibited until EOT */ dword = XHCI_TRB_3_CHAIN_BIT | XHCI_TRB_3_CYCLE_BIT | - XHCI_TRB_3_BEI_BIT | XHCI_TRB_3_TBC_SET(temp->tbc) | XHCI_TRB_3_TLBPC_SET(temp->tlbpc); if (td != td_first) { @@ -1728,10 +1726,8 @@ restart: dword |= XHCI_TRB_3_DIR_IN; break; default: /* XHCI_TRB_TYPE_NORMAL */ - /* BEI: Interrupts are inhibited until EOT */ dword = XHCI_TRB_3_CHAIN_BIT | XHCI_TRB_3_CYCLE_BIT | XHCI_TRB_3_TYPE_SET(XHCI_TRB_TYPE_NORMAL) | - XHCI_TRB_3_BEI_BIT | XHCI_TRB_3_TBC_SET(temp->tbc) | XHCI_TRB_3_TLBPC_SET(temp->tlbpc); if (temp->direction == UE_DIR_IN) --------------050502040601060004000209-- From owner-freebsd-usb@FreeBSD.ORG Sun Jul 21 19:41:42 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 27D7E838 for ; Sun, 21 Jul 2013 19:41:42 +0000 (UTC) (envelope-from bsd.gaijin@gmail.com) Received: from mail-qa0-x22e.google.com (mail-qa0-x22e.google.com [IPv6:2607:f8b0:400d:c00::22e]) by mx1.freebsd.org (Postfix) with ESMTP id DF4E0F12 for ; Sun, 21 Jul 2013 19:41:41 +0000 (UTC) Received: by mail-qa0-f46.google.com with SMTP id bq6so108296qab.19 for ; Sun, 21 Jul 2013 12:41:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=y9wrpcmOefFMmeBxCsr9QM5Xa2eT579HMZzBKhyYul4=; b=J0VddCBmetFHvEBm2JLeoLeLhArT6CBKcCZWFjzkIiBV2jEBDUxJ6mq0vRbKilw36J xgMswabNngJOmU3WiISCqV1PmIobxly49CGjfBz4FWSuuV1WkNl6zmodyNGy3ALKqxnN 8foyIiUZoIwEMmspl0ur4hYTiMxhhq+BXhl6gD9tk0AVQr54bFR6NnPz/ANJg5mJ1bGR gT4SBITsWU7ta+kEdD2wvtJGYLf3ReOMG058EXWymV3hxTPtM7b4O9CEu9DqTrzVs3N4 +vkei/hSQBVldlSb0k14bNkImX4RRYCt2U/elm2hfKbvPkWo6S5l0GTT9xXm3hqP+XeW zUmA== X-Received: by 10.49.99.7 with SMTP id em7mr823812qeb.85.1374435701384; Sun, 21 Jul 2013 12:41:41 -0700 (PDT) Received: from [10.0.3.5] (pool-173-70-31-190.nwrknj.fios.verizon.net. [173.70.31.190]) by mx.google.com with ESMTPSA id s9sm33875912qeo.3.2013.07.21.12.41.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 21 Jul 2013 12:41:40 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: usb/180726: XHCI umass support breaks between r248085 and r252560 on 9-STABLE From: Alexandre Kovalenko In-Reply-To: <51EC375E.2030404@bitfrost.no> Date: Sun, 21 Jul 2013 15:41:42 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <19B532A6-92EB-425F-B6AE-75F42B74A63B@gmail.com> References: <201307211906.r6LJ6BU7024335@oldred.freebsd.org> <51EC375E.2030404@bitfrost.no> To: Hans Petter Selasky X-Mailer: Apple Mail (2.1508) Cc: "freebsd-usb@freebsd.org" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jul 2013 19:41:42 -0000 On Jul 21, 2013, at 3:32 PM, Hans Petter Selasky = wrote: > On 07/21/13 21:06, Alexandre Kovalenko wrote: >>=20 >>> Number: 180726 >>> Category: usb >>> Synopsis: XHCI umass support breaks between r248085 and = r252560 on 9-STABLE >>> Confidential: no >>> Severity: non-critical >>> Priority: low >>> Responsible: freebsd-usb >>> State: open >>> Quarter: >>> Keywords: >>> Date-Required: >>> Class: sw-bug >>> Submitter-Id: current-users >>> Arrival-Date: Sun Jul 21 19:10:00 UTC 2013 >>> Closed-Date: >>> Last-Modified: >>> Originator: Alexandre Kovalenko >>> Release: 9-STABLE >>> Organization: >>> Environment: >> FreeBSD twinhead 9.2-BETA1 FreeBSD 9.2-BETA1 #11 r248085:253503: Sun = Jul 21 14:29:42 EDT 2013 root@twinhead:/usr/obj/usr/src/sys/TWINHEAD = amd64 >>> Description: >>=20 >> Three different external hard drives (Seagate, Western Digital and = noname USB 3.0 enclosure) refused to be recognized as the umass devices. = Reverting /usr/src/sys/dev/bsd/controller to r248085, building and = loading just xhci module makes drives appear again. Below are snippets = from the log in both cases: >>=20 >=20 > Can you try: >=20 > 1) Attached patch. >=20 > 2) Non ASMedia USB 3.0 controller >=20 > --HPS > =09 > 1) I will try to apply this patch on top of 253503. Let me know if I = need to revert to the earlier rev -- that would take a little bit more = time. 2) ASMedia is not a USB 3.0 controller -- it is one of three umass = devices I was doing testing with (USB-to-SATA enclosure). The other two = devices are made by Seagate and Western Digital. The USB controller is xhci0@pci0:2:0:0: class=3D0x0c0330 card=3D0xffffffff = chip=3D0x00141912 rev=3D0x03 hdr=3D0x00 vendor =3D 'Renesas Technology Corp.' class =3D serial bus subclass =3D USB I can try to find different USB controller, but that would take some = time. Alexandre "Sunny" Kovalenko (=D0=9E=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0= =B4=D1=80 =D0=9A=D0=BE=D0=B2=D0=B0=D0=BB=D0=B5=D0=BD=D0=BA=D0=BE) From owner-freebsd-usb@FreeBSD.ORG Sun Jul 21 19:47:11 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 37743B12 for ; Sun, 21 Jul 2013 19:47:11 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id E61F6F38 for ; Sun, 21 Jul 2013 19:47:10 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id EDD287A163; Sun, 21 Jul 2013 21:47:09 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 77BC58EF63A; Sun, 21 Jul 2013 21:47:13 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1w+F4cVr57XA; Sun, 21 Jul 2013 21:47:13 +0200 (CEST) Received: from laptop015.hselasky.homeunix.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id E38058EF635; Sun, 21 Jul 2013 21:47:12 +0200 (CEST) Message-ID: <51EC3B1C.1070908@bitfrost.no> Date: Sun, 21 Jul 2013 21:48:44 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 To: Alexandre Kovalenko Subject: Re: usb/180726: XHCI umass support breaks between r248085 and r252560 on 9-STABLE References: <201307211906.r6LJ6BU7024335@oldred.freebsd.org> <51EC375E.2030404@bitfrost.no> <19B532A6-92EB-425F-B6AE-75F42B74A63B@gmail.com> In-Reply-To: <19B532A6-92EB-425F-B6AE-75F42B74A63B@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-usb@freebsd.org" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jul 2013 19:47:11 -0000 On 07/21/13 21:41, Alexandre Kovalenko wrote: > 1) I will try to apply this patch on top of 253503. Let me know if I need to revert to the earlier rev -- that would take a little bit more time. You don't need to revert. I'm on #bsdusb on EF-net. --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Jul 21 20:50:01 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 82B78778 for ; Sun, 21 Jul 2013 20:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 63FFF1F5 for ; Sun, 21 Jul 2013 20:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r6LKo1wO056612 for ; Sun, 21 Jul 2013 20:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6LKo1Rg056611; Sun, 21 Jul 2013 20:50:01 GMT (envelope-from gnats) Date: Sun, 21 Jul 2013 20:50:01 GMT Message-Id: <201307212050.r6LKo1Rg056611@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: dfilter@FreeBSD.ORG (dfilter service) Subject: Re: usb/180726: commit references a PR X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: dfilter service List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jul 2013 20:50:01 -0000 The following reply was made to PR usb/180726; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/180726: commit references a PR Date: Sun, 21 Jul 2013 20:45:32 +0000 (UTC) Author: hselasky Date: Sun Jul 21 20:45:23 2013 New Revision: 253532 URL: http://svnweb.freebsd.org/changeset/base/253532 Log: Fix an XHCI regression: The Block Event Interrupts, BEI, feature does not work like expected with the Renesas XHCI chipsets. Revert feature. While at it correct the TD SIZE computation in case of Zero Length Packet, ZLP, in the end of a multi frame USB transfer. MFC after: 1 week PR: usb/180726 Modified: head/sys/dev/usb/controller/xhci.c Modified: head/sys/dev/usb/controller/xhci.c ============================================================================== --- head/sys/dev/usb/controller/xhci.c Sun Jul 21 19:44:53 2013 (r253531) +++ head/sys/dev/usb/controller/xhci.c Sun Jul 21 20:45:23 2013 (r253532) @@ -1682,7 +1682,6 @@ restart: /* fill out buffer pointers */ if (average == 0) { - npkt = 0; memset(&buf_res, 0, sizeof(buf_res)); } else { usbd_get_page(temp->pc, temp->offset + @@ -1697,15 +1696,17 @@ restart: buf_res.length = XHCI_TD_PAGE_SIZE; npkt_off += buf_res.length; - - /* setup npkt */ - npkt = (len_old - npkt_off + temp->max_packet_size - 1) / - temp->max_packet_size; - - if (npkt > 31) - npkt = 31; } + /* setup npkt */ + npkt = (len_old - npkt_off + temp->max_packet_size - 1) / + temp->max_packet_size; + + if (npkt == 0) + npkt = 1; + else if (npkt > 31) + npkt = 31; + /* fill out TRB's */ td->td_trb[x].qwTrb0 = htole64((uint64_t)buf_res.physaddr); @@ -1719,9 +1720,7 @@ restart: switch (temp->trb_type) { case XHCI_TRB_TYPE_ISOCH: - /* BEI: Interrupts are inhibited until EOT */ dword = XHCI_TRB_3_CHAIN_BIT | XHCI_TRB_3_CYCLE_BIT | - XHCI_TRB_3_BEI_BIT | XHCI_TRB_3_TBC_SET(temp->tbc) | XHCI_TRB_3_TLBPC_SET(temp->tlbpc); if (td != td_first) { @@ -1756,10 +1755,8 @@ restart: dword |= XHCI_TRB_3_DIR_IN; break; default: /* XHCI_TRB_TYPE_NORMAL */ - /* BEI: Interrupts are inhibited until EOT */ dword = XHCI_TRB_3_CHAIN_BIT | XHCI_TRB_3_CYCLE_BIT | XHCI_TRB_3_TYPE_SET(XHCI_TRB_TYPE_NORMAL) | - XHCI_TRB_3_BEI_BIT | XHCI_TRB_3_TBC_SET(temp->tbc) | XHCI_TRB_3_TLBPC_SET(temp->tlbpc); if (temp->direction == UE_DIR_IN) @@ -1838,6 +1835,7 @@ restart: usb_pc_cpu_flush(td_first->page_cache); } + /* clear TD SIZE to zero, hence this is the last TRB */ /* remove chain bit because this is the last TRB in the chain */ td->td_trb[td->ntrb - 1].dwTrb2 &= ~htole32(XHCI_TRB_2_TDSZ_SET(15)); td->td_trb[td->ntrb - 1].dwTrb3 &= ~htole32(XHCI_TRB_3_CHAIN_BIT); _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Sun Jul 21 21:42:45 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 03F291A8 for ; Sun, 21 Jul 2013 21:42:45 +0000 (UTC) (envelope-from bsd.gaijin@gmail.com) Received: from mail-qc0-x22d.google.com (mail-qc0-x22d.google.com [IPv6:2607:f8b0:400d:c01::22d]) by mx1.freebsd.org (Postfix) with ESMTP id BCE773ED for ; Sun, 21 Jul 2013 21:42:44 +0000 (UTC) Received: by mail-qc0-f173.google.com with SMTP id l10so3255135qcy.32 for ; Sun, 21 Jul 2013 14:42:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=PLtcUWo71bp1xvL97fulUpuDUv3YENuUWyt1T4oXeW4=; b=lKOHBREbYmh2PDDBlpVRLARXA39c5sbT9XgpBfIO1pEECCjVmMFQrbrVh5F2NCYve9 YuDlO3N2Ju5cnSHD86ZZcSGuCFSBVeyoaQa+n4ByJi3GPCbGfCk5BhrK8mELoAchFyHM iwbnunCtTEp+PZfayN8gVtYk0hMyC9TZ/Oljdat7jFNsNrdZIJJK59VETU1DB+4DjVEt E5CBeFydRecMoC24DAjrmT+K+ZkTi9ech7Dvxf7p3KBdezmCY5TSMzNFfmonq+nekz2W gmmznK3ODsyeGUWMob1sU+ZJ84VPXma94qM51wpteI/vSyLeomREPae9wz6YNoY7WnIo O5Ow== X-Received: by 10.49.63.39 with SMTP id d7mr3868713qes.78.1374442963924; Sun, 21 Jul 2013 14:42:43 -0700 (PDT) Received: from [10.0.3.5] (pool-173-70-31-190.nwrknj.fios.verizon.net. [173.70.31.190]) by mx.google.com with ESMTPSA id l2sm34408928qez.2.2013.07.21.14.42.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 21 Jul 2013 14:42:43 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: usb/180726: XHCI umass support breaks between r248085 and r252560 on 9-STABLE From: Alexandre Kovalenko In-Reply-To: <51EC375E.2030404@bitfrost.no> Date: Sun, 21 Jul 2013 17:42:44 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <2C504991-4869-41A5-A9EF-3290FE36ADAB@gmail.com> References: <201307211906.r6LJ6BU7024335@oldred.freebsd.org> <51EC375E.2030404@bitfrost.no> To: Hans Petter Selasky X-Mailer: Apple Mail (2.1508) Cc: "freebsd-usb@freebsd.org" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jul 2013 21:42:45 -0000 On Jul 21, 2013, at 3:32 PM, Hans Petter Selasky = wrote: > On 07/21/13 21:06, Alexandre Kovalenko wrote: >>=20 >>> Number: 180726 >>> Category: usb >>> Synopsis: XHCI umass support breaks between r248085 and = r252560 on 9-STABLE >>> Confidential: no >>> Severity: non-critical >>> Priority: low >>> Responsible: freebsd-usb >>> State: open >>> Quarter: >>> Keywords: >>> Date-Required: >>> Class: sw-bug >>> Submitter-Id: current-users >>> Arrival-Date: Sun Jul 21 19:10:00 UTC 2013 >>> Closed-Date: >>> Last-Modified: >>> Originator: Alexandre Kovalenko >>> Release: 9-STABLE >>> Organization: >>> Environment: >> FreeBSD twinhead 9.2-BETA1 FreeBSD 9.2-BETA1 #11 r248085:253503: Sun = Jul 21 14:29:42 EDT 2013 root@twinhead:/usr/obj/usr/src/sys/TWINHEAD = amd64 >>> Description: >>=20 >> Three different external hard drives (Seagate, Western Digital and = noname USB 3.0 enclosure) refused to be recognized as the umass devices. = Reverting /usr/src/sys/dev/bsd/controller to r248085, building and = loading just xhci module makes drives appear again. Below are snippets = from the log in both cases: >>=20 >=20 > Can you try: >=20 > 1) Attached patch. >=20 > 2) Non ASMedia USB 3.0 controller >=20 > --HPS > =09 > After applying this patch = (http://svnweb.freebsd.org/base/head/sys/dev/usb/controller/xhci.c?view=3D= patch&r1=3D253532&r2=3D253531&pathrev=3D253532) on top of r253503 the = life is good -- devices are recognized properly. Thank you very much for your help. Alexandre "Sunny" Kovalenko (=D0=9E=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0= =B4=D1=80 =D0=9A=D0=BE=D0=B2=D0=B0=D0=BB=D0=B5=D0=BD=D0=BA=D0=BE) From owner-freebsd-usb@FreeBSD.ORG Sun Jul 21 21:50:02 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id F3FF230E for ; Sun, 21 Jul 2013 21:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id D697B5FE for ; Sun, 21 Jul 2013 21:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r6LLo1kZ068268 for ; Sun, 21 Jul 2013 21:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6LLo1sL068267; Sun, 21 Jul 2013 21:50:01 GMT (envelope-from gnats) Date: Sun, 21 Jul 2013 21:50:01 GMT Message-Id: <201307212150.r6LLo1sL068267@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Alexandre Kovalenko Subject: Re: usb/180726: XHCI umass support breaks between r248085 and r252560 on 9-STABLE X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Alexandre Kovalenko List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jul 2013 21:50:02 -0000 The following reply was made to PR usb/180726; it has been noted by GNATS. From: Alexandre Kovalenko To: bug-followup@FreeBSD.org, bsd.gaijin@gmail.com Cc: Subject: Re: usb/180726: XHCI umass support breaks between r248085 and r252560 on 9-STABLE Date: Sun, 21 Jul 2013 17:47:06 -0400 --Apple-Mail=_6F6E3510-295E-4026-89ED-4A3E44C88E2A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 The patch = (http://svnweb.freebsd.org/base/head/sys/dev/usb/controller/xhci.c?view=3D= patch&r1=3D253532&r2=3D253531&pathrev=3D253532) fixes the issue for me, = so PR could be closed. Is it possible to include it into 9.2? Alexandre "Sunny" Kovalenko (=D0=9E=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0= =B4=D1=80 =D0=9A=D0=BE=D0=B2=D0=B0=D0=BB=D0=B5=D0=BD=D0=BA=D0=BE) --Apple-Mail=_6F6E3510-295E-4026-89ED-4A3E44C88E2A Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 The = patch (http://= svnweb.freebsd.org/base/head/sys/dev/usb/controller/xhci.c?view=3Dpatch&am= p;r1=3D253532&r2=3D253531&pathrev=3D253532) fixes the issue = for me, so PR could be closed.

Is it possible to = include it into 9.2?

Alexandre "Sunny" = Kovalenko (=D0=9E=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80 = =D0=9A=D0=BE=D0=B2=D0=B0=D0=BB=D0=B5=D0=BD=D0=BA=D0=BE)




= --Apple-Mail=_6F6E3510-295E-4026-89ED-4A3E44C88E2A-- From owner-freebsd-usb@FreeBSD.ORG Mon Jul 22 11:06:54 2013 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 2D6724C3 for ; Mon, 22 Jul 2013 11:06:54 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 10EAB24B6 for ; Mon, 22 Jul 2013 11:06:54 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r6MB6s1k053878 for ; Mon, 22 Jul 2013 11:06:54 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6MB6r9G053876 for freebsd-usb@FreeBSD.org; Mon, 22 Jul 2013 11:06:53 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 22 Jul 2013 11:06:53 GMT Message-Id: <201307221106.r6MB6r9G053876@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jul 2013 11:06:54 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/180726 usb XHCI umass support breaks between r248085 and r252560 o usb/180657 usb [PATCH] Filco Majestouch 2 keyboard recognized as keyb o usb/180617 usb New quirk (another member of Western Digital My Passpo o usb/180254 usb FreeBSD 9.1 on 384GB memory server o usb/180119 usb FreeBSD 9.1 umass driver does not correctly handle Pan o usb/179505 usb Kernel detaches Arduino Leonardo (and similar) board u o usb/179342 usb Freebsd 10.0-current USB 3.0 not working (xhci_do_coma o usb/179109 usb After detach USB Flash a keyboard does not work. o usb/179107 usb [usb] After detach USB Flash a keyboard does not work. o usb/178773 usb [usbdevs] [patch] Huawei E303 USB 3G modem support o usb/178771 usb [usbdevs] [patch] Western Digital My Passport HD o usb/178722 usb FreeBSD 9.1-STABLE r250561 breaks support for webcam L o usb/178267 usb [usb] USB causing interrupt storm on irq16 o usb/177897 usb [u3g][patch] add support for the Huawei E352 modem o usb/177896 usb man page for usb_quirk suggests adding device to kerne o usb/177895 usb similar 1TB Western Digital "My Passports" - some load o usb/177666 usb [usbdevs] [patch] Add support for Texas Instruments / o usb/176913 usb [ehci] High interrupt load with ehci o usb/176841 usb [umass] Sony DSC-H2 USB connection fails o usb/176417 usb [xhci][cam][umass] kernelpanic while removing plugged o usb/175731 usb detaching USB keyboard freezes other USB keyboards o usb/175639 usb not detect usb netcard D-LINK DUB-E100 rev C1 o usb/175599 usb [usbdevs][patch]Liebert UPS PSI1000 being assigned uhi o usb/175551 usb Seagate 2TB USB extern hard disk have errors with Free o usb/175379 usb usb card-reader problem o usb/175302 usb don't mount virtual driver CD for my phone o usb/174963 usb buffalo wli-uc-gn wireless card sometimes unusable and o usb/174835 usb uaudio fails to create pcm/dsp device file o usb/174814 usb [PATCH] support for MiFi 2200 o usb/174695 usb usb keeps disconnecting mouse or keyboard o usb/174575 usb Interrupt storm error on startup o usb/174464 usb clone MAC address(es) on usb networks cdce(4) && ue[0- o usb/174254 usb MIDI keyboard not recognised o usb/173722 usb [xhci] xhci driver bug after suspend to RAM (ACPI S3 m o usb/173616 usb LG USB DVD-RW USB STALL o usb/173182 usb usbus appears as a network device o usb/172937 usb FreeBSD 9.1-RC2 usb3 port disconnects o usb/172633 usb Sony Cybershot not recognized as USB mem stick o usb/172199 usb [xhci] high interrupts load xhci o usb/171354 usb [umass] Medium not present error on flash drive [regre o usb/171262 usb plug in sdhc via usb reader reboots machine o usb/171197 usb ADATA Classic CH11 USB HDD doesn't work in FreeBSD 9.1 o usb/170699 usb FreeBSD 9.0 Doesn't list HDD or its partitions in part o usb/170688 usb patch][usbdevs][wlan] Patch for ASUS Black Diamond USB o usb/170606 usb r239222 kernel panic at boot - usb locking issue o usb/170358 usb [ums] Wrong (duplicate) button numbers o usb/170123 usb [umass] HP v210w USB stick not supported o usb/169935 usb [keyboard] Unable use USB keyboard while panic o usb/169789 usb [u3g] [patch] add support for huawei e3131 o usb/169461 usb [ugen] USB2 high-speed device detected as full speed o usb/169428 usb [ugen] ugen not detecting all endpoints on device [reg o usb/168551 usb [umass] Issues with embedded card reader (Laptop ASUS o usb/168132 usb [umass] MATSHITA memory card size reported wrong, moun o usb/167847 usb [ural] dlink dwl-122g e crashes(?) when trying wap2 cr o usb/167001 usb [USB] [PATCH] add support for Smart G2 64MB memory key o usb/165815 usb [usbdevs] [patch] add k3772z 3g modem support o usb/165163 usb [keyboard] The USB RF keyboard and mouse become non-re o usb/164058 usb [umass] Lexar 8GB USB flash drive doesn't work by defa f usb/163328 usb [usb] Support for Atheros USB abgn devices o kern/163091 usb [panic] Fatal trap 12: page fault while in kernel mode f usb/162306 usb usb devices cant get address asignation, no memories, o usb/162054 usb usbdump just hangs on 9.0-RC1 f usb/161793 usb poor EHCI usb2 i/o performance o usb/160436 usb ucom wedges machine on parity error ? o usb/160299 usb MicroSDHC-to-USB adapters do not work in FreeBSD 8.x o usb/160192 usb [install] Installation from USB-Stick doesn't find the o usb/159274 usb USB 3.0 Etron EJ168A does not work. f usb/159191 usb [fusefs-ntfs] write on fusefs-ntfs mounted partition r o usb/157376 usb LaCie USB disk not recognized o usb/157074 usb [boot] [usb8] vfs_mountroot_ask is called when no usb o usb/156898 usb [keyboard] usb keyboard does not work while boot (ps2 f usb/156735 usb Need Quirk for Goflex USB Disk Drives o usb/156726 usb [snd_uaudio]: snd_uaudio(4) fails to detach when mixer o usb/156725 usb USB stack stall cause complete system input loss o usb/156596 usb [ehci] Extremely high interrupt rate on ehci/uhci IRQ1 o usb/156000 usb rum(4) Fatal trap 18: integer divide fault while in ke f usb/155996 usb NanoBSD not booted as Disk o usb/155784 usb Problem with Transcend StoreJet 25M3 (2AJ1) on Asus M2 o usb/155663 usb [usbdevs] [patch] Add support for Supertop Nano 1GB US o usb/154753 usb [usbdevs] [patch] Support for Qualcomm USB modem/stora o usb/154506 usb [umass] Copying dir with large files makes FreeBSD loa o usb/154192 usb [umass] In Garmin Oregon GPS, only the first umass dev o i386/153851 usb [keyboard] keyboard issues on new Intel Mother boards. o usb/153703 usb [keyboard] My USB keyboard can not be used in 8-STABLE o usb/153609 usb [zyd] [panic] kernel: Fatal trap 12: page fault while f kern/153514 usb [cam] [panic] CAM related panic o usb/153149 usb [umass] USB stick quirk regression [regression] o usb/152075 usb [usb8] [ehci] [request] Add quirk for CS5536 USB o usb/150892 usb [zyd] Whenever network contacted in any shape, way or o usb/150189 usb [run] [usb8] [patch] if_run appears to corrupt IP traf p usb/149764 usb [u3g] [patch] usbdevs update: Huawei K3765 3G modem o usb/149283 usb [uftdi] avrdude unable to talk to Arduino board (via u o usb/149162 usb [ural] ASUS WL-167g doesn't work in 8.1 (continue of 1 s usb/148702 usb [usb8] [request] IO DATA USB-RSAQ5 support on FreeBSD- o usb/148080 usb usbconfig(8) sometimes does not turn off the device o i386/147475 usb [install] FreeBSD 8.x does not install on ASUS K8N4-E o usb/146840 usb [hang] FreeBSD 7.2 / 7.3 / 8.0 hang at startup after e o usb/146153 usb [axe] [usb8] Hosts in network doesn't receive any pack f usb/146054 usb [urtw] [usb8] urtw driver potentially out of date f usb/145513 usb [usb8] New USB stack: no new devices after forced usb p usb/145455 usb [usb8] [patch] USB debug support cannot be disabled o usb/145415 usb [umass] [usb8] USB card reader does not create slices a usb/145184 usb GENERIC can't mount root from USB on Asus EEE o usb/145165 usb [keyboard] [usb8] ukbd_set_leds_callback: error=USB_ER f kern/144938 usb [keyboard] [boot] Boot Failure with Apple (MB869LL/A) o usb/144387 usb [run] [panic] if_run panic o usb/144043 usb [umass] [usb8] USB DLT tape drive throws random errors a usb/143790 usb [boot] [cam] can not boot from usb hdd f usb/143620 usb [cdce] [usb8] the module if_cdce doesn't support my Op f usb/143294 usb [usb8] copying process stops at some time (10 - 50 sec o usb/143286 usb [ukbd] [usb8] [boot] boot failures on RELENG_8 system p usb/143186 usb [usbdevs] [usb8] [patch] add USB device IDs for Google a usb/143139 usb [umass] [usb8] [patch] Quirk for Century EX35SW4_SB4 J p usb/143045 usb [umass] [usb8] [patch] mounting Fujitsu 2600Z camera d f usb/142989 usb [usb8] canon eos 50D attaches but detaches after few s f usb/142957 usb [umass] [usb8] [patch] patch for USB disk SYNCHRONIZE o usb/142719 usb [urtw] [usb8] AirLive WL-1600USB (RTL8187L chipset) fa f usb/142276 usb [umass] [usb8] Cache Synchronization Error with Olympu o usb/142229 usb [ums] [usb8] [hang] connecting a USB mouse to a Dell P f usb/141680 usb [uath] [usb8] Netgear WG111T not working with uath dri o usb/141664 usb [pcm] [usb8] Logitech USB microphone failure [regressi o usb/141474 usb [boot] [usb8] FreeBSD 8.0 can not install from USB CDR o usb/141212 usb [ukbd] [usb8] ukbd_set_leds_callback:700: error=USB_ER o kern/141011 usb [usb8] Encrypted root, geli password at boot; enter ke o usb/140920 usb [install] [usb8] USB based install fails on 8.0-RELEAS o usb/140893 usb [urtw] [usb8] WPA2 not working on rtl8187b o kern/140849 usb [ums] [usb8] USB mouse doesn't work under FreeBSD 8.0- a usb/140810 usb [uftdi] [usb8] 8.X copy and paste problem / tty overfl o usb/140477 usb [umass] [usb8] [patch] allow boot-time attachment of d o usb/140236 usb [msdosfs] [usb8] Labels wiped on external Journaled US o usb/140160 usb [usb8] [acpi] USB ports are no longer "active" after A o usb/138798 usb [boot] [usb8] 8.0-BETA4 can't boot from USB flash driv o usb/138659 usb [usb8][uftdi] driver broken in RELENG_8/CURRENT o kern/138292 usb [zyd] [usb8] "zyd0: device timeout" with ZyXEL G-202 o usb/138124 usb [snd_uaudio] [usb8] Axed uaudio functionality in the u o usb/137377 usb [usb8] request support for Huawei E180 o usb/137341 usb [usb8][rum] driver if_rum doesn't work at all and thro f usb/137190 usb [usb8][patch] inhibit spurious button releases for som o usb/137189 usb [usb8][patch] create and use sysctl nodes for HID repo p usb/137188 usb [usb8][patch] correctly handle USB report descriptors o usb/137129 usb [ums] [usb8] SteelSeries Ikari USB laser mouse not att o usb/135542 usb [keyboard] boot loader does not work with a usb keyboa o usb/135206 usb machine reboots when inserted USB device f usb/135200 usb SAMSUNG i740 usb mass: Synchronize cache failed, statu o usb/134950 usb Lowering DTR for USB-modem via ubsa is not possible o usb/134299 usb Kernel Panic plugging in MF626 USB UMTS Stick u3g o usb/134193 usb System freeze on usb MP3 player insertion o usb/134085 usb [umass] [patch] Adding usb quirk for Sony USB flash dr o usb/133989 usb [usb8] [ukbd] USB keyboard dead at mountroot> prompt o usb/133712 usb [ural] [patch] RE: Fixed an issue with ural(4) that wa o usb/133390 usb umass crashes system in 7.1 when Olympus D-540 attache o usb/133296 usb [rum] driver not working properly in hostap mode o usb/132594 usb USB subsystem causes page fault and crashes o usb/132080 usb [patch] [usb] [rum] [panic] Kernel panic after NOMEM c o usb/132066 usb [ukbd] Keyboard failure USB keyboard DELL 760 o usb/132036 usb [panic] page fault when connecting Olympus C740 camera o usb/131583 usb [umass] Failure when detaching umass Device o usb/131576 usb [aue] ADMtek USB To LAN Converter can't send data o usb/131521 usb Registering Belkin UPS to usb_quirks.c o usb/131074 usb no run-time detection of usb devices plugged into exte o usb/130736 usb Page fault unplugging USB stick o usb/130208 usb Boot process severely hampered by umass0 error o usb/130122 usb [usb8] DVD drive detects as 'da' device f usb/129766 usb [usb] [panic] plugging in usb modem HUAWEI E226 panics o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis o usb/129311 usb [usb] [panic] Instant crash with an USB card reader f usb/128745 usb [zyd] zyd theoretically supported usb device makes ker o usb/128485 usb [umodem] [patch] Nokia N80 modem support o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive o usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like o usb/127926 usb [boot] USB Timeout during bootup o usb/127342 usb [boot] [panic] enabling usb keyboard and mouse support o usb/127248 usb [ucom] panic while uplcom devices attach and detach o usb/126884 usb [ugen] [patch] Bug in buffer handling in ugen.c o usb/126848 usb [usb]: USB Keyboard hangs during Installation o usb/126740 usb [ulpt] doesn't work on 7.0-RELEASE, 10 second stall be o usb/126519 usb [usb] [panic] panic when plugging in an iphone o kern/126396 usb [panic] kernel panic after unplug USB Bluetooth device o usb/125631 usb [ums] [panic] kernel panic during bootup while 'Logite o usb/125510 usb [panic] repeated plug and unplug of USB mass storage d f usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125088 usb [keyboard] Touchpad not detected on Adesso AKB-430UG U o usb/124980 usb [panic] kernel panic on detaching unmounted umass devi o kern/124777 usb [ucom] USB cua devices don't revert to tty devices whe o usb/124758 usb [rum] [panic] rum panics SMP kernel o usb/124708 usb [panic] Kernel panic on USB KVM reattach o kern/124130 usb [usb] gmirror fails to start usb devices that were pre o usb/123969 usb [usb] Supermicro H8SMi-2 usb problem: port reset faile o usb/123714 usb [usb] [panic] Panic when hald-storage-probe runs with o usb/123691 usb usbd(8): usbd hangs o usb/123690 usb [usb] [panic] Panic on USB device insertion when usb l o usb/123611 usb [usb] BBB reset failed, STALLED from Imation/Mitsumi U o usb/122992 usb [umass] [patch] MotoROKR Z6 Phone not recognised by um o usb/122936 usb [ucom] [ubsa] Device does not receive interrupt o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa o usb/122547 usb [ehci] USB Printer not being recognized after reboot o usb/122539 usb [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci o usb/122483 usb [panic] [ulpt] Repeatable panic in 7.0-STABLE o usb/122119 usb [umass] umass device causes creation of daX but not da o usb/121734 usb [ugen] ugen HP1022 printer device not working since up o usb/121708 usb [keyboard] nforce 650i mobo w/ usb keyboard infinite k o usb/121275 usb [boot] [panic] FreeBSD fails to boot with usb legacy s o usb/121169 usb [umass] Issues with usb mp3 player o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS f usb/120786 usb [usb] [panic] Kernel panic when forced umount of a det o usb/120729 usb [panic] fault while in kernel mode with connecting USB o conf/120406 usb [devd] [patch] Handle newly attached pcm devices (eg. o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR [regression] o usb/119509 usb [usb] USB flaky on Dell Optiplex 755 o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED [regress o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117598 usb [snd_uaudio] [patch] Not possible to record with Plant o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a f usb/117150 usb [zyd] usb zyd device under moderate load panics system o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/114682 usb [umass] generic USB media-card reader unusable o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/96457 usb [umass] [panic] fatback on umass = reboot o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync s usb/96120 usb [ums] [request] USB mouse not always detected s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92052 usb [ulpt] usbd causes defunct process with busy file-hand o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg f usb/91896 usb camcontrol(8): Serial Number of USB Memory Sticks is n o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91283 usb [boot] [regression] booting very slow with usb devices o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/89954 usb [umass] [panic] USB Disk driver race condition? o usb/88743 usb [hang] [regression] USB makes kernel hang at boot (reg o usb/88408 usb [axe] axe0 read PHY failed o usb/87648 usb [mouse] Logitech USB-optical mouse problem. f usb/87224 usb [usb] Cannot mount USB Zip750 o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/86298 usb [mouse] Known good USB mouse won't work with correct s s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. s usb/80777 usb [request] usb_rem_task() should wait for callback to c s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails f usb/80040 usb [sound] [hang] Use of sound mixer causes system freeze o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/78984 usb [umass] [patch] Creative MUVO umass failure o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for s usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/67301 usb [uftdi] [panic] RTS and system panic o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s s usb/52026 usb [new driver] [request] umass driver support for InSyst s usb/51958 usb [urio] [patch] update for urio driver o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem 311 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Jul 22 12:40:02 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 55D61A1A for ; Mon, 22 Jul 2013 12:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2ABFF2BB5 for ; Mon, 22 Jul 2013 12:40:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r6MCe1rd074780 for ; Mon, 22 Jul 2013 12:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6MCe12m074779; Mon, 22 Jul 2013 12:40:01 GMT (envelope-from gnats) Date: Mon, 22 Jul 2013 12:40:01 GMT Message-Id: <201307221240.r6MCe12m074779@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Hans Petter Selasky Subject: Re: usb/180657: [PATCH] Filco Majestouch 2 keyboard recognized as keyboard and mouse X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jul 2013 12:40:02 -0000 The following reply was made to PR usb/180657; it has been noted by GNATS. From: Hans Petter Selasky To: freebsd-gnats-submit@FreeBSD.org, Yamagi Burmeister Cc: Subject: Re: usb/180657: [PATCH] Filco Majestouch 2 keyboard recognized as keyboard and mouse Date: Mon, 22 Jul 2013 14:32:21 +0200 Hi, Could you also attach the so-called USB configuration descriptor to the PR? usbconfig -d X.Y dump_curr_config_desc Thank you! --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Jul 22 16:00:01 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id EB3CBE76 for ; Mon, 22 Jul 2013 16:00:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DCC5F25F8 for ; Mon, 22 Jul 2013 16:00:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r6MG01td015225 for ; Mon, 22 Jul 2013 16:00:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6MG014i015224; Mon, 22 Jul 2013 16:00:01 GMT (envelope-from gnats) Date: Mon, 22 Jul 2013 16:00:01 GMT Message-Id: <201307221600.r6MG014i015224@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Yamagi Burmeister Subject: Re: usb/180657: [PATCH] Filco Majestouch 2 keyboard recognized as keyboard and mouse X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Yamagi Burmeister List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jul 2013 16:00:02 -0000 The following reply was made to PR usb/180657; it has been noted by GNATS. From: Yamagi Burmeister To: hps@bitfrost.no Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: usb/180657: [PATCH] Filco Majestouch 2 keyboard recognized as keyboard and mouse Date: Mon, 22 Jul 2013 17:51:50 +0200 Of course, here it is: ugen0.2: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0019 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x00e0 bMaxPower = 0x0000 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0009 bInterfaceSubClass = 0x0000 bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0001 bInterval = 0x000c bRefresh = 0x0000 bSynchAddress = 0x0000 -- Homepage: www.yamagi.org XMPP: yamagi@yamagi.org GnuPG/GPG: 0xEFBCCBCB From owner-freebsd-usb@FreeBSD.ORG Mon Jul 22 16:00:03 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 79217E77 for ; Mon, 22 Jul 2013 16:00:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 69C2E25F9 for ; Mon, 22 Jul 2013 16:00:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r6MG02xT015231 for ; Mon, 22 Jul 2013 16:00:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6MG02P1015230; Mon, 22 Jul 2013 16:00:02 GMT (envelope-from gnats) Date: Mon, 22 Jul 2013 16:00:02 GMT Message-Id: <201307221600.r6MG02P1015230@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Hans Petter Selasky Subject: Re: usb/180657: [PATCH] Filco Majestouch 2 keyboard recognized as keyboard and mouse X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jul 2013 16:00:03 -0000 The following reply was made to PR usb/180657; it has been noted by GNATS. From: Hans Petter Selasky To: Yamagi Burmeister Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: usb/180657: [PATCH] Filco Majestouch 2 keyboard recognized as keyboard and mouse Date: Mon, 22 Jul 2013 17:57:56 +0200 On 07/22/13 17:51, Yamagi Burmeister wrote: > Of course, here it is: > > ugen0.2: at usbus0, cfg=0 md=HOST > spd=HIGH (480Mbps) pwr=SAVE (0mA) > > > Configuration index 0 > > bLength = 0x0009 > bDescriptorType = 0x0002 > wTotalLength = 0x0019 > bNumInterfaces = 0x0001 > bConfigurationValue = 0x0001 > iConfiguration = 0x0000 > bmAttributes = 0x00e0 > bMaxPower = 0x0000 > > Interface 0 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0000 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0001 > bInterfaceClass = 0x0009 > bInterfaceSubClass = 0x0000 > bInterfaceProtocol = 0x0000 > iInterface = 0x0000 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0081 > bmAttributes = 0x0003 > wMaxPacketSize = 0x0001 > bInterval = 0x000c > bRefresh = 0x0000 > bSynchAddress = 0x0000 > Hi, I would expect two interfaces here. Only one driver can attach to a single interface. Is your keyboard and mouse two separate devices through an external USB HUB? Is the ums and ukbd in the kernel? Could you run one more with your quirk disabled and dual mouse/keyboard plugged in: usbconfig -d X.Y show_ifdrv Thank you, --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Jul 22 18:17:57 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 618) id E1411440; Mon, 22 Jul 2013 18:17:57 +0000 (UTC) Subject: USB Soundblaster device doesn't record To: freebsd-usb@freebsd.org Date: Mon, 22 Jul 2013 18:17:57 +0000 (UTC) X-Mailer: ELM [version 2.5 PL8] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20130722181757.E1411440@hub.freebsd.org> From: wpaul@FreeBSD.ORG (Bill Paul) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jul 2013 18:17:57 -0000 I recently purchased a Creative Labs Sound Blaster X-Fi Go Pro USB audio interface, which I wanted primarily so that I could have a dedicated mic input for my ExoPC Slate Tablet. So of course, the mic input is the one thing that doesn't work. I'm using FreeBSD 9.0-RELEASE, and the device is detected as follows: ugen1.5: at usbus1 uaudio0: on usbus1 uaudio0: Play: 44100 Hz, 2 ch, 24-bit S-LE PCM format. uaudio0: Record: 44100 Hz, 2 ch, 16-bit S-LE PCM format. uaudio0: No midi sequencer. pcm6: on uaudio0 uhid0: on usbus1 I find that I can play sound back through this device, however when I try to record, I get nothing but silence. (I used audacity.) Playback seems to work ok. I also have a laptop running FreeBSD 7.2-RELEASE, and oddly enough it seems the device will record ok on that machine (though that laptop already has a mic input, so that's not where I need it). Does anyone have any suggestions as to how I can make this thing work? Alternatively, can anyone suggest a different USB sound device that does record properly? Inquiring minds want to know. -Bill -- ============================================================================= -Bill Paul (510) 749-2329 | Senior Member of Technical Staff, wpaul@windriver.com | Master of Unix-Fu - Wind River Systems ============================================================================= "I put a dollar in a change machine. Nothing changed." - George Carlin ============================================================================= From owner-freebsd-usb@FreeBSD.ORG Mon Jul 22 19:55:33 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E14663AC; Mon, 22 Jul 2013 19:55:33 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id 92587216A; Mon, 22 Jul 2013 19:55:33 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id 206197A0D7; Mon, 22 Jul 2013 21:55:26 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id D753C8EF8AC; Mon, 22 Jul 2013 21:55:29 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ftR4u9S4mm6v; Mon, 22 Jul 2013 21:55:29 +0200 (CEST) Received: from laptop015.hselasky.homeunix.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id 2986C8EF8AB; Mon, 22 Jul 2013 21:55:29 +0200 (CEST) Message-ID: <51ED8E8B.9080806@bitfrost.no> Date: Mon, 22 Jul 2013 21:56:59 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 To: Bill Paul Subject: Re: USB Soundblaster device doesn't record References: <20130722181757.E1411440@hub.freebsd.org> In-Reply-To: <20130722181757.E1411440@hub.freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jul 2013 19:55:33 -0000 On 07/22/13 20:17, Bill Paul wrote: > > I recently purchased a Creative Labs Sound Blaster X-Fi Go Pro USB audio > interface, which I wanted primarily so that I could have a dedicated mic > input for my ExoPC Slate Tablet. So of course, the mic input is the one > thing that doesn't work. > > I'm using FreeBSD 9.0-RELEASE, and the device is detected as follows: > > ugen1.5: at usbus1 > uaudio0: on usbus1 > uaudio0: Play: 44100 Hz, 2 ch, 24-bit S-LE PCM format. > uaudio0: Record: 44100 Hz, 2 ch, 16-bit S-LE PCM format. > uaudio0: No midi sequencer. > pcm6: on uaudio0 > uhid0: on usbus1 > > I find that I can play sound back through this device, however when I try > to record, I get nothing but silence. (I used audacity.) Playback seems to > work ok. > > I also have a laptop running FreeBSD 7.2-RELEASE, and oddly enough it seems > the device will record ok on that machine (though that laptop already has > a mic input, so that's not where I need it). > > Does anyone have any suggestions as to how I can make this thing work? > Alternatively, can anyone suggest a different USB sound device that does > record properly? Inquiring minds want to know. Hi, Can you try 9-stable first? Maybe your problem is already fixed? --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Jul 22 20:13:16 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 618) id E178A8FF; Mon, 22 Jul 2013 20:13:16 +0000 (UTC) Subject: Re: USB Soundblaster device doesn't record To: hps@bitfrost.no (Hans Petter Selasky) Date: Mon, 22 Jul 2013 20:13:16 +0000 (UTC) In-Reply-To: <51ED8E8B.9080806@bitfrost.no> X-Mailer: ELM [version 2.5 PL8] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20130722201316.E178A8FF@hub.freebsd.org> From: wpaul@FreeBSD.ORG (Bill Paul) Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jul 2013 20:13:16 -0000 > > On 07/22/13 20:17, Bill Paul wrote: > > > > I recently purchased a Creative Labs Sound Blaster X-Fi Go Pro USB audio > > interface, which I wanted primarily so that I could have a dedicated mic > > input for my ExoPC Slate Tablet. So of course, the mic input is the one > > thing that doesn't work. > > > > I'm using FreeBSD 9.0-RELEASE, and the device is detected as follows: > > > > ugen1.5: at usbus1 > > uaudio0: on usbus1 > > uaudio0: Play: 44100 Hz, 2 ch, 24-bit S-LE PCM format. > > uaudio0: Record: 44100 Hz, 2 ch, 16-bit S-LE PCM format. > > uaudio0: No midi sequencer. > > pcm6: on uaudio0 > > uhid0: on usbus1 > > > > I find that I can play sound back through this device, however when I try > > to record, I get nothing but silence. (I used audacity.) Playback seems to > > work ok. > > > > I also have a laptop running FreeBSD 7.2-RELEASE, and oddly enough it seems > > the device will record ok on that machine (though that laptop already has > > a mic input, so that's not where I need it). > > > > Does anyone have any suggestions as to how I can make this thing work? > > Alternatively, can anyone suggest a different USB sound device that does > > record properly? Inquiring minds want to know. > > Hi, > > Can you try 9-stable first? Maybe your problem is already fixed? > > --HPS > It is extremely difficult for me to rebuild the world on the tablet. The best I can do is try a snapshot, and I can't do that today. -Bill -- ============================================================================= -Bill Paul (510) 749-2329 | Senior Member of Technical Staff, wpaul@windriver.com | Master of Unix-Fu - Wind River Systems ============================================================================= "I put a dollar in a change machine. Nothing changed." - George Carlin ============================================================================= From owner-freebsd-usb@FreeBSD.ORG Mon Jul 22 20:20:41 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 613E3ACF; Mon, 22 Jul 2013 20:20:41 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id 221EF2290; Mon, 22 Jul 2013 20:20:40 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id 32BD57A0DD; Mon, 22 Jul 2013 22:20:40 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id EB7D18EF8B1; Mon, 22 Jul 2013 22:20:43 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3Yj51NiFc1uG; Mon, 22 Jul 2013 22:20:43 +0200 (CEST) Received: from laptop015.hselasky.homeunix.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id 4B9648EF8B0; Mon, 22 Jul 2013 22:20:43 +0200 (CEST) Message-ID: <51ED9476.1020207@bitfrost.no> Date: Mon, 22 Jul 2013 22:22:14 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 To: Bill Paul Subject: Re: USB Soundblaster device doesn't record References: <20130722201316.E178A8FF@hub.freebsd.org> In-Reply-To: <20130722201316.E178A8FF@hub.freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jul 2013 20:20:41 -0000 Hi, > It is extremely difficult for me to rebuild the world on the tablet. The > best I can do is try a snapshot, and I can't do that today. You only need the kernel, no world. BTW: Have you checked mixer volume levels and have you set the recording source correctly? --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Jul 22 20:21:30 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id ABDE3B21; Mon, 22 Jul 2013 20:21:30 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id 6B754229F; Mon, 22 Jul 2013 20:21:30 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id AE8F97A0CC; Mon, 22 Jul 2013 22:21:29 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 72C9A8EF8B3; Mon, 22 Jul 2013 22:21:33 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rLRPlpQV5Xzw; Mon, 22 Jul 2013 22:21:32 +0200 (CEST) Received: from laptop015.hselasky.homeunix.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id C937B8EF8B0; Mon, 22 Jul 2013 22:21:32 +0200 (CEST) Message-ID: <51ED94A7.3080902@bitfrost.no> Date: Mon, 22 Jul 2013 22:23:03 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 To: Hans Petter Selasky Subject: Re: USB Soundblaster device doesn't record References: <20130722201316.E178A8FF@hub.freebsd.org> <51ED9476.1020207@bitfrost.no> In-Reply-To: <51ED9476.1020207@bitfrost.no> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Bill Paul , freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jul 2013 20:21:30 -0000 On 07/22/13 22:22, Hans Petter Selasky wrote: > Hi, > > >> It is extremely difficult for me to rebuild the world on the tablet. The >> best I can do is try a snapshot, and I can't do that today. > > You only need the kernel, no world. BTW: Have you checked mixer volume > levels and have you set the recording source correctly? > > --HPS > man mixer --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Jul 22 20:52:38 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 7A206453 for ; Mon, 22 Jul 2013 20:52:38 +0000 (UTC) (envelope-from infjb@yahoo.de) Received: from nm6.bullet.mail.ird.yahoo.com (nm6.bullet.mail.ird.yahoo.com [77.238.189.63]) by mx1.freebsd.org (Postfix) with SMTP id 9EF0A2420 for ; Mon, 22 Jul 2013 20:52:37 +0000 (UTC) Received: from [77.238.189.233] by nm6.bullet.mail.ird.yahoo.com with NNFMP; 22 Jul 2013 20:52:30 -0000 Received: from [46.228.39.82] by tm14.bullet.mail.ird.yahoo.com with NNFMP; 22 Jul 2013 20:52:30 -0000 Received: from [127.0.0.1] by smtp119.mail.ir2.yahoo.com with NNFMP; 22 Jul 2013 20:52:30 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s1024; t=1374526350; bh=M0agynEbFQ7o0ZY5Qv5hKX1cF1LTWfmFaPqSO+alnII=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding:X-Antivirus:X-Antivirus-Status; b=RVI2ZQ2EorSBa57L+lS8BVJ45xphx6+lLDqiC3EsrA4d3orRY2VPNBtscb5tKlj/kmQV+bed/whp9I/Osq7kE8Ugx5RwjKDXh18fqXge+y+vBKE5Y+jBuUZF74jrLp2BDce2oFnjaiZtLoRD3fhipkGSiEgavRcORXyHrye2hQs= X-Yahoo-Newman-Id: 484454.11286.bm@smtp119.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: BrzDYM8VM1mQA9H5JwxDvlJ0QDhOkQsjLakUkZUg6ycMtw6 X5vjCVClQbdmg9SFg4zA1NihBFJCA2GyjDUISOyftQbmDobGKa6eenAHPSzG cKAZ0lDFfYIPD6HG9JSoHsfRrlTHET_3meiN8_5mfsrvHk5t_3vVG4AYue4l QTjeGa1o4jntVVKr3XzB.hEe3ecmMGOCGoplT9KBGoN0Nf8vvsZfIxRW6wFe vwM4NF5GsHWs_leJVaw3E1Tfuy..bmICRYUH_c2gPIvVBlez5kHID8GJtuSt Q0UnGsvhz9CxgvGGvP8sOqJkxuK7993kzrp9eb3AxVqrHTV_TfkASHk_uIe8 g4Ub_pLU_mB1RqFwKEwPOT5hswHrpmYdwFBJ_kuwMMxp5Vt0gZhux9uJcyRS PEa76Liz8YFLJdnsTmA1Jo3QopThzjXIILXdgrzhKXSDRVpCcmFZLCOp9pUZ nvf0nwpLD7__8kakEy5DU.e9T0hBuTDrBq5xEi0ajygwRRrpaaxVYHNr3EDM kbyVPdmeIP5eI.4S1ETERS.3LYW6SL_l8Xpa1XBvkDlf0xbBc3PlSXV7UAQK FlkX1hxKI86OEkVNo8bL3anAg1cEgwhjCHQsfw5kcqaSQgEhq5eg5W3VU4u. Hbo1WG_alnI6xA0mEBNDimlvy0COtgy246DuEUJCNGbqqg7yo2bet_gMW X-Yahoo-SMTP: EWJZxzOswBCymwALgXydpugJ X-Rocket-Received: from [127.0.0.1] (infjb@62.227.229.87 with ) by smtp119.mail.ir2.yahoo.com with SMTP; 22 Jul 2013 20:52:30 +0000 UTC Message-ID: <51ED9B8E.4000602@yahoo.de> Date: Mon, 22 Jul 2013 22:52:30 +0200 From: "Frank J. Beckmann" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: freebsd-usb@freebsd.org Subject: usb_alloc_device: device init 2 failed on Gigabyte Z87X-UD5H with FreeBSD 9-STABLE Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 130722-1, 22.07.2013), Outbound message X-Antivirus-Status: Clean X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jul 2013 20:52:38 -0000 Hi, on board USB is not working on my new Gigabyte Z87X-UD5H with 9-STABLE. With 9.1-RELEASE USB is working with USB 2 devices, but the error occurs with USB 3 devices. I also tried the patch from http://svnweb.freebsd.org/base/head/sys/dev/usb/controller/xhci.c?view=patch&r1=253532&r2=253531&pathrev=253532 but it did not cure the error. I'm using an USB card with a NEC chip for (xhci1) now. ACPI Warning: FADT (revision 5) is longer than ACPI 2.0 version, truncating length 268 to 244 (20110527/tbfadt-320) ... xhci0: mem 0xf0b20000-0xf0b2ffff irq 16 at device 20.0 on pci0 usbus0: waiting for BIOS to give up control xhci0: 32 byte context size. usbus0 on xhci0 ... xhci1: mem 0xf0900000-0xf0901fff irq 16 at device 0.0 on pci2 xhci1: 32 byte context size. usbus1 on xhci1 ... usbus0: 5.0Gbps Super Speed USB v3.0 usbus1: 5.0Gbps Super Speed USB v3.0 ugen0.1: <0x8086> at usbus0 uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 ugen1.1: <0x1033> at usbus1 uhub1: <0x1033 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus1 ... uhub1: 4 ports with 4 removable, self powered ... Root mount waiting for: usbus1 usbus0 uhub0: 21 ports with 21 removable, self powered Root mount waiting for: usbus1 usbus0 usb_alloc_device: device init 2 failed (USB_ERR_IOERROR, ignored) ugen0.2: at usbus0 (disconnected) uhub_reattach_port: could not allocate new device ugen1.2: at usbus1 umass0: on usbus1 umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0:12:0:-1: Attached to scbus12 da0 at umass-sim0 bus 0 scbus12 target 0 lun 0 da0: Fixed Direct Access SCSI-6 device da0: 40.000MB/s transfers da0: 2861556MB (732558336 4096 byte sectors: 255H 63S/T 45599C) da0: quirks=0x2 ses0 at umass-sim0 bus 0 scbus12 target 0 lun 1 ses0: Fixed Enclosure Services SCSI-6 device ses0: 40.000MB/s transfers ses0: SCSI-3 ENC Device usb_alloc_device: device init 2 failed (USB_ERR_IOERROR, ignored) ugen0.2: at usbus0 (disconnected) uhub_reattach_port: could not allocate new device ugen1.3: at usbus1 ukbd0: on usbus1 kbd2 at ukbd0 uhid0: on usbus1 Root mount waiting for: usbus0 usb_alloc_device: device init 2 failed (USB_ERR_IOERROR, ignored) ugen0.2: at usbus0 (disconnected) uhub_reattach_port: could not allocate new device usb_alloc_device: device init 2 failed (USB_ERR_IOERROR, ignored) ugen0.2: at usbus0 (disconnected) uhub_reattach_port: could not allocate new device The WD My Book is only working in USB 2 mode, even on the NEC controller. # usbconfig list ugen0.1: at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) ugen1.1: at usbus1, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) ugen1.2: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (8mA) # usbconfig dump_device_desc ugen0.1: at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0300 bDeviceClass = 0x0009 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0003 bMaxPacketSize0 = 0x0009 idVendor = 0x0000 idProduct = 0x0000 bcdDevice = 0x0100 iManufacturer = 0x0001 <0x8086> iProduct = 0x0002 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 ugen1.1: at usbus1, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0300 bDeviceClass = 0x0009 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0003 bMaxPacketSize0 = 0x0009 idVendor = 0x0000 idProduct = 0x0000 bcdDevice = 0x0100 iManufacturer = 0x0001 <0x1033> iProduct = 0x0002 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 ugen1.2: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (8mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0210 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x1058 idProduct = 0x1140 bcdDevice = 0x1012 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0005 <574D41575A30313239353434> bNumConfigurations = 0x0001 XHCI Mode is enabled in the BIOS. I can set XHCI hand-off and EHCI hand-off. Both setting do not help. What should I try next? Greetings Frank From owner-freebsd-usb@FreeBSD.ORG Mon Jul 22 21:05:00 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 618) id CAD2770C; Mon, 22 Jul 2013 21:05:00 +0000 (UTC) Subject: Re: USB Soundblaster device doesn't record To: hps@bitfrost.no (Hans Petter Selasky) Date: Mon, 22 Jul 2013 21:05:00 +0000 (UTC) In-Reply-To: <51ED9476.1020207@bitfrost.no> X-Mailer: ELM [version 2.5 PL8] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20130722210500.CAD2770C@hub.freebsd.org> From: wpaul@FreeBSD.ORG (Bill Paul) Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jul 2013 21:05:00 -0000 > > Hi, > > > > It is extremely difficult for me to rebuild the world on the tablet. The > > best I can do is try a snapshot, and I can't do that today. > > You only need the kernel, no world. BTW: Have you checked mixer volume > levels and have you set the recording source correctly? > > --HPS > > Yes, I checked the mixer. It reports pcm and rec settings, which both default to 45. I cranked the rec setting up to 100, but still got nothing but silence. Also, as a very crude test, doing cat /dev/dspX (where X is the corresponding pcm unit number) yields only the same value over and over, though on 7.2 I can see different values being read when the mic picks up sound. -Bill -- ============================================================================= -Bill Paul (510) 749-2329 | Senior Member of Technical Staff, wpaul@windriver.com | Master of Unix-Fu - Wind River Systems ============================================================================= "I put a dollar in a change machine. Nothing changed." - George Carlin ============================================================================= From owner-freebsd-usb@FreeBSD.ORG Mon Jul 22 22:33:48 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 618) id 58991E41; Mon, 22 Jul 2013 22:33:48 +0000 (UTC) Subject: Re: USB Soundblaster device doesn't record To: hps@bitfrost.no (Hans Petter Selasky) Date: Mon, 22 Jul 2013 22:33:48 +0000 (UTC) In-Reply-To: <51ED9476.1020207@bitfrost.no> X-Mailer: ELM [version 2.5 PL8] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20130722223348.58991E41@hub.freebsd.org> From: wpaul@FreeBSD.ORG (Bill Paul) Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jul 2013 22:33:48 -0000 > > Hi, > > > > It is extremely difficult for me to rebuild the world on the tablet. The > > best I can do is try a snapshot, and I can't do that today. > > You only need the kernel, no world. BTW: Have you checked mixer volume > levels and have you set the recording source correctly? > > --HPS > > *facepalm* Okay, I retract what I said earlier. Apparently all this time I was not using the right device to try and set the mic level with mixer(8). For some reason I got some wires crossed in by head and was trying to do: % mixer -f /dev/dspX instead of the correct: % mixer -f /dev/mixerX However, in my defense, FreeBSD did something unexpected in that using the dsp device did not yield an error. Instead, it does this: [/tmp]:core{2025}% mixer -f /dev/dsp6 Mixer pcm is currently set to 45:45 Mixer rec is currently set to 45:45 [/tmp]:core{2026}% Doing it the right way yields this: [/tmp]:core{2026}% mixer -f /dev/mixer6 Mixer vol is currently set to 100:100 Mixer pcm is currently set to 100:100 Mixer mic is currently set to 100:100 Recording source: mic [/tmp]:core{2027}% I find it odd that the mixer ioctls succeed on the dsp device (with bogus results) rather than returning error since they can't possibly work on it, but... whatever. That's not a USB problem anyway so nevermind. Anyway, the mic level defaults to 0; setting it to 100 as shown above allows it to record. (I would have expected the mic gain slider in audacity to do the same thing, but apparently it doesn't.) In summary, please disrecard: I can't brain today, I have the dumb. -Bill -- ============================================================================= -Bill Paul (510) 749-2329 | Senior Member of Technical Staff, wpaul@windriver.com | Master of Unix-Fu - Wind River Systems ============================================================================= "I put a dollar in a change machine. Nothing changed." - George Carlin ============================================================================= From owner-freebsd-usb@FreeBSD.ORG Tue Jul 23 05:57:56 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 3621EDF0; Tue, 23 Jul 2013 05:57:56 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id BE5CA287E; Tue, 23 Jul 2013 05:57:55 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id E48A77A0CA; Tue, 23 Jul 2013 07:57:53 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id AFFED8EF960; Tue, 23 Jul 2013 07:57:57 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HA1v3OIESH4x; Tue, 23 Jul 2013 07:57:56 +0200 (CEST) Received: from laptop015.hselasky.homeunix.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id AC0A48EF95F; Tue, 23 Jul 2013 07:57:56 +0200 (CEST) Message-ID: <51EE1BBF.8000708@bitfrost.no> Date: Tue, 23 Jul 2013 07:59:27 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 To: Bill Paul Subject: Re: USB Soundblaster device doesn't record References: <20130722223348.58991E41@hub.freebsd.org> In-Reply-To: <20130722223348.58991E41@hub.freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jul 2013 05:57:56 -0000 On 07/23/13 00:33, Bill Paul wrote: >> >> Hi, >> >> >>> It is extremely difficult for me to rebuild the world on the tablet. The >>> best I can do is try a snapshot, and I can't do that today. >> >> You only need the kernel, no world. BTW: Have you checked mixer volume >> levels and have you set the recording source correctly? >> >> --HPS >> >> > > *facepalm* > > Okay, I retract what I said earlier. Apparently all this time I was not > using the right device to try and set the mic level with mixer(8). > > For some reason I got some wires crossed in by head and was trying to do: > > % mixer -f /dev/dspX > > instead of the correct: > > % mixer -f /dev/mixerX > > However, in my defense, FreeBSD did something unexpected in that using > the dsp device did not yield an error. Instead, it does this: > > [/tmp]:core{2025}% mixer -f /dev/dsp6 > Mixer pcm is currently set to 45:45 > Mixer rec is currently set to 45:45 > [/tmp]:core{2026}% > > Doing it the right way yields this: > > [/tmp]:core{2026}% mixer -f /dev/mixer6 > Mixer vol is currently set to 100:100 > Mixer pcm is currently set to 100:100 > Mixer mic is currently set to 100:100 > Recording source: mic > [/tmp]:core{2027}% > > I find it odd that the mixer ioctls succeed on the dsp device (with bogus > results) rather than returning error since they can't possibly work on it, > but... whatever. That's not a USB problem anyway so nevermind. > > Anyway, the mic level defaults to 0; setting it to 100 as shown above allows > it to record. (I would have expected the mic gain slider in audacity > to do the same thing, but apparently it doesn't.) > > In summary, please disrecard: I can't brain today, I have the dumb. Hi Bill, No problem! --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Jul 23 15:10:01 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E38DD3F4 for ; Tue, 23 Jul 2013 15:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D4AB62343 for ; Tue, 23 Jul 2013 15:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r6NFA1UB020555 for ; Tue, 23 Jul 2013 15:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6NFA1TW020554; Tue, 23 Jul 2013 15:10:01 GMT (envelope-from gnats) Date: Tue, 23 Jul 2013 15:10:01 GMT Message-Id: <201307231510.r6NFA1TW020554@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Yamagi Burmeister Subject: Re: usb/180657: [PATCH] Filco Majestouch 2 keyboard recognized as keyboard and mouse X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Yamagi Burmeister List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jul 2013 15:10:02 -0000 The following reply was made to PR usb/180657; it has been noted by GNATS. From: Yamagi Burmeister To: hps@bitfrost.no Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: usb/180657: [PATCH] Filco Majestouch 2 keyboard recognized as keyboard and mouse Date: Tue, 23 Jul 2013 17:03:16 +0200 > I would expect two interfaces here. Only one driver can attach to a > single interface. Is your keyboard and mouse two separate devices > through an external USB HUB? The keyboard is attached directly to the computer without any hub between it. While the keyboard is just a keyboard (without any additional features like usb ports) there is of course the possibility that an user-invisible hub is build into it. > Is the ums and ukbd in the kernel? No, they're loaded as modules via /boot/loader.conf > Could you run one more with your quirk disabled and dual mouse/keyboard > plugged in: > > usbconfig -d X.Y show_ifdrv Of course: % usbconfig -d 3.3 show_ifdrv ugen3.3: at usbus3, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA) ugen3.3.0: ukbd0: ugen3.3.1: ums1: If more information is required feel free to ask. You could contact me by ICQ, I should still be in your contact list. :) Ciao, Yamagi -- Homepage: www.yamagi.org XMPP: yamagi@yamagi.org GnuPG/GPG: 0xEFBCCBCB From owner-freebsd-usb@FreeBSD.ORG Tue Jul 23 15:30:02 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 10F22BB3 for ; Tue, 23 Jul 2013 15:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 01DAF247C for ; Tue, 23 Jul 2013 15:30:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r6NFU1cw025002 for ; Tue, 23 Jul 2013 15:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6NFU1bj025001; Tue, 23 Jul 2013 15:30:01 GMT (envelope-from gnats) Date: Tue, 23 Jul 2013 15:30:01 GMT Message-Id: <201307231530.r6NFU1bj025001@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Hans Petter Selasky Subject: Re: usb/180657: [PATCH] Filco Majestouch 2 keyboard recognized as keyboard and mouse X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jul 2013 15:30:02 -0000 The following reply was made to PR usb/180657; it has been noted by GNATS. From: Hans Petter Selasky To: Yamagi Burmeister Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: usb/180657: [PATCH] Filco Majestouch 2 keyboard recognized as keyboard and mouse Date: Tue, 23 Jul 2013 17:23:50 +0200 On 07/23/13 17:03, Yamagi Burmeister wrote: >> I would expect two interfaces here. Only one driver can attach to a >> single interface. Is your keyboard and mouse two separate devices >> through an external USB HUB? > > The keyboard is attached directly to the computer without any hub > between it. While the keyboard is just a keyboard (without any > additional features like usb ports) there is of course the > possibility that an user-invisible hub is build into it. > >> Is the ums and ukbd in the kernel? > > No, they're loaded as modules via /boot/loader.conf > >> Could you run one more with your quirk disabled and dual mouse/keyboard >> plugged in: >> >> usbconfig -d X.Y show_ifdrv > > Of course: > > % usbconfig -d 3.3 show_ifdrv > ugen3.3: at usbus3, cfg=0 md=HOST spd=LOW > (1.5Mbps) pwr=ON (100mA) > ugen3.3.0: ukbd0: 1.10/1.01, addr 3> > ugen3.3.1: ums1: addr 3> > > If more information is required feel free to ask. You could contact me > by ICQ, I should still be in your contact list. :) > > Ciao, > Yamagi > Hi, This is not the same device that you dumped the configuration descriptor for. VID and PID values changed. Could you try: usbconfig -d 3.3 dump_curr_config_desc Thank you! --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Jul 23 15:30:03 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 4B1AEBB4 for ; Tue, 23 Jul 2013 15:30:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 24270247D for ; Tue, 23 Jul 2013 15:30:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r6NFU2eR025008 for ; Tue, 23 Jul 2013 15:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6NFU2ge025007; Tue, 23 Jul 2013 15:30:02 GMT (envelope-from gnats) Date: Tue, 23 Jul 2013 15:30:02 GMT Message-Id: <201307231530.r6NFU2ge025007@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Yamagi Burmeister Subject: Re: usb/180657: [PATCH] Filco Majestouch 2 keyboard recognized as keyboard and mouse X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Yamagi Burmeister List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jul 2013 15:30:03 -0000 The following reply was made to PR usb/180657; it has been noted by GNATS. From: Yamagi Burmeister To: hps@bitfrost.no Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: usb/180657: [PATCH] Filco Majestouch 2 keyboard recognized as keyboard and mouse Date: Tue, 23 Jul 2013 17:27:29 +0200 On Tue, 23 Jul 2013 17:23:50 +0200 Hans Petter Selasky wrote: > This is not the same device that you dumped the configuration descriptor > for. VID and PID values changed. Could you try: > > usbconfig -d 3.3 dump_curr_config_desc > > Thank you! > > --HPS > Here you are: ugen3.3: at usbus3, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA) Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x003b bNumInterfaces = 0x0002 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x00a0 bMaxPower = 0x0032 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0003 bInterfaceSubClass = 0x0001 bInterfaceProtocol = 0x0001 iInterface = 0x0000 Additional Descriptor bLength = 0x09 bDescriptorType = 0x21 bDescriptorSubType = 0x10 RAW dump: 0x00 | 0x09, 0x21, 0x10, 0x01, 0x00, 0x01, 0x22, 0x3e, 0x08 | 0x00 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0008 bInterval = 0x0001 bRefresh = 0x0000 bSynchAddress = 0x0000 Interface 1 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0001 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0003 bInterfaceSubClass = 0x0001 bInterfaceProtocol = 0x0002 iInterface = 0x0000 Additional Descriptor bLength = 0x09 bDescriptorType = 0x21 bDescriptorSubType = 0x10 RAW dump: 0x00 | 0x09, 0x21, 0x10, 0x01, 0x00, 0x01, 0x22, 0xa6, 0x08 | 0x00 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0082 bmAttributes = 0x0003 wMaxPacketSize = 0x0008 bInterval = 0x0001 bRefresh = 0x0000 bSynchAddress = 0x0000 -- Homepage: www.yamagi.org XMPP: yamagi@yamagi.org GnuPG/GPG: 0xEFBCCBCB From owner-freebsd-usb@FreeBSD.ORG Tue Jul 23 18:00:02 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 84FE6578 for ; Tue, 23 Jul 2013 18:00:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 75C3C2C49 for ; Tue, 23 Jul 2013 18:00:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r6NI017a054709 for ; Tue, 23 Jul 2013 18:00:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6NI01EY054708; Tue, 23 Jul 2013 18:00:01 GMT (envelope-from gnats) Date: Tue, 23 Jul 2013 18:00:01 GMT Message-Id: <201307231800.r6NI01EY054708@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Yamagi Burmeister Subject: Re: usb/180657: [PATCH] Filco Majestouch 2 keyboard recognized as keyboard and mouse X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Yamagi Burmeister List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jul 2013 18:00:02 -0000 The following reply was made to PR usb/180657; it has been noted by GNATS. From: Yamagi Burmeister To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: usb/180657: [PATCH] Filco Majestouch 2 keyboard recognized as keyboard and mouse Date: Tue, 23 Jul 2013 19:57:38 +0200 An IRC diskussion shed some more light on this: The problems (can be seen in STALLs in usbdump output, see below) only arise when the keyboard is connected at boottime. When it's hotplugged at runtime everything is working fine. A misbehaving keyboard works fine when reset with "usbbconfig reset". The problems arise on the console and in X11. Some usbdumps: - broken behavior and moused(1) attached to the mouse endpoint: http://deponie.yamagi.org/freebsd/misc/filco_majestouch.txt - broken behavior with moused(1) not attached: http://deponie.yamagi.org/freebsd/misc/filco_majestouch2.txt - with the quirk applied everything is fine: http://deponie.yamagi.org/freebsd/misc/filco_majestouch3.txt I'll send the keyboard back and order a new one from a different retailer to rule out a hardware issue. Until then no more action should be taken. I'll report back in a few days. -- Homepage: www.yamagi.org XMPP: yamagi@yamagi.org GnuPG/GPG: 0xEFBCCBCB From owner-freebsd-usb@FreeBSD.ORG Tue Jul 23 18:10:07 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 65668758 for ; Tue, 23 Jul 2013 18:10:07 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: from mail-qc0-x22a.google.com (mail-qc0-x22a.google.com [IPv6:2607:f8b0:400d:c01::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2F4AC2CC4 for ; Tue, 23 Jul 2013 18:10:07 +0000 (UTC) Received: by mail-qc0-f170.google.com with SMTP id s1so4527343qcw.15 for ; Tue, 23 Jul 2013 11:10:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=lC4m11vNnqELjmWdmT3BVa9Bfr9V3m2uNgvjkgsdP44=; b=AyiS6FFNZULYVT9mquEPAQ4/Z0q49skzM6wsI0tEwttRMFrYCXlMf7OufqtrsACdAs s35UQ0dCKWHCtToj2OYthZd9kQwL0Bc70cTlowq8E1LhTGg4wQBwJSd1ZVJziIn3iS4K c0zQ7zoeOnlyTv6do0fGOif147AiICsdkhXQdHM/B5VvOdrm4CkZQZHXenFFvAWEUfZ2 3nDj0NBPRYiaovyoN4GOeldOPsCHmf+SayGaJkpVSOgbJbf3nDo7a6X5z0oqBbEhI82z i00+yrzH8pr8PoyZ00B37FuLyzWStZm6IJQitMkZFhjzVbbXpD4NLUG+F+s7VivD1V0B OTjA== MIME-Version: 1.0 X-Received: by 10.224.122.66 with SMTP id k2mr41563445qar.47.1374603006236; Tue, 23 Jul 2013 11:10:06 -0700 (PDT) Sender: tomek.cedro@gmail.com Received: by 10.49.70.229 with HTTP; Tue, 23 Jul 2013 11:10:06 -0700 (PDT) Date: Tue, 23 Jul 2013 20:10:06 +0200 X-Google-Sender-Auth: djqFF7Pyl3GkGvUksQfBbBhu0XE Message-ID: Subject: LibFTDI/LibUSB 1.0 and Asyncrhonous I/O on FreeBSD From: CeDeROM To: "freebsd-usb@FreeBSD.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jul 2013 18:10:07 -0000 Hello :-) LibUSB 1.0 introduced Asyncrhonous I/O [1] which in conjuction with LibFTDI 1.0 [2] gives significant performance improvement on FT2232* based chips used in various UART/JTAG/SWD interfaces. I am working on LibSWD [3] and would like to use this Asyncrhonous I/O on my FreeBSD box. I know there is an internal BSD implementation of LibUSB, so my question is it possible to use this Asynchronous I/O with FreeBSD implementation of LibUSB, or more specifically is it possible to use LibFTDI 1.0 to improve speed of my driver for FT2232 chip? :-) Any hints appreciated! :-) Tomek [1] http://www.libusb.org/wiki/libusb-1.0 [2] http://www.intra2net.com/en/developer/libftdi/ [3] http://libswd.sf.net -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From owner-freebsd-usb@FreeBSD.ORG Tue Jul 23 19:02:27 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id CC3DFA33 for ; Tue, 23 Jul 2013 19:02:27 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id 8B90D2F74 for ; Tue, 23 Jul 2013 19:02:27 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id 96FE57A0DC; Tue, 23 Jul 2013 21:02:25 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 7E4508EFB96; Tue, 23 Jul 2013 21:02:29 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ukepwfawvwyy; Tue, 23 Jul 2013 21:02:28 +0200 (CEST) Received: from laptop015.hselasky.homeunix.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id B52AB8EFB95; Tue, 23 Jul 2013 21:02:28 +0200 (CEST) Message-ID: <51EED39F.4040708@bitfrost.no> Date: Tue, 23 Jul 2013 21:03:59 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 To: CeDeROM Subject: Re: LibFTDI/LibUSB 1.0 and Asyncrhonous I/O on FreeBSD References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-usb@FreeBSD.org" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jul 2013 19:02:27 -0000 On 07/23/13 20:10, CeDeROM wrote: > Hello :-) > > LibUSB 1.0 introduced Asyncrhonous I/O [1] which in conjuction with > LibFTDI 1.0 [2] gives significant performance improvement on FT2232* > based chips used in various UART/JTAG/SWD interfaces. I am working on > LibSWD [3] and would like to use this Asyncrhonous I/O on my FreeBSD > box. I know there is an internal BSD implementation of LibUSB, so my > question is it possible to use this Asynchronous I/O with FreeBSD > implementation of LibUSB, or more specifically is it possible to use > LibFTDI 1.0 to improve speed of my driver for FT2232 chip? :-) > > Any hints appreciated! :-) > Tomek > > [1] http://www.libusb.org/wiki/libusb-1.0 > [2] http://www.intra2net.com/en/developer/libftdi/ > [3] http://libswd.sf.net > Hi, It is implemented and should work! Please note that you should not mix synchronous and asynchronous requests, with exception of control transfers. If you are programming a bulk endpoint, use either all synchronous or all asynchronous. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Jul 23 19:41:02 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 419BB8E6 for ; Tue, 23 Jul 2013 19:41:02 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: from mail-qa0-x232.google.com (mail-qa0-x232.google.com [IPv6:2607:f8b0:400d:c00::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 08F402161 for ; Tue, 23 Jul 2013 19:41:01 +0000 (UTC) Received: by mail-qa0-f50.google.com with SMTP id f14so1507656qak.16 for ; Tue, 23 Jul 2013 12:41:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=BYF09I29GE/BFrQWGWbEtjmVThnlkJ+dZO/MvdqLYbs=; b=B1CPHbMdz+fi8UgzzjOV4ffocZ+kt4zq13EV668JCSOSEXuiiLM2IBNUvfQgZOQANp Az5p0GYd1oqTsd5mvf3Kvl+PqW+cb9If+3w7qblN7Y+dXXlb2+kA5+jAtBZ3r6dsuvi6 7ULCSgovnjzn0N2tkAUOvxiqB/2tXygo07pAKR+wbqrzgEiAftN5ZzCh0RB0+EiArncX EEfSCQIXiZQwahpHImo+idkSMBluhSvus6vJFA1g/rcN+h8xwYbf213mfVdJpBe+91kx skLk+IufG+G3mqBbItn4wY1chU6jVoOYMUgO7JRlCFg8GycVWu2SEDEWw6QLwjeURnXO aV1A== MIME-Version: 1.0 X-Received: by 10.229.139.196 with SMTP id f4mr9314183qcu.34.1374608460651; Tue, 23 Jul 2013 12:41:00 -0700 (PDT) Sender: tomek.cedro@gmail.com Received: by 10.49.70.229 with HTTP; Tue, 23 Jul 2013 12:41:00 -0700 (PDT) In-Reply-To: <51EED39F.4040708@bitfrost.no> References: <51EED39F.4040708@bitfrost.no> Date: Tue, 23 Jul 2013 21:41:00 +0200 X-Google-Sender-Auth: nyEPSgMvfMYskE29u7AFNYiybb8 Message-ID: Subject: Re: LibFTDI/LibUSB 1.0 and Asyncrhonous I/O on FreeBSD From: CeDeROM To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-usb@FreeBSD.org" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jul 2013 19:41:02 -0000 On Tue, Jul 23, 2013 at 9:03 PM, Hans Petter Selasky wrote: > On 07/23/13 20:10, CeDeROM wrote: >> question is it possible to use this Asynchronous I/O with FreeBSD >> implementation of LibUSB, or more specifically is it possible to use >> LibFTDI 1.0 to improve speed of my driver for FT2232 chip? :-) > > Hi, > It is implemented and should work! Please note that you should not mix > synchronous and asynchronous requests, with exception of control transfers. > If you are programming a bulk endpoint, use either all synchronous or all > asynchronous. > --HPS Wow! Good news! Thank you Hans!! :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From owner-freebsd-usb@FreeBSD.ORG Wed Jul 24 20:09:56 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 0F4A770F for ; Wed, 24 Jul 2013 20:09:56 +0000 (UTC) (envelope-from damjan.jov@gmail.com) Received: from mail-we0-x230.google.com (mail-we0-x230.google.com [IPv6:2a00:1450:400c:c03::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9F0182949 for ; Wed, 24 Jul 2013 20:09:55 +0000 (UTC) Received: by mail-we0-f176.google.com with SMTP id q56so2506889wes.7 for ; Wed, 24 Jul 2013 13:09:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=CxVh4FM37XFA89y9A30gUaIX3U6k1Z9hqX4LVExcaZs=; b=IW/4p1eQ3d0biIsHhKTRId94ce9j9ioBMpO1rw3Ydk0EgGy+nZ1/ADdY36i9QltzvI y/m4DOa0a1BDgCL8/AsUmtzRzUwkd3fWVwQUk7GKT9PCmGmyEe1/prbDTTd1Yo6jh4SN Mhp/aopqGGHqJ7pxnc+XS+LOuePImop205xCwfqMhAKG6s86G3WGJh+2MrOFxhSs6TiS qwA3uGELf+05M4Xu8KQQw0zgLE4td1twRKpSpbL7k6MDNLVwjQn+nh52vlHwFGqHsK4C 8u3ABonm6vnjiuKTVHWdw/TYOb6yhV0rCRE/iGIbn3ox1Uk8MLWqstyt4o4b4gbtC2MX 6EDQ== X-Received: by 10.180.39.136 with SMTP id p8mr3950367wik.11.1374696593659; Wed, 24 Jul 2013 13:09:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.181.10 with HTTP; Wed, 24 Jul 2013 13:09:33 -0700 (PDT) From: Damjan Jovanovic Date: Wed, 24 Jul 2013 20:09:33 +0000 Message-ID: Subject: COMPAT_32BIT libusb ABI problem To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jul 2013 20:09:56 -0000 Hi The ioctl: #define USB_FS_INIT _IOW ('U', 195, struct usb_fs_init) when used by a COMPAT_32BIT libusb on amd64, fails (causing libusb_open() to fail) due to: freebsd32_ioctl(0x6,0x800c55c3,0xffffc710,0x0,0x0,0x0) ERR#25 'Inappropriate ioctl for device' but when hacked a bit: freebsd32_ioctl(0x6,0x801055c3,0xffffc710,0x0,0x0,0x0) = 0 (0x0) because sizeof(struct usb_fs_init) is 12 bytes on i386, and 16 bytes on amd64. But the failure of even libusb_open() - a fundamental libusb function - must mean that the COMPAT_32BIT libusb never worked. Can we please take this opportunity to kill it and do a real 32 bit compatibility layer in the kernel that will work from 32 bit chroots and statically linked 32 bit binaries? I'll help. Regards Damjan From owner-freebsd-usb@FreeBSD.ORG Thu Jul 25 06:10:03 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A1CBFCCD for ; Thu, 25 Jul 2013 06:10:03 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id 325712ED0 for ; Thu, 25 Jul 2013 06:10:03 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id 4BD297A13D; Thu, 25 Jul 2013 08:10:01 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 7CE4F8EFEB1; Thu, 25 Jul 2013 08:10:05 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FT-nldVygX7W; Thu, 25 Jul 2013 08:10:04 +0200 (CEST) Received: from laptop015.hselasky.homeunix.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id 8F9828EFEAF; Thu, 25 Jul 2013 08:10:04 +0200 (CEST) Message-ID: <51F0C193.4000104@bitfrost.no> Date: Thu, 25 Jul 2013 08:11:31 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 To: Damjan Jovanovic Subject: Re: COMPAT_32BIT libusb ABI problem References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jul 2013 06:10:03 -0000 On 07/24/13 22:09, Damjan Jovanovic wrote: > Hi > > The ioctl: > #define USB_FS_INIT _IOW ('U', 195, struct usb_fs_init) > when used by a COMPAT_32BIT libusb on amd64, fails (causing > libusb_open() to fail) due to: > > freebsd32_ioctl(0x6,0x800c55c3,0xffffc710,0x0,0x0,0x0) ERR#25 > 'Inappropriate ioctl for device' > but when hacked a bit: > freebsd32_ioctl(0x6,0x801055c3,0xffffc710,0x0,0x0,0x0) = 0 (0x0) > > because sizeof(struct usb_fs_init) is 12 bytes on i386, and 16 bytes on amd64. > > But the failure of even libusb_open() - a fundamental libusb function > - must mean that the COMPAT_32BIT libusb never worked. Can we please > take this opportunity to kill it and do a real 32 bit compatibility > layer in the kernel that will work from 32 bit chroots and statically > linked 32 bit binaries? I'll help. Hi, How did you compile it? Is the structure the same size, compiled with GCC and LLVM? The LIB32 for USB has been tested. I did a quick test and found on 9-stable: cc -m32 -I . -L /usr/lib32 -lusb usbconfig.c dump.c env LD_PRELOAD=/usr/lib32/libusb.so ./a.out ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA) ugen1.1: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA) ... Your approach requires much more code. It is not just about some structures, but also about code accessing those structures. Feel free to submit a patch however. I would rather fix this by adding the proper __aligned() to the structures in question. --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Jul 25 12:23:57 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 9166D7D6 for ; Thu, 25 Jul 2013 12:23:57 +0000 (UTC) (envelope-from patfbsd@davenulle.org) Received: from smtp.lamaiziere.net (net.lamaiziere.net [94.23.254.147]) by mx1.freebsd.org (Postfix) with ESMTP id 5BC8B2580 for ; Thu, 25 Jul 2013 12:23:56 +0000 (UTC) Received: from mr129166.localdomain (mr129166.cri.univ-rennes1.fr [129.20.129.166]) by smtp.lamaiziere.net (Postfix) with ESMTPA id 0BB8654AB for ; Thu, 25 Jul 2013 14:23:49 +0200 (CEST) Received: from mr129166 (localhost [127.0.0.1]) by mr129166.localdomain (Postfix) with ESMTP id 8975C1072 for ; Thu, 25 Jul 2013 14:23:48 +0200 (CEST) Date: Thu, 25 Jul 2013 14:23:48 +0200 From: Patrick Lamaiziere To: freebsd-usb@freebsd.org Subject: umass (da) quirk ? Message-ID: <20130725142348.788c25cc@mr129166> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.19; amd64-portbld-freebsd9.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jul 2013 12:23:57 -0000 Hello, 9.2/amd64 I have to add a scsi_da quirk (Q_DA_NO_PREVENT) on a Kinston DT 101 G2 usb stick to make it works. This quirk is confirmed by a PR on Netbsd but NetBSD adds also few other Kingston usb keys with this quirk. http://freshbsd.org/commit/netbsd/6920595603b43ca9e73ca9bcc95e63d9201c9ad3 So while I'm here, i would like to include these other devices in my PR, but how can I know the match string to put in the quirk without the hardware? the quirk is: { /* * Kingston DT 101 G2 USB stick. * PR: */ {T_DIRECT, SIP_MEDIA_REMOVABLE, "Kingston", "DT 101 G2", "*"}, /*quirks*/ DA_Q_NO_PREVENT }, Another question, I'm sure this key worked on FreeBSD 9.0, and it works fine on 8.3. I am asking why a quirk is needed now? Thanks, Regards. From owner-freebsd-usb@FreeBSD.ORG Thu Jul 25 12:29:19 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 1D182873; Thu, 25 Jul 2013 12:29:19 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id CD9A725BA; Thu, 25 Jul 2013 12:29:18 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id 6E14B7A191; Thu, 25 Jul 2013 14:29:11 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id C9BB38EFF61; Thu, 25 Jul 2013 14:29:15 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6F41gJnFZhWQ; Thu, 25 Jul 2013 14:29:15 +0200 (CEST) Received: from laptop015.hselasky.homeunix.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id DAE068EFF60; Thu, 25 Jul 2013 14:29:14 +0200 (CEST) Message-ID: <51F11A72.5080606@bitfrost.no> Date: Thu, 25 Jul 2013 14:30:42 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 To: Patrick Lamaiziere Subject: Re: umass (da) quirk ? References: <20130725142348.788c25cc@mr129166> In-Reply-To: <20130725142348.788c25cc@mr129166> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Alexander Motin , freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jul 2013 12:29:19 -0000 On 07/25/13 14:23, Patrick Lamaiziere wrote: > Hello, > > 9.2/amd64 > > I have to add a scsi_da quirk (Q_DA_NO_PREVENT) on a Kinston DT 101 G2 > usb stick to make it works. > > This quirk is confirmed by a PR on Netbsd but NetBSD adds also few > other Kingston usb keys with this quirk. > http://freshbsd.org/commit/netbsd/6920595603b43ca9e73ca9bcc95e63d9201c9ad3 > > So while I'm here, i would like to include these other devices in my > PR, but how can I know the match string to put in the quirk without the > hardware? > > the quirk is: > { > /* > * Kingston DT 101 G2 USB stick. > * PR: > */ > {T_DIRECT, SIP_MEDIA_REMOVABLE, "Kingston", "DT 101 G2", > "*"}, /*quirks*/ DA_Q_NO_PREVENT > }, > > Another question, I'm sure this key worked on FreeBSD 9.0, and it works > fine on 8.3. I am asking why a quirk is needed now? > Hi, I suspect the SCSI/CAM code has changed a bit since 8.3. --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Jul 25 18:55:03 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 29738C33 for ; Thu, 25 Jul 2013 18:55:03 +0000 (UTC) (envelope-from damjan.jov@gmail.com) Received: from mail-wi0-x22a.google.com (mail-wi0-x22a.google.com [IPv6:2a00:1450:400c:c05::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id AB18929CA for ; Thu, 25 Jul 2013 18:55:02 +0000 (UTC) Received: by mail-wi0-f170.google.com with SMTP id ey16so11335wid.5 for ; Thu, 25 Jul 2013 11:55:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=5L9jsCfSd8pHu0/fDWTdlHDjzCUtMoVeNVGohBTuEJg=; b=emo24NJI8IiWu3ENCjPHutoaAJwGvKqtY46xOZl6ORKuH5Il/GVmZ/3rRvztoBZrVo /C6Hp8rEa5FgydhSZF1fpHOx48zvYyG80tVnfkdzQmeK4Khf2ZbmD3nQmoy7yCl2JjMA qQQU1ylvCUjsC0joTw/OtIh1Fn3soyhIg8ylLJZbohLPAPActD+4PBFxaURxDeXkYWum yey57Ro/37N/PW75++g9YL2phkJWcGLcBRFsI4b98RXWV/Ptu4uUjXiaE1uIZNF5Abgu 0WaTjx6/K9A34W/hsQj+eq6sepGUc4oDBpbBw65FvA+MrG2zVMmPb0A1BCu2pBf7LWTE Vkhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=5L9jsCfSd8pHu0/fDWTdlHDjzCUtMoVeNVGohBTuEJg=; b=c/TzDLfg65XktGuzD3+vXKCrcCk+hhAgo0VBSYqWLKgGPy6a7NG0RjPUMAwIZEHJPm oFX4JQtO26C3IbqdqRyJbU3JJi3r+7uatEYnPKvfN/+SoChVAAeifnGuXoDzpBZQ3U5f i6A0YtbM1vBSOOdzvQ04qlskiU6UWTphLs2wogyte7gsML+F/lZZcVb32FzYsdfYHWcI cvaoCeI9Tq9phal8waCr3/YOoASpaGUpO/sPnjbtnce+6V4h1ogM3k+ULk2dmxZ85y6V 4flexGsCzKE4ZQQWZg5j0YobZqui2SLmOFhhXz2fyUHe1zEXFxfJngUuVFoBCAlrcaTC PzxA== X-Received: by 10.180.160.240 with SMTP id xn16mr3065225wib.62.1374778501013; Thu, 25 Jul 2013 11:55:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.181.10 with HTTP; Thu, 25 Jul 2013 11:54:40 -0700 (PDT) In-Reply-To: <51F0C193.4000104@bitfrost.no> References: <51F0C193.4000104@bitfrost.no> From: Damjan Jovanovic Date: Thu, 25 Jul 2013 18:54:40 +0000 Message-ID: Subject: Re: COMPAT_32BIT libusb ABI problem To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jul 2013 18:55:03 -0000 On Thu, Jul 25, 2013 at 6:11 AM, Hans Petter Selasky wrote: > On 07/24/13 22:09, Damjan Jovanovic wrote: >> >> Hi >> >> The ioctl: >> #define USB_FS_INIT _IOW ('U', 195, struct usb_fs_init) >> when used by a COMPAT_32BIT libusb on amd64, fails (causing >> libusb_open() to fail) due to: >> >> freebsd32_ioctl(0x6,0x800c55c3,0xffffc710,0x0,0x0,0x0) ERR#25 >> 'Inappropriate ioctl for device' >> but when hacked a bit: >> freebsd32_ioctl(0x6,0x801055c3,0xffffc710,0x0,0x0,0x0) = 0 (0x0) >> >> because sizeof(struct usb_fs_init) is 12 bytes on i386, and 16 bytes on >> amd64. >> >> But the failure of even libusb_open() - a fundamental libusb function >> - must mean that the COMPAT_32BIT libusb never worked. Can we please >> take this opportunity to kill it and do a real 32 bit compatibility >> layer in the kernel that will work from 32 bit chroots and statically >> linked 32 bit binaries? I'll help. > > > Hi, > > How did you compile it? Is the structure the same size, compiled with GCC > and LLVM? GCC 4.2.1 "gcc file.c -o file -lusb" in a 32 bit chroot = 12 bytes "gcc file.c -o file -lusb" 64 bit = 16 bytes Clang 3.1 "clang file.c -o file -lusb" in a 32 bit chroot = 12 bytes "clang file.c -o file -lusb" 64 bit = 16 bytes The "uint8_t ep_index_max" field at the end of struct usb_fs_init must be getting padded to a 4 byte boundary on 32 bit, and 8 byte boundary on 64 bit. > The LIB32 for USB has been tested. I did a quick test and found on 9-stable: > > cc -m32 -I . -L /usr/lib32 -lusb usbconfig.c dump.c > env LD_PRELOAD=/usr/lib32/libusb.so ./a.out > ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=SAVE (0mA) > ugen1.1: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=SAVE (0mA) > > ... But usbconfig uses the libusb20 API and never seems to get to that broken ioctl. > Your approach requires much more code. It is not just about some structures, > but also about code accessing those structures. Feel free to submit a patch > however. I'll see what I can do. > I would rather fix this by adding the proper __aligned() to the structures > in question. Do that in the meanwhile? > --HPS > Damjan From owner-freebsd-usb@FreeBSD.ORG Thu Jul 25 19:01:13 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id BED76E13 for ; Thu, 25 Jul 2013 19:01:13 +0000 (UTC) (envelope-from hans.petter.selasky@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id 2CF3D2A0F for ; Thu, 25 Jul 2013 19:01:13 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id B1B9E7A1E5; Thu, 25 Jul 2013 21:01:10 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 049D08F0091; Thu, 25 Jul 2013 21:01:15 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jwOa7KrISQuI; Thu, 25 Jul 2013 21:01:14 +0200 (CEST) Received: from mail.lockless.no (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id F2B5C8F008F; Thu, 25 Jul 2013 21:01:13 +0200 (CEST) Subject: RE: COMPAT_32BIT libusb ABI problem From: =?utf-8?Q?Hans_Petter_Selasky?= To: =?utf-8?Q?Damjan_Jovanovic?= Date: Thu, 25 Jul 2013 21:01:13 +0200 Mime-Version: 1.0 In-Reply-To: References: X-Priority: 3 (Normal) X-Mailer: Zarafa 7.1.4-41394 Message-Id: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: =?utf-8?Q?freebsd-usb=40freebsd=2Eorg?= X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jul 2013 19:01:13 -0000 Hi,=0D=0A=0D=0ALibUSB 32-bit is compiled using -m32 in a 64-bit environme= nt. What happens when you pass -m32 to the compiler=3F=0D=0A=0D=0AThank y= ou for your report.=0D=0A=0D=0AAnother alternative is to use __packed att= ribute, but that has some implications too.=0D=0A=0D=0A--HPS=0D=0A=20=0D=0A= -----Original message-----=0D=0A> From:Damjan Jovanovic >=0D=0A> Sent: Thursday 25th July 20= 13 20:55=0D=0A> To: Hans Petter Selasky >=0D=0A> Cc: freebsd-usb@freebsd= =2Eorg =20=0D=0A> Subject: Re: COMPAT_32B= IT libusb ABI problem=0D=0A>=20=0D=0A> On Thu, Jul 25, 2013 at 6:11 AM, H= ans Petter Selasky > wrote:=0D=0A= > > On 07/24/13 22:09, Damjan Jovanovic wrote:=0D=0A> >>=0D=0A> >> Hi=0D=0A= > >>=0D=0A> >> The ioctl:=0D=0A> >> #define USB_FS_INIT _IOW = ('U', 195, struct usb_fs_init)=0D=0A> >> when used by a COMPAT_32BIT libu= sb on amd64, fails (causing=0D=0A> >> libusb_open() to fail) due to:=0D=0A= > >>=0D=0A> >> freebsd32_ioctl(0x6,0x800c55c3,0xffffc710,0x0,0x0,0x0) ERR= #25=0D=0A> >> 'Inappropriate ioctl for device'=0D=0A> >> but when hacked = a bit:=0D=0A> >> freebsd32_ioctl(0x6,0x801055c3,0xffffc710,0x0,0x0,0x0) =3D= 0 (0x0)=0D=0A> >>=0D=0A> >> because sizeof(struct usb_fs_init) is 12 byt= es on i386, and 16 bytes on=0D=0A> >> amd64.=0D=0A> >>=0D=0A> >> But the = failure of even libusb_open() - a fundamental libusb function=0D=0A> >> -= must mean that the COMPAT_32BIT libusb never worked. Can we please=0D=0A= > >> take this opportunity to kill it and do a real 32 bit compatibility=0D= =0A> >> layer in the kernel that will work from 32 bit chroots and static= ally=0D=0A> >> linked 32 bit binaries=3F I'll help.=0D=0A> >=0D=0A> >=0D=0A= > > Hi,=0D=0A> >=0D=0A> > How did you compile it=3F Is the structure the = same size, compiled with GCC=0D=0A> > and LLVM=3F=0D=0A>=20=0D=0A> GCC 4.= 2.1=0D=0A> "gcc file.c -o file -lusb" in a 32 bit chroot =3D 12 bytes=0D=0A= > "gcc file.c -o file -lusb" 64 bit =3D 16 bytes=0D=0A>=20=0D=0A> Clang 3= =2E1=0D=0A> "clang file.c -o file -lusb" in a 32 bit chroot =3D 12 bytes=0D= =0A> "clang file.c -o file -lusb" 64 bit =3D 16 bytes=0D=0A>=20=0D=0A> Th= e "uint8_t ep_index_max" field at the end of struct usb_fs_init must=0D=0A= > be getting padded to a 4 byte boundary on 32 bit, and 8 byte boundary=0D= =0A> on 64 bit.=0D=0A>=20=0D=0A> > The LIB32 for USB has been tested. I d= id a quick test and found on 9-stable:=0D=0A> >=0D=0A> > cc -m32 -I . -L = /usr/lib32 -lusb usbconfig.c dump.c=0D=0A> > env LD_PRELOAD=3D/usr/lib32/= libusb.so ./a.out=0D=0A> > ugen0.1: at usbus0, cfg=3D= 0 md=3DHOST spd=3DFULL (12Mbps)=0D=0A> > pwr=3DSAVE (0mA)=0D=0A> > ugen1.= 1: at usbus1, cfg=3D0 md=3DHOST spd=3DFULL (12Mbps)= =0D=0A> > pwr=3DSAVE (0mA)=0D=0A> >=0D=0A> > ...=0D=0A>=20=0D=0A> But usb= config uses the libusb20 API and never seems to get to that broken ioctl.= =0D=0A>=20=0D=0A> > Your approach requires much more code. It is not just= about some structures,=0D=0A> > but also about code accessing those stru= ctures. Feel free to submit a patch=0D=0A> > however.=0D=0A>=20=0D=0A> I'= ll see what I can do.=0D=0A>=20=0D=0A> > I would rather fix this by addin= g the proper __aligned() to the structures=0D=0A> > in question.=0D=0A>=20= =0D=0A> Do that in the meanwhile=3F=0D=0A>=20=0D=0A> > --HPS=0D=0A> >=0D=0A= >=20=0D=0A> Damjan=0D=0A>=20=0D=0A=0D=0A From owner-freebsd-usb@FreeBSD.ORG Fri Jul 26 02:03:11 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 14292360; Fri, 26 Jul 2013 02:03:11 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DAEDE2BDF; Fri, 26 Jul 2013 02:03:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r6Q23AU3089500; Fri, 26 Jul 2013 02:03:10 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6Q23Axa089499; Fri, 26 Jul 2013 02:03:10 GMT (envelope-from linimon) Date: Fri, 26 Jul 2013 02:03:10 GMT Message-Id: <201307260203.r6Q23Axa089499@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-usb@FreeBSD.org From: linimon@FreeBSD.org Subject: Re: usb/180837: [scsi_da] [patch] Kingston DT 101 G2 usb stick quirk (scsi_da quirk) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jul 2013 02:03:11 -0000 Old Synopsis: QUIRK: Kingston DT 101 G2 usb stick (scsi_da quirk) New Synopsis: [scsi_da] [patch] Kingston DT 101 G2 usb stick quirk (scsi_da quirk) Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Fri Jul 26 02:02:33 UTC 2013 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=180837 From owner-freebsd-usb@FreeBSD.ORG Fri Jul 26 06:30:01 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 66BEA9D2 for ; Fri, 26 Jul 2013 06:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 468302755 for ; Fri, 26 Jul 2013 06:30:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r6Q6U1gE042291 for ; Fri, 26 Jul 2013 06:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6Q6U13s042290; Fri, 26 Jul 2013 06:30:01 GMT (envelope-from gnats) Date: Fri, 26 Jul 2013 06:30:01 GMT Message-Id: <201307260630.r6Q6U13s042290@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: dfilter@FreeBSD.ORG (dfilter service) Subject: Re: usb/180726: commit references a PR X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: dfilter service List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jul 2013 06:30:01 -0000 The following reply was made to PR usb/180726; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/180726: commit references a PR Date: Fri, 26 Jul 2013 06:28:49 +0000 (UTC) Author: hselasky Date: Fri Jul 26 06:28:41 2013 New Revision: 253666 URL: http://svnweb.freebsd.org/changeset/base/253666 Log: MFC r253532: Fix an XHCI regression: The Block Event Interrupts, BEI, feature does not work like expected with the Renesas XHCI chipsets. Revert feature. While at it correct the TD SIZE computation in case of Zero Length Packet, ZLP, in the end of a multi frame USB transfer. PR: usb/180726 Modified: stable/8/sys/dev/usb/controller/xhci.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/dev/ (props changed) stable/8/sys/dev/usb/ (props changed) Modified: stable/8/sys/dev/usb/controller/xhci.c ============================================================================== --- stable/8/sys/dev/usb/controller/xhci.c Fri Jul 26 06:24:33 2013 (r253665) +++ stable/8/sys/dev/usb/controller/xhci.c Fri Jul 26 06:28:41 2013 (r253666) @@ -1654,7 +1654,6 @@ restart: /* fill out buffer pointers */ if (average == 0) { - npkt = 0; memset(&buf_res, 0, sizeof(buf_res)); } else { usbd_get_page(temp->pc, temp->offset + @@ -1669,15 +1668,17 @@ restart: buf_res.length = XHCI_TD_PAGE_SIZE; npkt_off += buf_res.length; - - /* setup npkt */ - npkt = (len_old - npkt_off + temp->max_packet_size - 1) / - temp->max_packet_size; - - if (npkt > 31) - npkt = 31; } + /* setup npkt */ + npkt = (len_old - npkt_off + temp->max_packet_size - 1) / + temp->max_packet_size; + + if (npkt == 0) + npkt = 1; + else if (npkt > 31) + npkt = 31; + /* fill out TRB's */ td->td_trb[x].qwTrb0 = htole64((uint64_t)buf_res.physaddr); @@ -1691,9 +1692,7 @@ restart: switch (temp->trb_type) { case XHCI_TRB_TYPE_ISOCH: - /* BEI: Interrupts are inhibited until EOT */ dword = XHCI_TRB_3_CHAIN_BIT | XHCI_TRB_3_CYCLE_BIT | - XHCI_TRB_3_BEI_BIT | XHCI_TRB_3_TBC_SET(temp->tbc) | XHCI_TRB_3_TLBPC_SET(temp->tlbpc); if (td != td_first) { @@ -1728,10 +1727,8 @@ restart: dword |= XHCI_TRB_3_DIR_IN; break; default: /* XHCI_TRB_TYPE_NORMAL */ - /* BEI: Interrupts are inhibited until EOT */ dword = XHCI_TRB_3_CHAIN_BIT | XHCI_TRB_3_CYCLE_BIT | XHCI_TRB_3_TYPE_SET(XHCI_TRB_TYPE_NORMAL) | - XHCI_TRB_3_BEI_BIT | XHCI_TRB_3_TBC_SET(temp->tbc) | XHCI_TRB_3_TLBPC_SET(temp->tlbpc); if (temp->direction == UE_DIR_IN) @@ -1810,6 +1807,7 @@ restart: usb_pc_cpu_flush(td_first->page_cache); } + /* clear TD SIZE to zero, hence this is the last TRB */ /* remove chain bit because this is the last TRB in the chain */ td->td_trb[td->ntrb - 1].dwTrb2 &= ~htole32(XHCI_TRB_2_TDSZ_SET(15)); td->td_trb[td->ntrb - 1].dwTrb3 &= ~htole32(XHCI_TRB_3_CHAIN_BIT); _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Fri Jul 26 06:30:02 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 622CC9D3 for ; Fri, 26 Jul 2013 06:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4008B2756 for ; Fri, 26 Jul 2013 06:30:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r6Q6U2KL042300 for ; Fri, 26 Jul 2013 06:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6Q6U21o042299; Fri, 26 Jul 2013 06:30:02 GMT (envelope-from gnats) Date: Fri, 26 Jul 2013 06:30:02 GMT Message-Id: <201307260630.r6Q6U21o042299@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: dfilter@FreeBSD.ORG (dfilter service) Subject: Re: usb/180726: commit references a PR X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: dfilter service List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jul 2013 06:30:02 -0000 The following reply was made to PR usb/180726; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/180726: commit references a PR Date: Fri, 26 Jul 2013 06:24:51 +0000 (UTC) Author: hselasky Date: Fri Jul 26 06:24:33 2013 New Revision: 253665 URL: http://svnweb.freebsd.org/changeset/base/253665 Log: MFC r253532: Fix an XHCI regression: The Block Event Interrupts, BEI, feature does not work like expected with the Renesas XHCI chipsets. Revert feature. While at it correct the TD SIZE computation in case of Zero Length Packet, ZLP, in the end of a multi frame USB transfer. PR: usb/180726 Approved by: re, hrs Modified: stable/9/sys/dev/usb/controller/xhci.c Directory Properties: stable/9/sys/ (props changed) stable/9/sys/dev/ (props changed) Modified: stable/9/sys/dev/usb/controller/xhci.c ============================================================================== --- stable/9/sys/dev/usb/controller/xhci.c Fri Jul 26 06:23:57 2013 (r253664) +++ stable/9/sys/dev/usb/controller/xhci.c Fri Jul 26 06:24:33 2013 (r253665) @@ -1654,7 +1654,6 @@ restart: /* fill out buffer pointers */ if (average == 0) { - npkt = 0; memset(&buf_res, 0, sizeof(buf_res)); } else { usbd_get_page(temp->pc, temp->offset + @@ -1669,15 +1668,17 @@ restart: buf_res.length = XHCI_TD_PAGE_SIZE; npkt_off += buf_res.length; - - /* setup npkt */ - npkt = (len_old - npkt_off + temp->max_packet_size - 1) / - temp->max_packet_size; - - if (npkt > 31) - npkt = 31; } + /* setup npkt */ + npkt = (len_old - npkt_off + temp->max_packet_size - 1) / + temp->max_packet_size; + + if (npkt == 0) + npkt = 1; + else if (npkt > 31) + npkt = 31; + /* fill out TRB's */ td->td_trb[x].qwTrb0 = htole64((uint64_t)buf_res.physaddr); @@ -1691,9 +1692,7 @@ restart: switch (temp->trb_type) { case XHCI_TRB_TYPE_ISOCH: - /* BEI: Interrupts are inhibited until EOT */ dword = XHCI_TRB_3_CHAIN_BIT | XHCI_TRB_3_CYCLE_BIT | - XHCI_TRB_3_BEI_BIT | XHCI_TRB_3_TBC_SET(temp->tbc) | XHCI_TRB_3_TLBPC_SET(temp->tlbpc); if (td != td_first) { @@ -1728,10 +1727,8 @@ restart: dword |= XHCI_TRB_3_DIR_IN; break; default: /* XHCI_TRB_TYPE_NORMAL */ - /* BEI: Interrupts are inhibited until EOT */ dword = XHCI_TRB_3_CHAIN_BIT | XHCI_TRB_3_CYCLE_BIT | XHCI_TRB_3_TYPE_SET(XHCI_TRB_TYPE_NORMAL) | - XHCI_TRB_3_BEI_BIT | XHCI_TRB_3_TBC_SET(temp->tbc) | XHCI_TRB_3_TLBPC_SET(temp->tlbpc); if (temp->direction == UE_DIR_IN) @@ -1810,6 +1807,7 @@ restart: usb_pc_cpu_flush(td_first->page_cache); } + /* clear TD SIZE to zero, hence this is the last TRB */ /* remove chain bit because this is the last TRB in the chain */ td->td_trb[td->ntrb - 1].dwTrb2 &= ~htole32(XHCI_TRB_2_TDSZ_SET(15)); td->td_trb[td->ntrb - 1].dwTrb3 &= ~htole32(XHCI_TRB_3_CHAIN_BIT); _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Fri Jul 26 11:43:20 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 3C786511 for ; Fri, 26 Jul 2013 11:43:20 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id 339742404 for ; Fri, 26 Jul 2013 11:43:18 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id 27B9D7A1F5; Fri, 26 Jul 2013 13:43:17 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id A40D58F0203; Fri, 26 Jul 2013 13:43:21 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gYjum2MPlKFs; Fri, 26 Jul 2013 13:43:20 +0200 (CEST) Received: from laptop015.hselasky.homeunix.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id 53D448F0201; Fri, 26 Jul 2013 13:43:20 +0200 (CEST) Message-ID: <51F2612F.9010703@bitfrost.no> Date: Fri, 26 Jul 2013 13:44:47 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 Subject: Re: COMPAT_32BIT libusb ABI problem References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------000209000009070500010606" Cc: "freebsd-usb@freebsd.org" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jul 2013 11:43:20 -0000 This is a multi-part message in MIME format. --------------000209000009070500010606 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Damjan, Does the attached patch fix the problem for you? --HPS --------------000209000009070500010606 Content-Type: text/x-patch; name="usb_ioctl32.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="usb_ioctl32.diff" === sys/dev/usb/quirk/usb_quirk.c ================================================================== --- sys/dev/usb/quirk/usb_quirk.c (revision 253548) +++ sys/dev/usb/quirk/usb_quirk.c (local) @@ -692,8 +692,8 @@ uint32_t y; int err; - switch (cmd) { - case USB_DEV_QUIRK_GET: + switch (USB_IOCTL_SWAP(cmd)) { + case USB_IOCTL_RANGE(USB_DEV_QUIRK_GET): pgq = (void *)data; x = pgq->index % USB_SUB_QUIRKS_MAX; y = pgq->index / USB_SUB_QUIRKS_MAX; @@ -712,7 +712,7 @@ mtx_unlock(&usb_quirk_mtx); return (0); /* success */ - case USB_QUIRK_NAME_GET: + case USB_IOCTL_RANGE(USB_QUIRK_NAME_GET): pgq = (void *)data; x = pgq->index; if (x >= USB_QUIRK_MAX) { @@ -722,7 +722,7 @@ usb_quirkstr(x), sizeof(pgq->quirkname)); return (0); /* success */ - case USB_DEV_QUIRK_ADD: + case USB_IOCTL_RANGE(USB_DEV_QUIRK_ADD): pgq = (void *)data; /* check privileges */ @@ -761,7 +761,7 @@ } return (0); /* success */ - case USB_DEV_QUIRK_REMOVE: + case USB_IOCTL_RANGE(USB_DEV_QUIRK_REMOVE): pgq = (void *)data; /* check privileges */ err = priv_check(curthread, PRIV_DRIVER); === sys/dev/usb/usb_compat_linux.c ================================================================== --- sys/dev/usb/usb_compat_linux.c (revision 253548) +++ sys/dev/usb/usb_compat_linux.c (local) @@ -48,7 +48,6 @@ #include #include -#include #include #include === sys/dev/usb/usb_dev.c ================================================================== --- sys/dev/usb/usb_dev.c (revision 253548) +++ sys/dev/usb/usb_dev.c (local) @@ -1497,30 +1497,30 @@ int err; u.data = data; - switch (cmd) { - case USB_READ_DIR: - err = usb_read_symlink(u.urd->urd_data, - u.urd->urd_startentry, u.urd->urd_maxlen); + switch (USB_IOCTL_SWAP(cmd)) { + case USB_IOCTL_RANGE(USB_READ_DIR): + err = usb_read_symlink(u.urd->urd_data, + u.urd->urd_startentry, u.urd->urd_maxlen); + break; + case USB_IOCTL_RANGE(USB_DEV_QUIRK_GET): + case USB_IOCTL_RANGE(USB_QUIRK_NAME_GET): + case USB_IOCTL_RANGE(USB_DEV_QUIRK_ADD): + case USB_IOCTL_RANGE(USB_DEV_QUIRK_REMOVE): + err = usb_quirk_ioctl_p(cmd, data, fflag, td); + break; + case USB_IOCTL_RANGE(USB_GET_TEMPLATE): + *(int *)data = usb_template; + err = 0; + break; + case USB_IOCTL_RANGE(USB_SET_TEMPLATE): + err = priv_check(curthread, PRIV_DRIVER); + if (err) break; - case USB_DEV_QUIRK_GET: - case USB_QUIRK_NAME_GET: - case USB_DEV_QUIRK_ADD: - case USB_DEV_QUIRK_REMOVE: - err = usb_quirk_ioctl_p(cmd, data, fflag, td); - break; - case USB_GET_TEMPLATE: - *(int *)data = usb_template; - err = 0; - break; - case USB_SET_TEMPLATE: - err = priv_check(curthread, PRIV_DRIVER); - if (err) - break; - usb_template = *(int *)data; - break; - default: - err = ENOTTY; - break; + usb_template = *(int *)data; + break; + default: + err = ENOTTY; + break; } return (err); } === sys/dev/usb/usb_generic.c ================================================================== --- sys/dev/usb/usb_generic.c (revision 253548) +++ sys/dev/usb/usb_generic.c (local) @@ -1424,8 +1424,8 @@ DPRINTFN(6, "cmd=0x%08lx\n", cmd); - switch (cmd) { - case USB_FS_COMPLETE: + switch (USB_IOCTL_SWAP(cmd)) { + case USB_IOCTL_RANGE(USB_FS_COMPLETE): mtx_lock(f->priv_mtx); error = ugen_fs_get_complete(f, &ep_index); mtx_unlock(f->priv_mtx); @@ -1438,7 +1438,7 @@ error = ugen_fs_copy_out(f, u.pcomp->ep_index); break; - case USB_FS_START: + case USB_IOCTL_RANGE(USB_FS_START): error = ugen_fs_copy_in(f, u.pstart->ep_index); if (error) break; @@ -1448,7 +1448,7 @@ mtx_unlock(f->priv_mtx); break; - case USB_FS_STOP: + case USB_IOCTL_RANGE(USB_FS_STOP): if (u.pstop->ep_index >= f->fs_ep_max) { error = EINVAL; break; @@ -1470,8 +1470,8 @@ mtx_unlock(f->priv_mtx); break; - case USB_FS_OPEN: - case USB_FS_OPEN_STREAM: + case USB_IOCTL_RANGE(USB_FS_OPEN): + case USB_IOCTL_RANGE(USB_FS_OPEN_STREAM): if (u.popen->ep_index >= f->fs_ep_max) { error = EINVAL; break; @@ -1523,7 +1523,7 @@ usb_config[0].frames = u.popen->max_frames; usb_config[0].bufsize = u.popen->max_bufsize; usb_config[0].usb_mode = USB_MODE_DUAL; /* both modes */ - if (cmd == USB_FS_OPEN_STREAM) + if (IOCBASECMD(cmd) == IOCBASECMD(USB_FS_OPEN_STREAM)) usb_config[0].stream_id = u.popen_stream->stream_id; if (usb_config[0].type == UE_CONTROL) { @@ -1572,7 +1572,7 @@ } break; - case USB_FS_CLOSE: + case USB_IOCTL_RANGE(USB_FS_CLOSE): if (u.pclose->ep_index >= f->fs_ep_max) { error = EINVAL; break; @@ -1584,7 +1584,7 @@ usbd_transfer_unsetup(f->fs_xfer + u.pclose->ep_index, 1); break; - case USB_FS_CLEAR_STALL_SYNC: + case USB_IOCTL_RANGE(USB_FS_CLEAR_STALL_SYNC): if (u.pstall->ep_index >= f->fs_ep_max) { error = EINVAL; break; @@ -1941,8 +1941,8 @@ f_rx = f->udev->fifo[(f->fifo_index & ~1) + USB_FIFO_RX]; f_tx = f->udev->fifo[(f->fifo_index & ~1) + USB_FIFO_TX]; - switch (cmd) { - case USB_SET_RX_SHORT_XFER: + switch (USB_IOCTL_SWAP(cmd)) { + case USB_IOCTL_RANGE(USB_SET_RX_SHORT_XFER): if (fflags & FREAD) { error = ugen_set_short_xfer(f_rx, addr); } else { @@ -1950,7 +1950,7 @@ } break; - case USB_SET_TX_FORCE_SHORT: + case USB_IOCTL_RANGE(USB_SET_TX_FORCE_SHORT): if (fflags & FWRITE) { error = ugen_set_short_xfer(f_tx, addr); } else { @@ -1958,7 +1958,7 @@ } break; - case USB_SET_RX_TIMEOUT: + case USB_IOCTL_RANGE(USB_SET_RX_TIMEOUT): if (fflags & FREAD) { error = ugen_set_timeout(f_rx, addr); } else { @@ -1966,7 +1966,7 @@ } break; - case USB_SET_TX_TIMEOUT: + case USB_IOCTL_RANGE(USB_SET_TX_TIMEOUT): if (fflags & FWRITE) { error = ugen_set_timeout(f_tx, addr); } else { @@ -1974,7 +1974,7 @@ } break; - case USB_GET_RX_FRAME_SIZE: + case USB_IOCTL_RANGE(USB_GET_RX_FRAME_SIZE): if (fflags & FREAD) { error = ugen_get_frame_size(f_rx, addr); } else { @@ -1982,7 +1982,7 @@ } break; - case USB_GET_TX_FRAME_SIZE: + case USB_IOCTL_RANGE(USB_GET_TX_FRAME_SIZE): if (fflags & FWRITE) { error = ugen_get_frame_size(f_tx, addr); } else { @@ -1990,7 +1990,7 @@ } break; - case USB_SET_RX_BUFFER_SIZE: + case USB_IOCTL_RANGE(USB_SET_RX_BUFFER_SIZE): if (fflags & FREAD) { error = ugen_set_buffer_size(f_rx, addr); } else { @@ -1998,7 +1998,7 @@ } break; - case USB_SET_TX_BUFFER_SIZE: + case USB_IOCTL_RANGE(USB_SET_TX_BUFFER_SIZE): if (fflags & FWRITE) { error = ugen_set_buffer_size(f_tx, addr); } else { @@ -2006,7 +2006,7 @@ } break; - case USB_GET_RX_BUFFER_SIZE: + case USB_IOCTL_RANGE(USB_GET_RX_BUFFER_SIZE): if (fflags & FREAD) { error = ugen_get_buffer_size(f_rx, addr); } else { @@ -2014,7 +2014,7 @@ } break; - case USB_GET_TX_BUFFER_SIZE: + case USB_IOCTL_RANGE(USB_GET_TX_BUFFER_SIZE): if (fflags & FWRITE) { error = ugen_get_buffer_size(f_tx, addr); } else { @@ -2022,7 +2022,7 @@ } break; - case USB_GET_RX_INTERFACE_DESC: + case USB_IOCTL_RANGE(USB_GET_RX_INTERFACE_DESC): if (fflags & FREAD) { error = ugen_get_iface_desc(f_rx, addr); } else { @@ -2030,7 +2030,7 @@ } break; - case USB_GET_TX_INTERFACE_DESC: + case USB_IOCTL_RANGE(USB_GET_TX_INTERFACE_DESC): if (fflags & FWRITE) { error = ugen_get_iface_desc(f_tx, addr); } else { @@ -2038,7 +2038,7 @@ } break; - case USB_GET_RX_ENDPOINT_DESC: + case USB_IOCTL_RANGE(USB_GET_RX_ENDPOINT_DESC): if (fflags & FREAD) { error = ugen_get_endpoint_desc(f_rx, addr); } else { @@ -2046,7 +2046,7 @@ } break; - case USB_GET_TX_ENDPOINT_DESC: + case USB_IOCTL_RANGE(USB_GET_TX_ENDPOINT_DESC): if (fflags & FWRITE) { error = ugen_get_endpoint_desc(f_tx, addr); } else { @@ -2054,13 +2054,13 @@ } break; - case USB_SET_RX_STALL_FLAG: + case USB_IOCTL_RANGE(USB_SET_RX_STALL_FLAG): if ((fflags & FREAD) && (*(int *)addr)) { f_rx->flag_stall = 1; } break; - case USB_SET_TX_STALL_FLAG: + case USB_IOCTL_RANGE(USB_SET_TX_STALL_FLAG): if ((fflags & FWRITE) && (*(int *)addr)) { f_tx->flag_stall = 1; } @@ -2099,12 +2099,12 @@ DPRINTFN(6, "cmd=0x%08lx\n", cmd); - switch (cmd) { - case USB_DISCOVER: + switch (USB_IOCTL_SWAP(cmd)) { + case USB_IOCTL_RANGE(USB_DISCOVER): usb_needs_explore_all(); break; - case USB_SETDEBUG: + case USB_IOCTL_RANGE(USB_SETDEBUG): if (!(fflags & FWRITE)) { error = EPERM; break; @@ -2112,11 +2112,11 @@ usb_debug = *(int *)addr; break; - case USB_GET_CONFIG: + case USB_IOCTL_RANGE(USB_GET_CONFIG): *(int *)addr = f->udev->curr_config_index; break; - case USB_SET_CONFIG: + case USB_IOCTL_RANGE(USB_SET_CONFIG): if (!(fflags & FWRITE)) { error = EPERM; break; @@ -2124,7 +2124,7 @@ error = ugen_set_config(f, *(int *)addr); break; - case USB_GET_ALTINTERFACE: + case USB_IOCTL_RANGE(USB_GET_ALTINTERFACE): iface = usbd_get_iface(f->udev, u.ai->uai_interface_index); if (iface && iface->idesc) { @@ -2134,7 +2134,7 @@ } break; - case USB_SET_ALTINTERFACE: + case USB_IOCTL_RANGE(USB_SET_ALTINTERFACE): if (!(fflags & FWRITE)) { error = EPERM; break; @@ -2143,7 +2143,7 @@ u.ai->uai_interface_index, u.ai->uai_alt_index); break; - case USB_GET_DEVICE_DESC: + case USB_IOCTL_RANGE(USB_GET_DEVICE_DESC): dtemp = usbd_get_device_descriptor(f->udev); if (!dtemp) { error = EIO; @@ -2152,7 +2152,7 @@ *u.ddesc = *dtemp; break; - case USB_GET_CONFIG_DESC: + case USB_IOCTL_RANGE(USB_GET_CONFIG_DESC): ctemp = usbd_get_config_descriptor(f->udev); if (!ctemp) { error = EIO; @@ -2161,20 +2161,20 @@ *u.cdesc = *ctemp; break; - case USB_GET_FULL_DESC: + case USB_IOCTL_RANGE(USB_GET_FULL_DESC): error = ugen_get_cdesc(f, addr); break; - case USB_GET_STRING_DESC: + case USB_IOCTL_RANGE(USB_GET_STRING_DESC): error = ugen_get_sdesc(f, addr); break; - case USB_GET_IFACE_DRIVER: + case USB_IOCTL_RANGE(USB_GET_IFACE_DRIVER): error = ugen_get_iface_driver(f, addr); break; - case USB_REQUEST: - case USB_DO_REQUEST: + case USB_IOCTL_RANGE(USB_REQUEST): + case USB_IOCTL_RANGE(USB_DO_REQUEST): if (!(fflags & FWRITE)) { error = EPERM; break; @@ -2182,12 +2182,12 @@ error = ugen_do_request(f, addr); break; - case USB_DEVICEINFO: - case USB_GET_DEVICEINFO: + case USB_IOCTL_RANGE(USB_DEVICEINFO): + case USB_IOCTL_RANGE(USB_GET_DEVICEINFO): error = usb_gen_fill_deviceinfo(f, addr); break; - case USB_DEVICESTATS: + case USB_IOCTL_RANGE(USB_DEVICESTATS): for (n = 0; n != 4; n++) { u.stat->uds_requests_fail[n] = @@ -2198,20 +2198,20 @@ } break; - case USB_DEVICEENUMERATE: + case USB_IOCTL_RANGE(USB_DEVICEENUMERATE): error = ugen_re_enumerate(f); break; - case USB_GET_PLUGTIME: + case USB_IOCTL_RANGE(USB_GET_PLUGTIME): *u.ptime = f->udev->plugtime; break; - case USB_CLAIM_INTERFACE: - case USB_RELEASE_INTERFACE: + case USB_IOCTL_RANGE(USB_CLAIM_INTERFACE): + case USB_IOCTL_RANGE(USB_RELEASE_INTERFACE): /* TODO */ break; - case USB_IFACE_DRIVER_ACTIVE: + case USB_IOCTL_RANGE(USB_IFACE_DRIVER_ACTIVE): n = *u.pint & 0xFF; @@ -2223,7 +2223,7 @@ error = ENXIO; break; - case USB_IFACE_DRIVER_DETACH: + case USB_IOCTL_RANGE(USB_IFACE_DRIVER_DETACH): error = priv_check(curthread, PRIV_DRIVER); @@ -2249,33 +2249,33 @@ usbd_set_parent_iface(f->udev, n, n); break; - case USB_SET_POWER_MODE: + case USB_IOCTL_RANGE(USB_SET_POWER_MODE): error = ugen_set_power_mode(f, *u.pint); break; - case USB_GET_POWER_MODE: + case USB_IOCTL_RANGE(USB_GET_POWER_MODE): *u.pint = ugen_get_power_mode(f); break; - case USB_GET_DEV_PORT_PATH: + case USB_IOCTL_RANGE(USB_GET_DEV_PORT_PATH): error = ugen_get_port_path(f, u.dpp); break; - case USB_GET_POWER_USAGE: + case USB_IOCTL_RANGE(USB_GET_POWER_USAGE): *u.pint = ugen_get_power_usage(f); break; - case USB_SET_PORT_ENABLE: + case USB_IOCTL_RANGE(USB_SET_PORT_ENABLE): error = ugen_do_port_feature(f, *u.pint, 1, UHF_PORT_ENABLE); break; - case USB_SET_PORT_DISABLE: + case USB_IOCTL_RANGE(USB_SET_PORT_DISABLE): error = ugen_do_port_feature(f, *u.pint, 0, UHF_PORT_ENABLE); break; - case USB_FS_INIT: + case USB_IOCTL_RANGE(USB_FS_INIT): /* verify input parameters */ if (u.pinit->pEndpoints == NULL) { error = EINVAL; @@ -2316,7 +2316,7 @@ f->fs_ep_ptr = u.pinit->pEndpoints; break; - case USB_FS_UNINIT: + case USB_IOCTL_RANGE(USB_FS_UNINIT): if (u.puninit->dummy != 0) { error = EINVAL; break; === sys/dev/usb/usb_hub.c ================================================================== --- sys/dev/usb/usb_hub.c (revision 253548) +++ sys/dev/usb/usb_hub.c (local) @@ -53,7 +53,6 @@ #include #include -#include #include #include === sys/dev/usb/usb_ioctl.h ================================================================== --- sys/dev/usb/usb_ioctl.h (revision 253548) +++ sys/dev/usb/usb_ioctl.h (local) @@ -42,7 +42,31 @@ #define USB_DEVICE_DIR "usb" #define USB_GENERIC_NAME "ugen" #define USB_TEMPLATE_SYSCTL "hw.usb.template" /* integer type */ +#define USB_IOCTL_ALIGN_MAX 8 /* bytes */ +/* Make sure we get the length field at LSB */ +#ifndef USB_IOCTL_SWAP +#define USB_IOCTL_SWAP(cmd) \ + ((uint32_t)((((uint32_t)(cmd)) << 16) | (((uint32_t)(cmd)) >> 16))) +#endif + +/* Align IOCTL structure size */ +#ifndef USB_IOCTL_ALIGN +#define USB_IOCTL_ALIGN(cmd) \ + (USB_IOCTL_SWAP(cmd) + \ + ((USB_IOCTL_ALIGN_MAX - (USB_IOCTL_SWAP(cmd) % \ + USB_IOCTL_ALIGN_MAX)) % USB_IOCTL_ALIGN_MAX)) +#endif + +/* + * Switch case for IOCTLs. Mostly useful for hiding differences when + * running 32-bit programs under 64-bit kernels: + */ +#ifndef USB_IOCTL_RANGE +#define USB_IOCTL_RANGE(cmd) \ + USB_IOCTL_SWAP(cmd) ... USB_IOCTL_ALIGN(cmd) +#endif + /* Definition of valid template sysctl values */ enum { @@ -218,7 +242,14 @@ }; struct usb_fs_open_stream { - struct usb_fs_open fs_open; + /* same as "usb_fs_open" */ + uint32_t max_bufsize; + uint32_t max_frames; + uint16_t max_packet_length; + uint8_t dev_index; + uint8_t ep_index; + uint8_t ep_no; + /* stream ID */ uint16_t stream_id; }; === sys/dev/usb/usb_request.c ================================================================== --- sys/dev/usb/usb_request.c (revision 253548) +++ sys/dev/usb/usb_request.c (local) @@ -51,7 +51,6 @@ #include #include #include -#include #include #define USB_DEBUG_VAR usb_debug --------------000209000009070500010606-- From owner-freebsd-usb@FreeBSD.ORG Fri Jul 26 21:35:00 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 24587A44 for ; Fri, 26 Jul 2013 21:35:00 +0000 (UTC) (envelope-from jwithana@hotmail.com) Received: from bay0-omc1-s25.bay0.hotmail.com (bay0-omc1-s25.bay0.hotmail.com [65.54.190.36]) by mx1.freebsd.org (Postfix) with ESMTP id 0F270219A for ; Fri, 26 Jul 2013 21:34:59 +0000 (UTC) Received: from BAY174-DS10 ([65.54.190.60]) by bay0-omc1-s25.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 26 Jul 2013 14:33:55 -0700 X-TMN: [+p8SypGYsNlp22UNf8OG7RfpQu57RzNY] X-Originating-Email: [jwithana@hotmail.com] Message-ID: From: "Janaka Withana" To: Subject: USB 3.0 HDD ILLEGAL REQUEST asc:20, 0 (Invalid command operation code) Date: Fri, 26 Jul 2013 17:33:54 -0400 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 16.4.3505.912 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3505.912 X-OriginalArrivalTime: 26 Jul 2013 21:33:55.0287 (UTC) FILETIME=[D4812E70:01CE8A47] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jul 2013 21:35:00 -0000 I am using FreeBSD 9.1 to p4 (Nas4Free 9.1.0.1.804) and get the following repeated errors using a USB 3.0 hard drive via a USB 3.0 port Jul 26 17:11:26 nas kernel: (da1:umass-sim1:1:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 Jul 26 17:11:26 nas kernel: (da1:umass-sim1:1:0:0): CAM status: SCSI Status Error Jul 26 17:11:26 nas kernel: (da1:umass-sim1:1:0:0): SCSI status: Check Condition Jul 26 17:11:26 nas kernel: (da1:umass-sim1:1:0:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid command operation code) Jul 26 17:11:26 nas kernel: (da1:umass-sim1:1:0:0): Error 22, Unretryable error Drive is zfs formatted and seems to work without losing data. This issues seems to keep popping up: http://lists.freebsd.org/pipermail/freebsd-usb/2013-January/011850.html http://lists.freebsd.org/pipermail/freebsd-usb/2012-April/011179.html Seems the last author proposed a fixL From owner-freebsd-usb@FreeBSD.ORG Fri Jul 26 21:37:41 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 4E11AABD for ; Fri, 26 Jul 2013 21:37:41 +0000 (UTC) (envelope-from jwithana@hotmail.com) Received: from bay0-omc1-s17.bay0.hotmail.com (bay0-omc1-s17.bay0.hotmail.com [65.54.190.28]) by mx1.freebsd.org (Postfix) with ESMTP id 395DF21BB for ; Fri, 26 Jul 2013 21:37:40 +0000 (UTC) Received: from BAY174-DS18 ([65.54.190.60]) by bay0-omc1-s17.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 26 Jul 2013 14:36:35 -0700 X-TMN: [JDloo5T7yKy/LID6pEs3/OxO/Ep0YY8e] X-Originating-Email: [jwithana@hotmail.com] Message-ID: From: "Janaka Withana" To: Subject: Re: USB 3.0 HDD ILLEGAL REQUEST asc:20, 0 (Invalid command operation code) Date: Fri, 26 Jul 2013 17:36:35 -0400 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 16.4.3505.912 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3505.912 X-OriginalArrivalTime: 26 Jul 2013 21:36:35.0277 (UTC) FILETIME=[33DDB7D0:01CE8A48] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jul 2013 21:37:41 -0000 Sorry, Seems one of the author suggested a fix. > Line to add to usb_quirk.c: > USB_QUIRK_VP(0x13fe, 0x2240, 0x0000, 0xffff, UQ_MSC_NO_SYNC_CACHE), Any other workarounds you could suggest that would not require me to recompile? I am using nas4free embedded. -----Original Message----- From: Janaka Withana Sent: Friday, July 26, 2013 5:33 PM To: freebsd-usb@freebsd.org Subject: USB 3.0 HDD ILLEGAL REQUEST asc:20,0 (Invalid command operation code) I am using FreeBSD 9.1 to p4 (Nas4Free 9.1.0.1.804) and get the following repeated errors using a USB 3.0 hard drive via a USB 3.0 port Jul 26 17:11:26 nas kernel: (da1:umass-sim1:1:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 Jul 26 17:11:26 nas kernel: (da1:umass-sim1:1:0:0): CAM status: SCSI Status Error Jul 26 17:11:26 nas kernel: (da1:umass-sim1:1:0:0): SCSI status: Check Condition Jul 26 17:11:26 nas kernel: (da1:umass-sim1:1:0:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid command operation code) Jul 26 17:11:26 nas kernel: (da1:umass-sim1:1:0:0): Error 22, Unretryable error Drive is zfs formatted and seems to work without losing data. This issues seems to keep popping up: http://lists.freebsd.org/pipermail/freebsd-usb/2013-January/011850.html http://lists.freebsd.org/pipermail/freebsd-usb/2012-April/011179.html Seems the last author proposed a fixL From owner-freebsd-usb@FreeBSD.ORG Sat Jul 27 05:37:56 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 581BD461 for ; Sat, 27 Jul 2013 05:37:56 +0000 (UTC) (envelope-from hans.petter.selasky@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id BF58F2878 for ; Sat, 27 Jul 2013 05:37:55 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id 6516B7A225; Sat, 27 Jul 2013 07:37:48 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 03AA88F03AA; Sat, 27 Jul 2013 07:37:53 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id S5N7omfSGGWY; Sat, 27 Jul 2013 07:37:51 +0200 (CEST) Received: from mail.lockless.no (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id D71E48F03A9; Sat, 27 Jul 2013 07:37:51 +0200 (CEST) Subject: RE: USB 3.0 HDD ILLEGAL REQUEST asc:20, 0 (Invalid command operation code) From: =?utf-8?Q?Hans_Petter_Selasky?= To: =?utf-8?Q?Janaka_Withana?= , =?utf-8?Q?freebsd-usb=40freebsd=2Eorg?= Date: Sat, 27 Jul 2013 07:37:51 +0200 Mime-Version: 1.0 In-Reply-To: References: X-Priority: 3 (Normal) X-Mailer: Zarafa 7.1.4-41394 Message-Id: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jul 2013 05:37:56 -0000 usbconfig -d X.Y add_quirk UQ_MSC_NO_SYNC_CACHE=0D=0A=0D=0A--HPS=0D=0A=0D= =0A=20=0D=0A=20=0D=0A-----Original message-----=0D=0A> From:Janaka Withan= a >=0D=0A> Sent: Frid= ay 26th July 2013 23:37=0D=0A> To: freebsd-usb@freebsd.org =20=0D=0A> Subject: Re: USB 3.0 HDD ILLEGAL REQUEST asc= :20, 0 (Invalid command operation code)=0D=0A>=20=0D=0A> Sorry,=0D=0A>=20= =0D=0A> Seems one of the author suggested a fix.=0D=0A>=20=0D=0A> > Line = to add to usb_quirk.c:=0D=0A> > USB_QUIRK_VP(0x13fe, 0x2240, 0x0000, 0xff= ff, UQ_MSC_NO_SYNC_CACHE),=0D=0A>=20=0D=0A> Any other workarounds you cou= ld suggest that would not require me to=20=0D=0A> recompile=3F I am using= nas4free embedded.=0D=0A>=20=0D=0A> -----Original Message-----=20=0D=0A>= From: Janaka Withana=0D=0A> Sent: Friday, July 26, 2013 5:33 PM=0D=0A> T= o: freebsd-usb@freebsd.org =20=0D=0A> Sub= ject: USB 3.0 HDD ILLEGAL REQUEST asc:20,0 (Invalid command operation=20=0D= =0A> code)=0D=0A>=20=0D=0A> I am using FreeBSD 9.1 to p4 (Nas4Free 9.1.0.= 1.804) and get the following=0D=0A> repeated errors using a USB 3.0 hard = drive via a USB 3.0 port=0D=0A>=20=0D=0A> Jul 26 17:11:26 nas ker= nel: (da1:umass-sim1:1:0:0): SYNCHRONIZE=0D=0A> CACHE(10). CDB: 35 0 0 0 = 0 0 0 0 0 0=0D=0A> Jul 26 17:11:26 nas kernel: (da1:umass-sim1:1:= 0:0): CAM status: SCSI=0D=0A> Status Error=0D=0A> Jul 26 17:11:26 nas= kernel: (da1:umass-sim1:1:0:0): SCSI status:=0D=0A> Check Condition=0D= =0A> Jul 26 17:11:26 nas kernel: (da1:umass-sim1:1:0:0): SCSI sen= se:=0D=0A> ILLEGAL REQUEST asc:20,0 (Invalid command operation code)=0D=0A= > Jul 26 17:11:26 nas kernel: (da1:umass-sim1:1:0:0): Error 22,=0D= =0A> Unretryable error=0D=0A>=20=0D=0A> Drive is zfs formatted and seems = to work without losing data. This issues=0D=0A> seems to keep popping up:= =0D=0A> http://lists.freebsd.org/pipermail/freebsd-usb/2013-January/01185= 0.html =20=0D=0A> http://lists.freebsd.org/pipermail/freebsd-usb/2012-Apr= il/011179.html =20=0D=0A>=20=0D=0A> Seems the last author proposed a fixL=20= =0D=0A>=20=0D=0A> _______________________________________________=0D=0A> = freebsd-usb@freebsd.org mailing list=0D= =0A> http://lists.freebsd.org/mailman/listinfo/freebsd-usb =20=0D=0A> To unsubscribe, send = any mail to "freebsd-usb-unsubscribe@freebsd.org "=0D=0A>=20=0D=0A=0D=0A From owner-freebsd-usb@FreeBSD.ORG Sat Jul 27 23:19:31 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id F0982628 for ; Sat, 27 Jul 2013 23:19:31 +0000 (UTC) (envelope-from jwithana@hotmail.com) Received: from bay0-omc4-s13.bay0.hotmail.com (bay0-omc4-s13.bay0.hotmail.com [65.54.190.215]) by mx1.freebsd.org (Postfix) with ESMTP id D51BE28B8 for ; Sat, 27 Jul 2013 23:19:31 +0000 (UTC) Received: from BAY174-DS17 ([65.54.190.199]) by bay0-omc4-s13.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sat, 27 Jul 2013 16:18:26 -0700 X-TMN: [L3XCYIs9uUI7RMKuBj928KfJf9ytQWZR] X-Originating-Email: [jwithana@hotmail.com] Message-ID: From: "Janaka Withana" To: "Hans Petter Selasky" , References: In-Reply-To: Subject: Re: USB 3.0 HDD ILLEGAL REQUEST asc:20, 0 (Invalid command operation code) Date: Sat, 27 Jul 2013 19:18:25 -0400 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 16.4.3505.912 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3505.912 X-OriginalArrivalTime: 27 Jul 2013 23:18:26.0073 (UTC) FILETIME=[9898F090:01CE8B1F] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jul 2013 23:19:32 -0000 RE: USB 3.0 HDD ILLEGAL REQUEST asc:20, 0 (Invalid command operation = code)thanks! any idea the best way to determine the unit & addr of the device? sorry for the follow-up newbie question, but the usbconfig man page is a = bit sparse. From: Hans Petter Selasky=20 Sent: Saturday, July 27, 2013 1:37 AM To: Janaka Withana ; freebsd-usb@freebsd.org=20 Subject: RE: USB 3.0 HDD ILLEGAL REQUEST asc:20, 0 (Invalid command = operation code) usbconfig -d X.Y add_quirk UQ_MSC_NO_SYNC_CACHE--HPS -----Original = message-----> From:Janaka Withana > Sent: Friday = 26th July 2013 23:37> To: freebsd-usb@freebsd.org> Subject: Re: USB 3.0 = HDD ILLEGAL REQUEST asc:20, 0 (Invalid command operation code)> > = Sorry,> > Seems one of the author suggested a fix.> > > Line to add to = usb_quirk.c:> > USB_QUIRK_VP(0x13fe, 0x2240, 0x0000, 0xffff, = UQ_MSC_NO_SYNC_CACHE),> > Any other workarounds you could suggest that = would not require me to > recompile? I am using nas4free embedded.> > = -----Original Message----- > From: Janaka Withana> Sent: Friday, July = 26, 2013 5:33 PM> To: freebsd-usb@freebsd.org> Subject: USB 3.0 HDD = ILLEGAL REQUEST asc:20,0 (Invalid command operation > code)> > I am = using FreeBSD 9.1 to p4 (Nas4Free 9.1.0.1.804) and get the following> = repeated errors using a USB 3.0 hard drive via a USB 3.0 port> > Jul 26 = 17:11:26 nas kernel: (da1:umass-sim1:1:0:0): SYNCHRONIZE> = CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0> Jul 26 17:11:26 nas = kernel: (da1:umass-sim1:1:0:0): CAM status: SCSI> Status Error> Jul 26 = 17:11:26 nas kernel: (da1:umass-sim1:1:0:0): SCSI status:> Check = Condition> Jul 26 17:11:26 nas kernel: (da1:umass-sim1:1:0:0): = SCSI sense:> ILLEGAL REQUEST asc:20,0 (Invalid command operation code)> = Jul 26 17:11:26 nas kernel: (da1:umass-sim1:1:0:0): Error 22,> = Unretryable error> > Drive is zfs formatted and seems to work without = losing data. This issues> seems to keep popping up:> = http://lists.freebsd.org/pipermail/freebsd-usb/2013-January/011850.html> = http://lists.freebsd.org/pipermail/freebsd-usb/2012-April/011179.html> > = Seems the last author proposed a fixL > > = _______________________________________________> freebsd-usb@freebsd.org = mailing list> http://lists.freebsd.org/mailman/listinfo/freebsd-usb> To = unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org"> From owner-freebsd-usb@FreeBSD.ORG Sat Jul 27 23:56:08 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E97A294D for ; Sat, 27 Jul 2013 23:56:07 +0000 (UTC) (envelope-from jwithana@hotmail.com) Received: from bay0-omc4-s2.bay0.hotmail.com (bay0-omc4-s2.bay0.hotmail.com [65.54.190.204]) by mx1.freebsd.org (Postfix) with ESMTP id D0813298F for ; Sat, 27 Jul 2013 23:56:07 +0000 (UTC) Received: from BAY174-DS8 ([65.54.190.199]) by bay0-omc4-s2.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sat, 27 Jul 2013 16:55:02 -0700 X-TMN: [Bk/07ELj3h2//J3rsSw2lBn+Xf44TpWg] X-Originating-Email: [jwithana@hotmail.com] Message-ID: From: "Janaka Withana" To: "Hans Petter Selasky" , References: In-Reply-To: Subject: Re: USB 3.0 HDD ILLEGAL REQUEST asc:20, 0 (Invalid command operation code) Date: Sat, 27 Jul 2013 19:55:02 -0400 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 16.4.3505.912 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3505.912 X-OriginalArrivalTime: 27 Jul 2013 23:55:02.0542 (UTC) FILETIME=[B5CB82E0:01CE8B24] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jul 2013 23:56:08 -0000 guessed it was 1.2 > usbconfig -d 1.2 add_quirk UQ_MSC_NO_SYNC_CACHE did not fix it still get errors: > kernel: (da1:umass-sim1:1:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 > 0 0 0 > kernel: (da1:umass-sim1:1:0:0): CAM status: SCSI Status Error > kernel: (da1:umass-sim1:1:0:0): SCSI status: Check Condition > kernel: (da1:umass-sim1:1:0:0): SCSI sense: ILLEGAL REQUEST asc:20,0 > (Invalid command operation code) > kernel: (da1:umass-sim1:1:0:0): Error 22, Unretryable error -----Original Message----- From: Janaka Withana Sent: Saturday, July 27, 2013 7:18 PM To: Hans Petter Selasky ; freebsd-usb@freebsd.org Subject: Re: USB 3.0 HDD ILLEGAL REQUEST asc:20, 0 (Invalid command operation code) RE: USB 3.0 HDD ILLEGAL REQUEST asc:20, 0 (Invalid command operation code)thanks! any idea the best way to determine the unit & addr of the device? sorry for the follow-up newbie question, but the usbconfig man page is a bit sparse. From: Hans Petter Selasky Sent: Saturday, July 27, 2013 1:37 AM To: Janaka Withana ; freebsd-usb@freebsd.org Subject: RE: USB 3.0 HDD ILLEGAL REQUEST asc:20, 0 (Invalid command operation code) usbconfig -d X.Y add_quirk UQ_MSC_NO_SYNC_CACHE--HPS -----Original message-----> From:Janaka Withana > Sent: Friday 26th July 2013 23:37> To: freebsd-usb@freebsd.org> Subject: Re: USB 3.0 HDD ILLEGAL REQUEST asc:20, 0 (Invalid command operation code)> > Sorry,> > Seems one of the author suggested a fix.> > > Line to add to usb_quirk.c:> > USB_QUIRK_VP(0x13fe, 0x2240, 0x0000, 0xffff, UQ_MSC_NO_SYNC_CACHE),> > Any other workarounds you could suggest that would not require me to > recompile? I am using nas4free embedded.> > -----Original Message----- > From: Janaka Withana> Sent: Friday, July 26, 2013 5:33 PM> To: freebsd-usb@freebsd.org> Subject: USB 3.0 HDD ILLEGAL REQUEST asc:20,0 (Invalid command operation > code)> > I am using FreeBSD 9.1 to p4 (Nas4Free 9.1.0.1.804) and get the following> repeated errors using a USB 3.0 hard drive via a USB 3.0 port> > Jul 26 17:11:26 nas kernel: (da1:umass-sim1:1:0:0): SYNCHRONIZE> CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0> Jul 26 17:11:26 nas kernel: (da1:umass-sim1:1:0:0): CAM status: SCSI> Status Error> Jul 26 17:11:26 nas kernel: (da1:umass-sim1:1:0:0): SCSI status:> Check Condition> Jul 26 17:11:26 nas kernel: (da1:umass-sim1:1:0:0): SCSI sense:> ILLEGAL REQUEST asc:20,0 (Invalid command operation code)> Jul 26 17:11:26 nas kernel: (da1:umass-sim1:1:0:0): Error 22,> Unretryable error> > Drive is zfs formatted and seems to work without losing data. This issues> seems to keep popping up:> http://lists.freebsd.org/pipermail/freebsd-usb/2013-January/011850.html> http://lists.freebsd.org/pipermail/freebsd-usb/2012-April/011179.html> > Seems the last author proposed a fixL > > _______________________________________________> freebsd-usb@freebsd.org mailing list> http://lists.freebsd.org/mailman/listinfo/freebsd-usb> To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org"> _______________________________________________ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org"