From owner-freebsd-usb@FreeBSD.ORG Sun Jan 4 12:19:14 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CF15247B for ; Sun, 4 Jan 2015 12:19:14 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B65C53E9B for ; Sun, 4 Jan 2015 12:19:14 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t04CJEtq025980 for ; Sun, 4 Jan 2015 12:19:14 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 196471] segmentation fault in libusb usage Date: Sun, 04 Jan 2015 12:19:14 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markus.heinz@uni-dortmund.de X-Bugzilla-Status: Closed X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jan 2015 12:19:14 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196471 Markus Heinz changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |Not A Bug Status|In Progress |Closed --- Comment #2 from Markus Heinz --- Hi. Thank you for the good advice. Using libusb_ref_device() solves my problem. Best regards Markus Heinz -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Sun Jan 4 12:20:55 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 95B255E9 for ; Sun, 4 Jan 2015 12:20:55 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7D01F3F5D for ; Sun, 4 Jan 2015 12:20:55 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t04CKtlR028545 for ; Sun, 4 Jan 2015 12:20:55 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 196471] segmentation fault in libusb usage Date: Sun, 04 Jan 2015 12:20:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jan 2015 12:20:55 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196471 --- Comment #3 from Hans Petter Selasky --- You're welcome! Feel free to submit more bug reports if you find any further issues. --HPS -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Mon Jan 5 01:04:37 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B5154980 for ; Mon, 5 Jan 2015 01:04:37 +0000 (UTC) Received: from smtp.mei.co.jp (smtp.mei.co.jp [133.183.100.20]) by mx1.freebsd.org (Postfix) with ESMTP id 5B8EC33B8 for ; Mon, 5 Jan 2015 01:04:36 +0000 (UTC) Received: from mail-gw.jp.panasonic.com ([157.8.1.157]) by smtp.mei.co.jp (8.12.11.20060614/3.7W/kc-maile13) with ESMTP id t0514Tb8027352; Mon, 5 Jan 2015 10:04:29 +0900 (JST) Received: from epochmail.jp.panasonic.com ([157.8.1.130]) by mail.jp.panasonic.com (8.11.6p2/3.7W/kc-maili12) with ESMTP id t0514To32576; Mon, 5 Jan 2015 10:04:29 +0900 Received: by epochmail.jp.panasonic.com (8.12.11.20060308/3.7W/lomi12) id t0514TQH027599; Mon, 5 Jan 2015 10:04:29 +0900 Received: from localhost by lomi12.jp.panasonic.com (8.12.11.20060308/3.7W) with ESMTP id t0514R15027510; Mon, 5 Jan 2015 10:04:27 +0900 Date: Mon, 05 Jan 2015 10:04:26 +0900 (JST) Message-Id: <20150105.100426.255854779123441890.okuno.kohji@jp.panasonic.com> To: hps@selasky.org Subject: Re: About XHCI_TD_PAGE_SIZE. From: Kohji Okuno In-Reply-To: <54A26ECE.6040603@selasky.org> References: <5497E016.7020809@selasky.org> <20141222.183157.253796126986510571.okuno.kohji@jp.panasonic.com> <54A26ECE.6040603@selasky.org> Organization: Panasonic Corporation X-Mailer: Mew version 6.6 on Emacs 24.4 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jan 2015 01:04:37 -0000 From: Hans Petter Selasky Subject: Re: About XHCI_TD_PAGE_SIZE. Date: Tue, 30 Dec 2014 10:22:22 +0100 > Hi Kohji! > > Here you go: > > https://svnweb.freebsd.org/changeset/base/276407 > > Please verify! > > --HPS > Hi HPS, I verified. Thank you for your work! Regards, Kohji Okuno From owner-freebsd-usb@FreeBSD.ORG Wed Jan 7 00:07:47 2015 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 777703FD for ; Wed, 7 Jan 2015 00:07:47 +0000 (UTC) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 346C9646E5 for ; Wed, 7 Jan 2015 00:07:46 +0000 (UTC) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 3AE2D28432 for ; Wed, 7 Jan 2015 01:00:41 +0100 (CET) Received: from illbsd.quip.test (ip-89-177-50-74.net.upcbroadband.cz [89.177.50.74]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 7B73228426 for ; Wed, 7 Jan 2015 01:00:40 +0100 (CET) Message-ID: <54AC7728.1020306@quip.cz> Date: Wed, 07 Jan 2015 01:00:40 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:33.0) Gecko/20100101 Firefox/33.0 SeaMonkey/2.30 MIME-Version: 1.0 To: freebsd-usb@FreeBSD.org Subject: Action Cam SJ4000 (SJCAM) unrecognized as mass storage Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2015 00:07:47 -0000 I have action camera SJ4000 based on Novatek NTK96650+AR0330 solution. It has a USB cable and can be connected as USB mass storage, but FreeBSD 10.1 does not properly recognize it. ugen1.4: at usbus1 umass0: on usbus1 umass0: SCSI over Bulk-Only; quirks = 0x4100 umass0:2:0:-1: Attached to scbus2 (probe0:umass-sim0:0:0:0): REPORT LUNS. CDB: a0 00 00 00 00 00 00 00 00 10 00 00 (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI status: Check Condition (probe0:umass-sim0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid command operation code) (probe0:umass-sim0:0:0:0): Error 22, Unretryable error (da0:umass-sim0:0:0:0): unsupportable block size 0 Are there any quirks that I can try to attach this cam as mass storage? # usbconfig -d 1.4 dump_device_desc ugen1.4: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x0603 idProduct = 0x8611 bcdDevice = 0x0100 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0003 <966110000000100> bNumConfigurations = 0x0001 What more details should I provide? Miroslav Lachman From owner-freebsd-usb@FreeBSD.ORG Wed Jan 7 05:35:40 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DE10D932 for ; Wed, 7 Jan 2015 05:35:40 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C56281B8F for ; Wed, 7 Jan 2015 05:35:40 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t075ZeQt019344 for ; Wed, 7 Jan 2015 05:35:40 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 185747] [cam] [patch] fix support for USB key "Kingston DT 101 G2" Date: Wed, 07 Jan 2015 05:35:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: joshruehlig@gmail.com X-Bugzilla-Status: In Progress X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2015 05:35:41 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=185747 joshruehlig@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |joshruehlig@gmail.com --- Comment #6 from joshruehlig@gmail.com --- I can confirm that "usbconfig -u X -a Y add_quirk UQ_MSC_NO_PREVENT_ALLOW" allows me to access one of my 8GB Kingston DT 101 G2's that wasn't working on FreeBSD 10.1 or 9.3 What's strange is I have another 8GB Kingston DT 101 G2 and it works with needing any intervention. -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Wed Jan 7 07:47:07 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A65D3A5C for ; Wed, 7 Jan 2015 07:47:07 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8DB1C1F69 for ; Wed, 7 Jan 2015 07:47:07 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t077l7bF017824 for ; Wed, 7 Jan 2015 07:47:07 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 185747] [cam] [patch] fix support for USB key "Kingston DT 101 G2" Date: Wed, 07 Jan 2015 07:47:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2015 07:47:07 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=185747 --- Comment #7 from Hans Petter Selasky --- Hi, Can you dump the USB descriptors from these two devices? usbconfig -d X.Y dump_device_desc dump_curr_config_desc Maybe one of them is another revision, or is not genuine. --HPS -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Wed Jan 7 08:04:04 2015 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 13EA4C03 for ; Wed, 7 Jan 2015 08:04:04 +0000 (UTC) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C674D6613F for ; Wed, 7 Jan 2015 08:04:03 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id EAD3D1FE022; Wed, 7 Jan 2015 09:04:01 +0100 (CET) Message-ID: <54ACE8A1.6060307@selasky.org> Date: Wed, 07 Jan 2015 09:04:49 +0100 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Miroslav Lachman <000.fbsd@quip.cz>, freebsd-usb@FreeBSD.org Subject: Re: Action Cam SJ4000 (SJCAM) unrecognized as mass storage References: <54AC7728.1020306@quip.cz> In-Reply-To: <54AC7728.1020306@quip.cz> Content-Type: multipart/mixed; boundary="------------030305080407080404050508" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2015 08:04:04 -0000 This is a multi-part message in MIME format. --------------030305080407080404050508 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 01/07/15 01:00, Miroslav Lachman wrote: > I have action camera SJ4000 based on Novatek NTK96650+AR0330 solution. > It has a USB cable and can be connected as USB mass storage, but FreeBSD > 10.1 does not properly recognize it. > > ugen1.4: at usbus1 > umass0: on usbus1 > umass0: SCSI over Bulk-Only; quirks = 0x4100 > umass0:2:0:-1: Attached to scbus2 > (probe0:umass-sim0:0:0:0): REPORT LUNS. CDB: a0 00 00 00 00 00 00 00 00 > 10 00 00 > (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error > (probe0:umass-sim0:0:0:0): SCSI status: Check Condition > (probe0:umass-sim0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid > command operation code) > (probe0:umass-sim0:0:0:0): Error 22, Unretryable error > (da0:umass-sim0:0:0:0): unsupportable block size 0 > > Are there any quirks that I can try to attach this cam as mass storage? > > # usbconfig -d 1.4 dump_device_desc > ugen1.4: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) > pwr=ON (500mA) > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0200 > bDeviceClass = 0x0000 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0603 > idProduct = 0x8611 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0003 <966110000000100> > bNumConfigurations = 0x0001 > > What more details should I provide? > > Miroslav Lachman Hi, Can you build a kernel with the attached patch? cat scsi_da.c.diff | patch -d /usr/src/sys Does it help? --HPS --------------030305080407080404050508 Content-Type: text/x-patch; name="scsi_da.c.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="scsi_da.c.diff" Index: cam/scsi/scsi_da.c =================================================================== --- cam/scsi/scsi_da.c (revision 276747) +++ cam/scsi/scsi_da.c (working copy) @@ -3094,8 +3094,10 @@ if (block_size == 0 && maxsector == 0) { block_size = 512; maxsector = -1; + } else if (block_size == 0) { + block_size = 512; } - if (block_size >= MAXPHYS || block_size == 0) { + if (block_size >= MAXPHYS) { xpt_print(periph->path, "unsupportable block size %ju\n", (uintmax_t) block_size); --------------030305080407080404050508-- From owner-freebsd-usb@FreeBSD.ORG Wed Jan 7 13:53:27 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 23085DE2 for ; Wed, 7 Jan 2015 13:53:27 +0000 (UTC) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D2AC064525 for ; Wed, 7 Jan 2015 13:53:26 +0000 (UTC) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 7EA8128430; Wed, 7 Jan 2015 14:53:22 +0100 (CET) Received: from illbsd.quip.test (ip-89-177-50-74.net.upcbroadband.cz [89.177.50.74]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 95E0D28427; Wed, 7 Jan 2015 14:53:21 +0100 (CET) Message-ID: <54AD3A51.1030708@quip.cz> Date: Wed, 07 Jan 2015 14:53:21 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:33.0) Gecko/20100101 Firefox/33.0 SeaMonkey/2.30 MIME-Version: 1.0 To: Hans Petter Selasky , freebsd-usb@FreeBSD.org Subject: Re: Action Cam SJ4000 (SJCAM) unrecognized as mass storage References: <54AC7728.1020306@quip.cz> <54ACE8A1.6060307@selasky.org> In-Reply-To: <54ACE8A1.6060307@selasky.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2015 13:53:27 -0000 Hans Petter Selasky wrote on 01/07/2015 09:04: > On 01/07/15 01:00, Miroslav Lachman wrote: >> I have action camera SJ4000 based on Novatek NTK96650+AR0330 solution. >> It has a USB cable and can be connected as USB mass storage, but FreeBSD >> 10.1 does not properly recognize it. >> >> ugen1.4: at usbus1 >> umass0: on usbus1 [...] > Hi, > > Can you build a kernel with the attached patch? > > cat scsi_da.c.diff | patch -d /usr/src/sys > > Does it help? Thank you, I will try it later today. I blindly tested usbconfig -d 1.4 add_quirk UQ_MSC_NO_INQUIRY described in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195372 and it accidentaly work. (so for now, I have a workaround) Miroslav Lachman From owner-freebsd-usb@FreeBSD.ORG Wed Jan 7 15:25:58 2015 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id ABFCFF99 for ; Wed, 7 Jan 2015 15:25:58 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9309C12FD for ; Wed, 7 Jan 2015 15:25:58 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t07FPwWI009672 for ; Wed, 7 Jan 2015 15:25:58 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 185747] [cam] [patch] fix support for USB key "Kingston DT 101 G2" Date: Wed, 07 Jan 2015 15:25:58 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: joshruehlig@gmail.com X-Bugzilla-Status: In Progress X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2015 15:25:58 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=185747 --- Comment #8 from joshruehlig@gmail.com --- Created attachment 151462 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=151462&action=edit output from USB that works with FreeBSD9.3 -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Wed Jan 7 15:27:39 2015 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1D9B47A for ; Wed, 7 Jan 2015 15:27:39 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 04DCE1344 for ; Wed, 7 Jan 2015 15:27:39 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t07FRcoW010405 for ; Wed, 7 Jan 2015 15:27:38 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 185747] [cam] [patch] fix support for USB key "Kingston DT 101 G2" Date: Wed, 07 Jan 2015 15:27:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: joshruehlig@gmail.com X-Bugzilla-Status: In Progress X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2015 15:27:39 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=185747 --- Comment #9 from joshruehlig@gmail.com --- Created attachment 151464 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=151464&action=edit output from USB that doesn't work with FreeBSD9.3 I bought them both from Staples retail stores, at different times. -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Wed Jan 7 19:32:25 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BBDB5733 for ; Wed, 7 Jan 2015 19:32:25 +0000 (UTC) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 77213108C for ; Wed, 7 Jan 2015 19:32:25 +0000 (UTC) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 3EF8628434; Wed, 7 Jan 2015 20:32:22 +0100 (CET) Received: from illbsd.quip.test (ip-89-177-50-74.net.upcbroadband.cz [89.177.50.74]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 4FA8828430; Wed, 7 Jan 2015 20:32:21 +0100 (CET) Message-ID: <54AD89C4.5000505@quip.cz> Date: Wed, 07 Jan 2015 20:32:20 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:33.0) Gecko/20100101 Firefox/33.0 SeaMonkey/2.30 MIME-Version: 1.0 To: Hans Petter Selasky , freebsd-usb@FreeBSD.org Subject: Re: Action Cam SJ4000 (SJCAM) unrecognized as mass storage References: <54AC7728.1020306@quip.cz> <54ACE8A1.6060307@selasky.org> In-Reply-To: <54ACE8A1.6060307@selasky.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2015 19:32:25 -0000 Hans Petter Selasky wrote on 01/07/2015 09:04: > On 01/07/15 01:00, Miroslav Lachman wrote: >> I have action camera SJ4000 based on Novatek NTK96650+AR0330 solution. >> It has a USB cable and can be connected as USB mass storage, but FreeBSD >> 10.1 does not properly recognize it. >> >> ugen1.4: at usbus1 >> umass0: on usbus1 [...] > Hi, > > Can you build a kernel with the attached patch? > > cat scsi_da.c.diff | patch -d /usr/src/sys > > Does it help? Confirmed, it helps. The device is now recognized as da0: Removable Direct Access SCSI-5 device Thank you very much for your quick help! ugen1.4: at usbus1 umass0: on usbus1 umass0: SCSI over Bulk-Only; quirks = 0x4100 umass0:2:0:-1: Attached to scbus2 (probe0:umass-sim0:0:0:0): REPORT LUNS. CDB: a0 00 00 00 00 00 00 00 00 10 00 00 (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI status: Check Condition (probe0:umass-sim0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid command operation code) (probe0:umass-sim0:0:0:0): Error 22, Unretryable error da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 da0: Removable Direct Access SCSI-5 device da0: Serial Number 966110000000100 da0: 40.000MB/s transfers da0: 29984MB (61407232 512 byte sectors: 255H 63S/T 3822C) da0: quirks=0x2 > uname -srmi FreeBSD 10.1-RELEASE-p13 amd64 GENERIC (PC-BSD 10.1) Miroslav Lachman From owner-freebsd-usb@FreeBSD.ORG Thu Jan 8 15:11:37 2015 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 85FA75A2 for ; Thu, 8 Jan 2015 15:11:37 +0000 (UTC) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4530ECE5 for ; Thu, 8 Jan 2015 15:11:36 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 8F37F1FE022; Thu, 8 Jan 2015 16:11:34 +0100 (CET) Message-ID: <54AE9E55.60507@selasky.org> Date: Thu, 08 Jan 2015 16:12:21 +0100 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Miroslav Lachman <000.fbsd@quip.cz>, freebsd-usb@FreeBSD.org Subject: Re: Action Cam SJ4000 (SJCAM) unrecognized as mass storage References: <54AC7728.1020306@quip.cz> <54ACE8A1.6060307@selasky.org> <54AD89C4.5000505@quip.cz> In-Reply-To: <54AD89C4.5000505@quip.cz> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jan 2015 15:11:37 -0000 Hi, A fix will be in 10-stable in a weeks time: https://svnweb.freebsd.org/changeset/base/276825 Thank you! --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Jan 8 22:34:54 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4CF397E9 for ; Thu, 8 Jan 2015 22:34:54 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 347972B9 for ; Thu, 8 Jan 2015 22:34:54 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t08MYsAr053695 for ; Thu, 8 Jan 2015 22:34:54 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 196624] [patch] wsp.c toggle for one finger tap when integrated button is detected. Date: Thu, 08 Jan 2015 22:34:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dor.bsd@fastmail.fm X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jan 2015 22:34:54 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196624 Bug ID: 196624 Summary: [patch] wsp.c toggle for one finger tap when integrated button is detected. Product: Base System Version: 10.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: usb Assignee: freebsd-usb@FreeBSD.org Reporter: dor.bsd@fastmail.fm Created attachment 151508 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=151508&action=edit Add one_finger_tap setting to wsp.c This patch adds hw.usb.wsp.one_finger_tap which allows toggling left clicking by tapping on the trackpad with a single finger. Setting it to 0 disables, setting it to >= 1 enables. I have not updated the wsp(4) man page yet, but will be doing so shortly. -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Fri Jan 9 06:46:21 2015 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A1DB8698 for ; Fri, 9 Jan 2015 06:46:21 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 89A679A6 for ; Fri, 9 Jan 2015 06:46:21 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t096kLJB060315 for ; Fri, 9 Jan 2015 06:46:21 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 196624] [patch] wsp.c toggle for one finger tap when integrated button is detected. Date: Fri, 09 Jan 2015 06:46:21 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jan 2015 06:46:21 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196624 Hans Petter Selasky changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |In Progress CC| |hselasky@FreeBSD.org --- Comment #1 from Hans Petter Selasky --- Patch looks good. Will commit it once you have updated the manual page too. Thanks! --HPS -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Fri Jan 9 06:47:42 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4AFE46E5 for ; Fri, 9 Jan 2015 06:47:42 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 32FD99B6 for ; Fri, 9 Jan 2015 06:47:42 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t096lg3N060865 for ; Fri, 9 Jan 2015 06:47:42 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 196624] [patch] wsp.c toggle for one finger tap when integrated button is detected. Date: Fri, 09 Jan 2015 06:47:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jan 2015 06:47:42 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196624 --- Comment #2 from Hans Petter Selasky --- Is there a reason for not leaving the default: + .one_finger_tap = 0, Enabled? Left clicking this way is quite useful. --HPS -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Fri Jan 9 08:32:10 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C1438414 for ; Fri, 9 Jan 2015 08:32:10 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A968B32E for ; Fri, 9 Jan 2015 08:32:10 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t098WAFM092511 for ; Fri, 9 Jan 2015 08:32:10 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 196624] [patch] wsp.c toggle for one finger tap when integrated button is detected. Date: Fri, 09 Jan 2015 08:32:10 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dor.bsd@fastmail.fm X-Bugzilla-Status: In Progress X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jan 2015 08:32:10 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196624 --- Comment #3 from David O'Rourke --- I can change the default to enabled if you think that would be preferred, I wasn't sure how others would feel about the default functionality of the trackpad suddenly changing. I'll make that change and submit both the wsp.c patch and the man page patch later today. -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Fri Jan 9 10:25:09 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A1756619 for ; Fri, 9 Jan 2015 10:25:09 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 87B0BFA1 for ; Fri, 9 Jan 2015 10:25:09 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t09AP9CV046704 for ; Fri, 9 Jan 2015 10:25:09 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 196624] [patch] wsp.c toggle for one finger tap when integrated button is detected. Date: Fri, 09 Jan 2015 10:25:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dor.bsd@fastmail.fm X-Bugzilla-Status: In Progress X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jan 2015 10:25:09 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196624 David O'Rourke changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #151508|0 |1 is obsolete| | --- Comment #4 from David O'Rourke --- Created attachment 151529 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=151529&action=edit One finger tap support, defaulting to 1 (ON). Change .one_finger_tap to be on by default, as suggested by HPS. -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Fri Jan 9 10:25:54 2015 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BE34265D for ; Fri, 9 Jan 2015 10:25:54 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A5082FB1 for ; Fri, 9 Jan 2015 10:25:54 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t09APsNK046995 for ; Fri, 9 Jan 2015 10:25:54 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 196624] [patch] wsp.c toggle for one finger tap when integrated button is detected. Date: Fri, 09 Jan 2015 10:25:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dor.bsd@fastmail.fm X-Bugzilla-Status: In Progress X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jan 2015 10:25:54 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196624 --- Comment #5 from David O'Rourke --- Created attachment 151530 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=151530&action=edit Updated wsp.4 detailing one finger tap support. -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Fri Jan 9 20:24:39 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 420A3A6; Fri, 9 Jan 2015 20:24:39 +0000 (UTC) Received: from mail-wg0-x230.google.com (mail-wg0-x230.google.com [IPv6:2a00:1450:400c:c00::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CCEA19E6; Fri, 9 Jan 2015 20:24:38 +0000 (UTC) Received: by mail-wg0-f48.google.com with SMTP id l2so10076218wgh.7; Fri, 09 Jan 2015 12:24:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=krXeF4VLkf9mplIZdF3BW+sYRa1u+KT9sHFfeop0DLg=; b=sX6S9R1WJH9B4UrRIydg/ylw2e1y5glPGEjgcwxX12RGxTJxd9YrQ3I6MN/Joi1Qiq eVdyjDJzafw2UKcfOqQIlcDHl/2fjnfQqNnx3LLtsKIVoVS56uD2uR35GAvoJHxDkMs+ svMuUT5zqQPegMpcY+NhVzYn57wYBrGaA4YZjGAhh+xxLtSlh2gfOX/7qm1DkzJr89xG BnESSv5fPWEjLoyz32KHsFBcUXyRtVwEJqi2vSPSJaI5EhpRYUAkl3zihnExD/LQKEXj Bv32UTYPudkpR8QkqRFxSPUl1jFz2we/cb4kgIPFJ8Nu5sqlXWHhbuHUjttNabawhB/6 E4iA== MIME-Version: 1.0 X-Received: by 10.194.5.37 with SMTP id p5mr7903839wjp.20.1420835077262; Fri, 09 Jan 2015 12:24:37 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.41.136 with HTTP; Fri, 9 Jan 2015 12:24:37 -0800 (PST) Date: Fri, 9 Jan 2015 12:24:37 -0800 X-Google-Sender-Auth: 8ckcAuH78U0tJzjl77WCMVNYtok Message-ID: Subject: Lynx Point USB - large amount of interrupts (300k / second) From: Adrian Chadd To: "freebsd-usb@freebsd.org" , Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jan 2015 20:24:39 -0000 hi, I have a haswell desktop box at home: CPU: Intel(R) Core(TM) i5-4460 CPU @ 3.20GHz (3192.67-MHz K8-class CPU) With lynx point USB: adrian@test-2:~ % dmesg | grep ehci ehci0: mem 0xf7f1c000-0xf7f1c3ff irq 16 at device 26.0 on pci0 usbus1 on ehci0 ehci1: mem 0xf7f1b000-0xf7f1b3ff irq 23 at device 29.0 on pci0 usbus2 on ehci1 ehci0@pci0:0:26:0: class=0x0c0320 card=0x367d17aa chip=0x8c2d8086 rev=0x05 hdr=0x00 vendor = 'Intel Corporation' device = 'Lynx Point USB Enhanced Host Controller' class = serial bus subclass = USB ehci1@pci0:0:29:0: class=0x0c0320 card=0x367d17aa chip=0x8c268086 rev=0x05 hdr=0x00 vendor = 'Intel Corporation' device = 'Lynx Point USB Enhanced Host Controller' class = serial bus subclass = USB and: xhci0: mem 0xf7f00000-0xf7f0ffff irq 16 at device 20.0 on pci0 xhci0: 32 byte context size. xhci0: Port routing mask set to 0xffffffff usbus0 on xhci0 xhci0@pci0:0:20:0: class=0x0c0330 card=0x367d17aa chip=0x8c318086 rev=0x05 hdr=0x00 vendor = 'Intel Corporation' device = 'Lynx Point USB xHCI Host Controller' class = serial bus subclass = USB .. now, whta I'm seeing is this: irq16: ehci0 21441217509 25285 stray irq16 0 0 ... systat -vmstat 1 shows the interrupt rate to be ridiculous though, like 230,000 interrupts a second. Proc: Interrupts r p d s w Csw Trp Sys Int Sof Flt ioflt 256k total 45 6 510k 11 245 255k 16 3 cow 255k ehci0 16 1 zfod ehci1 23 .. so, what gives? :) Has anyone else seen this? -adrian From owner-freebsd-usb@FreeBSD.ORG Fri Jan 9 23:33:48 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 16F19362 for ; Fri, 9 Jan 2015 23:33:48 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F230CEA4 for ; Fri, 9 Jan 2015 23:33:47 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t09NXlgq037002 for ; Fri, 9 Jan 2015 23:33:47 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 196624] [patch] wsp.c toggle for one finger tap when integrated button is detected. Date: Fri, 09 Jan 2015 23:33:48 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dor.bsd@fastmail.fm X-Bugzilla-Status: In Progress X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jan 2015 23:33:48 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196624 --- Comment #6 from David O'Rourke --- Just noticed that I failed to clamp the values. I'll have some updated diffs shortly. -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Fri Jan 9 23:37:28 2015 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 53DFE3D7; Fri, 9 Jan 2015 23:37:28 +0000 (UTC) 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)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DF71DEB9; Fri, 9 Jan 2015 23:37:27 +0000 (UTC) Received: by mail-wi0-f170.google.com with SMTP id bs8so5065510wib.1; Fri, 09 Jan 2015 15:37:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=LnBiORjG7KVaCcrUwe6rBHROcR/YWdBos4MvmK8brDY=; b=dJMaW/6CKHLKKyEm+eH6vX0x5IxJ5hdmuoJJeS8gSxt8Aic/PPNYrxqY7Uo3KowU2/ AXYf8htkpvqxX2bree5Mqd2ztqWQVG6kiQ/ZWC00F1DRmbvULm9QfHEodqJzVGIqwVvJ f6/eiYxhnfHgLNpmY1XgtwhCuyPmZy16NIVy96gb/yjJRo9Z8xYuRcfM1NNciDHj/tm5 2wpbNbP6zxyvMmo+VYLZbGMBMaIIFEoYOAxEwDlYRzWLUKL1LBn/yUTa3kq5zdoVf/rB nN+qz/DFzTX07I+9KmXuYkyamZesBHisaN7i76ExERnRa0G9Kv42zFGc9lkmCxiYLmkX JOKw== MIME-Version: 1.0 X-Received: by 10.195.12.15 with SMTP id em15mr37405887wjd.80.1420846645730; Fri, 09 Jan 2015 15:37:25 -0800 (PST) Received: by 10.27.81.146 with HTTP; Fri, 9 Jan 2015 15:37:25 -0800 (PST) Date: Fri, 9 Jan 2015 23:37:25 +0000 Message-ID: Subject: Re: Lynx Point USB - large amount of interrupts (300k / second) From: Daniel Kolesa To: Adrian Chadd , freebsd-usb@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jan 2015 23:37:28 -0000 2015-01-09 23:26 GMT+00:00 Daniel Kolesa : > 2015-01-09 20:24 GMT+00:00 Adrian Chadd : >> hi, >> >> I have a haswell desktop box at home: >> >> CPU: Intel(R) Core(TM) i5-4460 CPU @ 3.20GHz (3192.67-MHz K8-class CPU) >> >> With lynx point USB: > > Also Haswell here, but with H97 chipset, which means Wildcat Point > USB. Not getting the issue. > >> >> adrian@test-2:~ % dmesg | grep ehci >> ehci0: mem >> 0xf7f1c000-0xf7f1c3ff irq 16 at device 26.0 on pci0 >> usbus1 on ehci0 >> ehci1: mem >> 0xf7f1b000-0xf7f1b3ff irq 23 at device 29.0 on pci0 >> usbus2 on ehci1 >> >> >> ehci0@pci0:0:26:0: class=0x0c0320 card=0x367d17aa chip=0x8c2d8086 >> rev=0x05 hdr=0x00 >> vendor = 'Intel Corporation' >> device = 'Lynx Point USB Enhanced Host Controller' >> class = serial bus >> subclass = USB >> >> ehci1@pci0:0:29:0: class=0x0c0320 card=0x367d17aa chip=0x8c268086 >> rev=0x05 hdr=0x00 >> vendor = 'Intel Corporation' >> device = 'Lynx Point USB Enhanced Host Controller' >> class = serial bus >> subclass = USB >> >> >> and: >> >> xhci0: mem 0xf7f00000-0xf7f0ffff >> irq 16 at device 20.0 on pci0 >> xhci0: 32 byte context size. >> xhci0: Port routing mask set to 0xffffffff >> usbus0 on xhci0 >> >> xhci0@pci0:0:20:0: class=0x0c0330 card=0x367d17aa chip=0x8c318086 >> rev=0x05 hdr=0x00 >> vendor = 'Intel Corporation' >> device = 'Lynx Point USB xHCI Host Controller' >> class = serial bus >> subclass = USB >> >> .. now, whta I'm seeing is this: >> >> irq16: ehci0 21441217509 25285 >> stray irq16 0 0 >> >> ... systat -vmstat 1 shows the interrupt rate to be ridiculous though, >> like 230,000 interrupts a second. > > The numbers it shows here are very small. > >> >> Proc: Interrupts >> r p d s w Csw Trp Sys Int Sof Flt ioflt 256k total >> 45 6 510k 11 245 255k 16 3 cow 255k ehci0 16 >> 1 zfod ehci1 23 >> >> .. so, what gives? :) Has anyone else seen this? >> >> >> >> -adrian >> _______________________________________________ >> 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" > > Daniel Oops. Accidentally sent only to Adrian rather than the list. Sorry From owner-freebsd-usb@FreeBSD.ORG Fri Jan 9 23:54:40 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E45E169D for ; Fri, 9 Jan 2015 23:54:40 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CAEC1B3 for ; Fri, 9 Jan 2015 23:54:40 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t09NseV2084696 for ; Fri, 9 Jan 2015 23:54:40 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 196624] [patch] wsp.c toggle for one finger tap when integrated button is detected. Date: Fri, 09 Jan 2015 23:54:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dor.bsd@fastmail.fm X-Bugzilla-Status: In Progress X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jan 2015 23:54:41 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196624 David O'Rourke changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #151529|0 |1 is obsolete| | --- Comment #7 from David O'Rourke --- Created attachment 151553 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=151553&action=edit One finger tap support, defaulting to 1 (ON), value clamped. -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Fri Jan 9 23:55:31 2015 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3B8016D3 for ; Fri, 9 Jan 2015 23:55:31 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 22508B8 for ; Fri, 9 Jan 2015 23:55:31 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t09NtVDL085074 for ; Fri, 9 Jan 2015 23:55:31 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 196624] [patch] wsp.c toggle for one finger tap when integrated button is detected. Date: Fri, 09 Jan 2015 23:55:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dor.bsd@fastmail.fm X-Bugzilla-Status: In Progress X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jan 2015 23:55:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196624 David O'Rourke changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #151530|0 |1 is obsolete| | --- Comment #8 from David O'Rourke --- Created attachment 151554 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=151554&action=edit Updated wsp.4 detailing one finger tap support. Small change regarding the enabled value. -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Sat Jan 10 11:52:20 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1C3D8963; Sat, 10 Jan 2015 11:52:20 +0000 (UTC) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D0A50C8C; Sat, 10 Jan 2015 11:52:18 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id ADB281FE022; Sat, 10 Jan 2015 12:52:09 +0100 (CET) Message-ID: <54B11299.6040909@selasky.org> Date: Sat, 10 Jan 2015 12:52:57 +0100 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Daniel Kolesa , Adrian Chadd , freebsd-usb@freebsd.org Subject: Re: Lynx Point USB - large amount of interrupts (300k / second) References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jan 2015 11:52:20 -0000 On 01/10/15 00:37, Daniel Kolesa wrote: > 2015-01-09 23:26 GMT+00:00 Daniel Kolesa : >> 2015-01-09 20:24 GMT+00:00 Adrian Chadd : >>> hi, >>> >>> I have a haswell desktop box at home: >>> >>> CPU: Intel(R) Core(TM) i5-4460 CPU @ 3.20GHz (3192.67-MHz K8-class CPU) >>> >>> With lynx point USB: >> >> Also Haswell here, but with H97 chipset, which means Wildcat Point >> USB. Not getting the issue. >> >>> >>> adrian@test-2:~ % dmesg | grep ehci >>> ehci0: mem >>> 0xf7f1c000-0xf7f1c3ff irq 16 at device 26.0 on pci0 >>> usbus1 on ehci0 >>> ehci1: mem >>> 0xf7f1b000-0xf7f1b3ff irq 23 at device 29.0 on pci0 >>> usbus2 on ehci1 >>> Hi, You can easily check who's generating the interrupts by setting: hw.usb.ehci.debug=16 hw.usb.xhci.debug=16 If the interrupt status is all-zero, then it is a bug somewhere else! --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Jan 10 15:53:52 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CC851E0F for ; Sat, 10 Jan 2015 15:53:52 +0000 (UTC) Received: from mail-we0-x22b.google.com (mail-we0-x22b.google.com [IPv6:2a00:1450:400c:c03::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6057C289 for ; Sat, 10 Jan 2015 15:53:52 +0000 (UTC) Received: by mail-we0-f171.google.com with SMTP id u56so12576311wes.2 for ; Sat, 10 Jan 2015 07:53:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=DX+oadWWvBavOE1MH82kWB8UuaS23kqvz62j1iCGesQ=; b=Z+UGBDeSq8Qzc9MDchDO7lumebvS4M4bWmQzjPFNkhKnfmpxclqMllWSHdx238aUZ/ sV/AubxeaFcJaf3eogirgO1NpaiitbNZvgri1K/UJKDAfv5E/clxqNEfhRjPLo9J/Sae uTBOcfBar9a9ZPEWozox23QKaPYHtKQIFfDWmQQ9BDdRTg0ejQEiUcZNPpFye0MJETDE 2yLFaLY2TtGgl4Epaot+Kd09w4zQZFC3QufqSKalH+7ar2paC/2XwbJX4JL/LM4GFDlG 92n31L/orsfFiGJlw3Efki7On1cYiuIUUQBcgcWXkSulUP7U/zBS1Tnw59YeGRYM3vNy STkg== MIME-Version: 1.0 X-Received: by 10.194.5.37 with SMTP id p5mr15055390wjp.20.1420905230896; Sat, 10 Jan 2015 07:53:50 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.41.136 with HTTP; Sat, 10 Jan 2015 07:53:50 -0800 (PST) In-Reply-To: <54B11299.6040909@selasky.org> References: <54B11299.6040909@selasky.org> Date: Sat, 10 Jan 2015 07:53:50 -0800 X-Google-Sender-Auth: JLud8mO0OZmPbS5yeAO2BNaPTaY Message-ID: Subject: Re: Lynx Point USB - large amount of interrupts (300k / second) From: Adrian Chadd 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.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jan 2015 15:53:52 -0000 Real interrupt: frindex=0x000012f6 ctrdsegm=0x00000000 periodic=0xda3cf000 async=0xda3d1000 port 1 status=0x00001005 port 2 status=0x00001000 ehci_interrupt: real interrupt cmd=0x00010031 EHCI_CMD_ITC_1 EHCI_CMD_ASE EHCI_CMD_PSE EHCI_CMD_RS sts=0x0000c008 EHCI_STS_ASS EHCI_STS_PSS EHCI_STS_FLR ien=0x00000037 -adrian On 10 January 2015 at 03:52, Hans Petter Selasky wrote: > On 01/10/15 00:37, Daniel Kolesa wrote: >> >> 2015-01-09 23:26 GMT+00:00 Daniel Kolesa : >>> >>> 2015-01-09 20:24 GMT+00:00 Adrian Chadd : >>>> >>>> hi, >>>> >>>> I have a haswell desktop box at home: >>>> >>>> CPU: Intel(R) Core(TM) i5-4460 CPU @ 3.20GHz (3192.67-MHz K8-class CPU) >>>> >>>> With lynx point USB: >>> >>> >>> Also Haswell here, but with H97 chipset, which means Wildcat Point >>> USB. Not getting the issue. >>> >>>> >>>> adrian@test-2:~ % dmesg | grep ehci >>>> ehci0: mem >>>> 0xf7f1c000-0xf7f1c3ff irq 16 at device 26.0 on pci0 >>>> usbus1 on ehci0 >>>> ehci1: mem >>>> 0xf7f1b000-0xf7f1b3ff irq 23 at device 29.0 on pci0 >>>> usbus2 on ehci1 >>>> > > Hi, > > You can easily check who's generating the interrupts by setting: > > hw.usb.ehci.debug=16 > hw.usb.xhci.debug=16 > > If the interrupt status is all-zero, then it is a bug somewhere else! > > --HPS > From owner-freebsd-usb@FreeBSD.ORG Sat Jan 10 17:19:04 2015 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7FBE7756; Sat, 10 Jan 2015 17:19:04 +0000 (UTC) Received: from mail.in-addr.com (mail.in-addr.com [IPv6:2a01:4f8:191:61e8::2525:2525]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 431CBBAF; Sat, 10 Jan 2015 17:19:04 +0000 (UTC) Received: from gjp by mail.in-addr.com with local (Exim 4.84 (FreeBSD)) (envelope-from ) id 1Y9zgj-0003Yg-Nu; Sat, 10 Jan 2015 17:19:01 +0000 Date: Sat, 10 Jan 2015 17:19:01 +0000 From: Gary Palmer To: freebsd-usb@freebsd.org Subject: ZTE MF730M 3G dongle help please Message-ID: <20150110171901.GA47211@in-addr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: gpalmer@freebsd.org X-SA-Exim-Scanned: No (on mail.in-addr.com); SAEximRunCond expanded to false X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jan 2015 17:19:04 -0000 Hi, I have a ZTE MF730M. When first connected to my 9.3-RELEASE-p7 box it takes a few seconds (approximately 7) and then shows up as: % usbconfig -d ugen2.7 dump_device_desc ugen2.7: at usbus2, cfg=1 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x19d2 idProduct = 0x1420 bcdDevice = 0xf0f7 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0004 <1234567890ABCDEF> bNumConfigurations = 0x0003 with the following config: % usbconfig -d ugen2.7 dump_all_config_desc ugen2.7: at usbus2, cfg=1 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0020 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0003 bmAttributes = 0x00c0 bMaxPower = 0x00fa Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0002 bInterfaceClass = 0x0008 bInterfaceSubClass = 0x0006 bInterfaceProtocol = 0x0050 iInterface = 0x0005 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0001 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0001 bRefresh = 0x0000 bSynchAddress = 0x0000 Configuration index 1 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0020 bNumInterfaces = 0x0001 bConfigurationValue = 0x0002 iConfiguration = 0x0003 bmAttributes = 0x00c0 bMaxPower = 0x00fa Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0002 bInterfaceClass = 0x0008 bInterfaceSubClass = 0x0006 bInterfaceProtocol = 0x0050 iInterface = 0x0005 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0001 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0001 bRefresh = 0x0000 bSynchAddress = 0x0000 the kernel reports: Jan 10 16:38:10 noop kernel: usb_alloc_device: Found possible auto-install disk (trying next config) Jan 10 16:38:10 noop kernel: ugen2.7: at usbus2 Jan 10 16:38:10 noop kernel: umass0: on usbus2 Jan 10 16:38:10 noop kernel: umass0: SCSI over Bulk-Only; quirks = 0x0000 Jan 10 16:38:10 noop kernel: umass0: Get Max Lun not supported (USB_ERR_STALLED) Jan 10 16:38:10 noop kernel: umass0:8:0:-1: Attached to scbus8 Jan 10 16:39:24 noop kernel: (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 Jan 10 16:39:24 noop kernel: (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error Jan 10 16:39:24 noop kernel: (probe0:umass-sim0:0:0:0): Retrying command Jan 10 16:40:38 noop kernel: (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 Jan 10 16:40:38 noop kernel: (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error Jan 10 16:40:38 noop kernel: (probe0:umass-sim0:0:0:0): Retrying command Jan 10 16:41:51 noop kernel: (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 Jan 10 16:41:51 noop kernel: (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error Jan 10 16:41:51 noop kernel: (probe0:umass-sim0:0:0:0): Retrying command n 10 16:43:05 noop kernel: (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 Jan 10 16:43:05 noop kernel: (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error Jan 10 16:43:05 noop kernel: (probe0:umass-sim0:0:0:0): Retrying command Jan 10 16:44:19 noop kernel: (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 Jan 10 16:44:19 noop kernel: (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error Jan 10 16:44:19 noop kernel: (probe0:umass-sim0:0:0:0): Error 5, Retries exhausted nothing shows up in "camcontrol devlist". If I do usbconfig -d ugen2.7 power_off usbconfig -d ugen2.7 power_on I now get: Jan 10 16:45:17 noop kernel: umass0: at uhub6, port 1, addr 7 (disconnected) Jan 10 16:45:21 noop kernel: umass0: on usbus2 Jan 10 16:45:21 noop kernel: umass0: SCSI over Bulk-Only; quirks = 0x0000 Jan 10 16:45:21 noop kernel: umass0:8:0:-1: Attached to scbus8 Jan 10 16:45:21 noop kernel: cd1 at umass-sim0 bus 0 scbus8 target 0 lun 0 Jan 10 16:45:21 noop kernel: cd1: Removable CD-ROM SCSI-2 device Jan 10 16:45:21 noop kernel: cd1: Serial Number 1234567890ABCDEF Jan 10 16:45:21 noop kernel: cd1: 40.000MB/s transfers Jan 10 16:45:21 noop kernel: cd1: cd present [2177 x 2048 byte records] Jan 10 16:45:21 noop kernel: cd1: quirks=0x10<10_BYTE_ONLY> Jan 10 16:45:22 noop kernel: (cd1:umass-sim0:0:0:0): READ TOC/PMA/ATIP. CDB: 43 02 00 00 00 00 aa 00 0c 00 Jan 10 16:45:22 noop kernel: (cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error Jan 10 16:45:22 noop kernel: (cd1:umass-sim0:0:0:0): SCSI status: Check Condition Jan 10 16:45:22 noop kernel: (cd1:umass-sim0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB) Jan 10 16:45:22 noop kernel: (cd1:umass-sim0:0:0:0): Error 22, Unretryable error and this shows up in camcontrol devlist: at scbus8 target 0 lun 0 (cd1,pass7) now if I do % camcontrol eject cd1 Unit stopped successfully, Media ejected I get the following kernel logs: Jan 10 16:45:52 noop kernel: ugen2.7: at usbus2 (disconnected) Jan 10 16:45:52 noop kernel: umass0: at uhub6, port 1, addr 7 (disconnected) Jan 10 16:45:52 noop kernel: cd1 at umass-sim0 bus 0 scbus8 target 0 lun 0 Jan 10 16:45:52 noop kernel: cd1: s/n 1234567890ABCDEF detached Jan 10 16:45:52 noop kernel: (cd1:umass-sim0:0:0:0): Periph destroyed Jan 10 16:45:53 noop kernel: ugen2.7: at usbus2 Jan 10 16:45:53 noop kernel: urndis0: on usbus2 Jan 10 16:45:53 noop kernel: ue0: on urndis0 Jan 10 16:45:53 noop kernel: ue0: Ethernet address: Jan 10 16:45:53 noop kernel: umass0: on usbus2 Jan 10 16:45:53 noop kernel: umass0: SCSI over Bulk-Only; quirks = 0x0000 Jan 10 16:45:53 noop kernel: umass0:8:0:-1: Attached to scbus8 Jan 10 16:45:53 noop kernel: cd1 at umass-sim0 bus 0 scbus8 target 0 lun 0 Jan 10 16:45:53 noop kernel: cd1: Removable CD-ROM SCSI-2 device Jan 10 16:45:53 noop kernel: cd1: Serial Number 1234567890ABCDEF Jan 10 16:45:53 noop kernel: cd1: 40.000MB/s transfers Jan 10 16:45:53 noop kernel: cd1: cd present [2177 x 2048 byte records] Jan 10 16:45:53 noop kernel: cd1: quirks=0x10<10_BYTE_ONLY> Jan 10 16:45:53 noop kernel: da0 at umass-sim0 bus 0 scbus8 target 0 lun 1 Jan 10 16:45:53 noop kernel: da0: Removable Direct Access SCSI-2 device Jan 10 16:45:53 noop kernel: da0: Serial Number 1234567890ABCDEF Jan 10 16:45:53 noop kernel: da0: 40.000MB/s transfers Jan 10 16:45:53 noop kernel: da0: Attempt to query device size failed: NOT READY, Medium not present Jan 10 16:45:53 noop kernel: da0: quirks=0x2 Jan 10 16:45:53 noop root: Unknown USB device: vendor 0x19d2 product 0x1403 bus uhub6 and ue0: flags=8802 metric 0 mtu 1500 ether nd6 options=29 shows up Any way of getting a more automated switch to the RNDIS protocol? I've got a hack going right now via devd but I'd have thought there would be a way of doing this via the quirks mechanism. The devd stuff isn't ideal as I found out that there is no real way to associate the umass creation event with a particular cam device, so I end up with a script that waits and uses camcontrol to try to figure out the cd device that is created via umass. Thanks, Gary From owner-freebsd-usb@FreeBSD.ORG Sat Jan 10 19:31:08 2015 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8E747C70; Sat, 10 Jan 2015 19:31:08 +0000 (UTC) Received: from mail-oi0-x236.google.com (mail-oi0-x236.google.com [IPv6:2607:f8b0:4003:c06::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 50E409B7; Sat, 10 Jan 2015 19:31:08 +0000 (UTC) Received: by mail-oi0-f54.google.com with SMTP id u20so15997091oif.13; Sat, 10 Jan 2015 11:31:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=cbN7A/PLipJJrxV8U7BeGwIM7vQyMQoFbgrT4YbDJeQ=; b=BTxB922tfRF6dweg4w8hrTR/4qcHub0DE+4GsDZFaAyy9Nhsjut3FZvogL4clkxGMI w8c52TBNo1f9o/LM86uJ3e2q1mKixGtKG5VAzYG1CQ+YGXjmt8O9+iqnOo14vmW1DQ+w k7mCDx3gUGhhtHRNZNl65HrgYsGZsYOJjdx8RTXkeR6vjBQo0fo9R8Pa0kYoznPm8R8e T+dhuaQV3Y0rh0BPeQlqAqnx7a4CQi6Zl16p0Jk2xDAS9edejwhy5Bzz2ApPhhd1I6GY zgVyYK4CTxT0YwJEpHlHxY+fXwzorHzBbagesDTdykw1gyp/D3nKkeObMHRjlWCX9yZ+ 3aBg== MIME-Version: 1.0 X-Received: by 10.202.202.206 with SMTP id a197mr12450566oig.5.1420918267318; Sat, 10 Jan 2015 11:31:07 -0800 (PST) Received: by 10.76.36.71 with HTTP; Sat, 10 Jan 2015 11:31:07 -0800 (PST) In-Reply-To: <20150110171901.GA47211@in-addr.com> References: <20150110171901.GA47211@in-addr.com> Date: Sat, 10 Jan 2015 19:31:07 +0000 Message-ID: Subject: Re: ZTE MF730M 3G dongle help please From: Philip Guyton To: Gary Palmer Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jan 2015 19:31:08 -0000 @Garry Palmer Don't know if it helps or not but I've previously posted some info on this list re a long battle I had with this same ZTE-MF730M My post (unanswered as far as I know) is at:- Quirks required to remove 6 minute CAM status: CCB error with ZTE-MF730M I was switching the device to the cdc ether mode (preferred by me) for use with if_cdce.ko. Also posted a devd hack for pfsense that might help:- zte-mf730m 42Mbps 3G howto and request for further assistance again no reply. I appreciate this is not an answer but hope this helps, I received no help myself with this dongle and FreeBSD so suspect it's uninteresting to these 2 mailing lists. Switches almost instantly and perfectly reliable with modern linux kernels (no usb-modeswitch required) so using it there. But also a guide / source to how it can be done. Didn't track down exactly how it's done in the linux kernel though unfortunately. Would be a nice addition to FreeBSD though. On Sat, Jan 10, 2015 at 5:19 PM, Gary Palmer wrote: > > Hi, > > I have a ZTE MF730M. When first connected to my 9.3-RELEASE-p7 box > it takes a few seconds (approximately 7) and then shows up as: > > % usbconfig -d ugen2.7 dump_device_desc > ugen2.7: at usbus2, cfg=1 > md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0200 > bDeviceClass = 0x0000 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x19d2 > idProduct = 0x1420 > bcdDevice = 0xf0f7 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0004 <1234567890ABCDEF> > bNumConfigurations = 0x0003 > > with the following config: > > % usbconfig -d ugen2.7 dump_all_config_desc > ugen2.7: at usbus2, cfg=1 > md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) > > > Configuration index 0 > > bLength = 0x0009 > bDescriptorType = 0x0002 > wTotalLength = 0x0020 > bNumInterfaces = 0x0001 > bConfigurationValue = 0x0001 > iConfiguration = 0x0003 > bmAttributes = 0x00c0 > bMaxPower = 0x00fa > > Interface 0 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0000 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0002 > bInterfaceClass = 0x0008 > bInterfaceSubClass = 0x0006 > bInterfaceProtocol = 0x0050 > iInterface = 0x0005 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0081 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 1 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0001 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0001 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > > > Configuration index 1 > > bLength = 0x0009 > bDescriptorType = 0x0002 > wTotalLength = 0x0020 > bNumInterfaces = 0x0001 > bConfigurationValue = 0x0002 > iConfiguration = 0x0003 > bmAttributes = 0x00c0 > bMaxPower = 0x00fa > > Interface 0 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0000 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0002 > bInterfaceClass = 0x0008 > bInterfaceSubClass = 0x0006 > bInterfaceProtocol = 0x0050 > iInterface = 0x0005 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0081 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 1 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0001 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0001 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > > > the kernel reports: > > Jan 10 16:38:10 noop kernel: usb_alloc_device: Found possible auto-install > disk (trying next config) > Jan 10 16:38:10 noop kernel: ugen2.7: at usbus2 > Jan 10 16:38:10 noop kernel: umass0: on usbus2 > Jan 10 16:38:10 noop kernel: umass0: SCSI over Bulk-Only; quirks = 0x0000 > Jan 10 16:38:10 noop kernel: umass0: Get Max Lun not supported > (USB_ERR_STALLED) > Jan 10 16:38:10 noop kernel: umass0:8:0:-1: Attached to scbus8 > Jan 10 16:39:24 noop kernel: (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 > 00 00 00 24 00 > Jan 10 16:39:24 noop kernel: (probe0:umass-sim0:0:0:0): CAM status: CCB > request completed with an error > Jan 10 16:39:24 noop kernel: (probe0:umass-sim0:0:0:0): Retrying command > Jan 10 16:40:38 noop kernel: (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 > 00 00 00 24 00 > Jan 10 16:40:38 noop kernel: (probe0:umass-sim0:0:0:0): CAM status: CCB > request completed with an error > Jan 10 16:40:38 noop kernel: (probe0:umass-sim0:0:0:0): Retrying command > Jan 10 16:41:51 noop kernel: (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 > 00 00 00 24 00 > Jan 10 16:41:51 noop kernel: (probe0:umass-sim0:0:0:0): CAM status: CCB > request completed with an error > Jan 10 16:41:51 noop kernel: (probe0:umass-sim0:0:0:0): Retrying command > n 10 16:43:05 noop kernel: (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 > 00 00 24 00 > Jan 10 16:43:05 noop kernel: (probe0:umass-sim0:0:0:0): CAM status: CCB > request completed with an error > Jan 10 16:43:05 noop kernel: (probe0:umass-sim0:0:0:0): Retrying command > Jan 10 16:44:19 noop kernel: (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 > 00 00 00 24 00 > Jan 10 16:44:19 noop kernel: (probe0:umass-sim0:0:0:0): CAM status: CCB > request completed with an error > Jan 10 16:44:19 noop kernel: (probe0:umass-sim0:0:0:0): Error 5, Retries > exhausted > > > nothing shows up in "camcontrol devlist". > > If I do > > usbconfig -d ugen2.7 power_off > usbconfig -d ugen2.7 power_on > > I now get: > > Jan 10 16:45:17 noop kernel: umass0: at uhub6, port 1, addr 7 > (disconnected) > Jan 10 16:45:21 noop kernel: umass0: on usbus2 > Jan 10 16:45:21 noop kernel: umass0: SCSI over Bulk-Only; quirks = 0x0000 > Jan 10 16:45:21 noop kernel: umass0:8:0:-1: Attached to scbus8 > Jan 10 16:45:21 noop kernel: cd1 at umass-sim0 bus 0 scbus8 target 0 lun 0 > Jan 10 16:45:21 noop kernel: cd1: Removable > CD-ROM SCSI-2 device > Jan 10 16:45:21 noop kernel: cd1: Serial Number 1234567890ABCDEF > Jan 10 16:45:21 noop kernel: cd1: 40.000MB/s transfers > Jan 10 16:45:21 noop kernel: cd1: cd present [2177 x 2048 byte records] > Jan 10 16:45:21 noop kernel: cd1: quirks=0x10<10_BYTE_ONLY> > Jan 10 16:45:22 noop kernel: (cd1:umass-sim0:0:0:0): READ TOC/PMA/ATIP. > CDB: 43 02 00 00 00 00 aa 00 0c 00 > Jan 10 16:45:22 noop kernel: (cd1:umass-sim0:0:0:0): CAM status: SCSI > Status Error > Jan 10 16:45:22 noop kernel: (cd1:umass-sim0:0:0:0): SCSI status: Check > Condition > Jan 10 16:45:22 noop kernel: (cd1:umass-sim0:0:0:0): SCSI sense: ILLEGAL > REQUEST asc:24,0 (Invalid field in CDB) > Jan 10 16:45:22 noop kernel: (cd1:umass-sim0:0:0:0): Error 22, Unretryable > error > > and this shows up in camcontrol devlist: > > at scbus8 target 0 lun 0 (cd1,pass7) > > now if I do > > % camcontrol eject cd1 > Unit stopped successfully, Media ejected > > I get the following kernel logs: > > Jan 10 16:45:52 noop kernel: ugen2.7: at usbus2 > (disconnected) > Jan 10 16:45:52 noop kernel: umass0: at uhub6, port 1, addr 7 > (disconnected) > Jan 10 16:45:52 noop kernel: cd1 at umass-sim0 bus 0 scbus8 target 0 lun 0 > Jan 10 16:45:52 noop kernel: cd1: s/n > 1234567890ABCDEF detached > Jan 10 16:45:52 noop kernel: (cd1:umass-sim0:0:0:0): Periph destroyed > Jan 10 16:45:53 noop kernel: ugen2.7: at usbus2 > Jan 10 16:45:53 noop kernel: urndis0: on > usbus2 > Jan 10 16:45:53 noop kernel: ue0: on urndis0 > Jan 10 16:45:53 noop kernel: ue0: Ethernet address: > Jan 10 16:45:53 noop kernel: umass0: on usbus2 > Jan 10 16:45:53 noop kernel: umass0: SCSI over Bulk-Only; quirks = 0x0000 > Jan 10 16:45:53 noop kernel: umass0:8:0:-1: Attached to scbus8 > Jan 10 16:45:53 noop kernel: cd1 at umass-sim0 bus 0 scbus8 target 0 lun 0 > Jan 10 16:45:53 noop kernel: cd1: Removable > CD-ROM SCSI-2 device > Jan 10 16:45:53 noop kernel: cd1: Serial Number 1234567890ABCDEF > Jan 10 16:45:53 noop kernel: cd1: 40.000MB/s transfers > Jan 10 16:45:53 noop kernel: cd1: cd present [2177 x 2048 byte records] > Jan 10 16:45:53 noop kernel: cd1: quirks=0x10<10_BYTE_ONLY> > Jan 10 16:45:53 noop kernel: da0 at umass-sim0 bus 0 scbus8 target 0 lun 1 > Jan 10 16:45:53 noop kernel: da0: Removable Direct > Access SCSI-2 device > Jan 10 16:45:53 noop kernel: da0: Serial Number 1234567890ABCDEF > Jan 10 16:45:53 noop kernel: da0: 40.000MB/s transfers > Jan 10 16:45:53 noop kernel: da0: Attempt to query device size failed: NOT > READY, Medium not present > Jan 10 16:45:53 noop kernel: da0: quirks=0x2 > Jan 10 16:45:53 noop root: Unknown USB device: vendor 0x19d2 product > 0x1403 bus uhub6 > > and > > ue0: flags=8802 metric 0 mtu 1500 > ether > nd6 options=29 > > shows up > > Any way of getting a more automated switch to the RNDIS protocol? > > I've got a hack going right now via devd but I'd have thought there would > be a way of doing this via the quirks mechanism. The devd stuff isn't > ideal as I found out that there is no real way to associate the umass > creation event with a particular cam device, so I end up with a script > that waits and uses camcontrol to try to figure out the cd device that > is created via umass. > > Thanks, > > Gary > _______________________________________________ > 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 Jan 10 23:18:48 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BB91D957; Sat, 10 Jan 2015 23:18:48 +0000 (UTC) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7B7CA15A; Sat, 10 Jan 2015 23:18:48 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 4712B1FE022; Sun, 11 Jan 2015 00:18:46 +0100 (CET) Message-ID: <54B1B386.9090007@selasky.org> Date: Sun, 11 Jan 2015 00:19:34 +0100 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Adrian Chadd Subject: Re: Lynx Point USB - large amount of interrupts (300k / second) References: <54B11299.6040909@selasky.org> In-Reply-To: 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.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jan 2015 23:18:48 -0000 On 01/10/15 16:53, Adrian Chadd wrote: > Real interrupt: > > frindex=0x000012f6 ctrdsegm=0x00000000 periodic=0xda3cf000 async=0xda3d1000 > port 1 status=0x00001005 > port 2 status=0x00001000 > ehci_interrupt: real interrupt > cmd=0x00010031 > EHCI_CMD_ITC_1 > EHCI_CMD_ASE > EHCI_CMD_PSE > EHCI_CMD_RS > sts=0x0000c008 > EHCI_STS_ASS > EHCI_STS_PSS > EHCI_STS_FLR > ien=0x00000037 > Hi, Can you collect some statistics how frequently the message appears, and which one is repeating most? Also did you try setting: hw.usb.ehci.iaadbug=1 hw.usb.ehci.lostintrbug=1 separately in /boot/loader.conf ? --HPS