From owner-freebsd-usb@FreeBSD.ORG Mon Jan 19 07:04:22 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 804273FE for ; Mon, 19 Jan 2015 07:04:22 +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 67B16DE8 for ; Mon, 19 Jan 2015 07:04:22 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t0J74MQb097813 for ; Mon, 19 Jan 2015 07:04:22 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: Mon, 19 Jan 2015 07:04:22 +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: commit-hook@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: Mon, 19 Jan 2015 07:04:22 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=185747 --- Comment #10 from commit-hook@freebsd.org --- A commit references this bug: Author: hselasky Date: Mon Jan 19 07:03:41 UTC 2015 New revision: 277363 URL: https://svnweb.freebsd.org/changeset/base/277363 Log: MFC r277044: Increase the maximum number of dynamic USB quirks. USB memory stick devices which don't support the synchronize cache SCSI command are likely to also not support the prevent-allow medium removal SCSI command. PR: 185747 Changes: _U stable/9/sys/ _U stable/9/sys/dev/ stable/9/sys/dev/usb/usb_freebsd.h stable/9/sys/dev/usb/usb_msctest.c -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Mon Jan 19 07:06:24 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 C07B4570 for ; Mon, 19 Jan 2015 07:06:24 +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 A7B5EE02 for ; Mon, 19 Jan 2015 07:06:24 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t0J76Oe1098594 for ; Mon, 19 Jan 2015 07:06:24 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: Mon, 19 Jan 2015 07:06:24 +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: commit-hook@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: Mon, 19 Jan 2015 07:06:24 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=185747 --- Comment #11 from commit-hook@freebsd.org --- A commit references this bug: Author: hselasky Date: Mon Jan 19 07:06:16 UTC 2015 New revision: 277364 URL: https://svnweb.freebsd.org/changeset/base/277364 Log: MFC r277044: Increase the maximum number of dynamic USB quirks. USB memory stick devices which don't support the synchronize cache SCSI command are likely to also not support the prevent-allow medium removal SCSI command. PR: 185747 Changes: _U stable/10/ stable/10/sys/dev/usb/usb_freebsd.h stable/10/sys/dev/usb/usb_freebsd_loader.h stable/10/sys/dev/usb/usb_msctest.c -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Mon Jan 19 23:41: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 77086423 for ; Mon, 19 Jan 2015 23:41:10 +0000 (UTC) Received: from mx0.starion.dk (mx0.starion.dk [93.162.70.34]) by mx1.freebsd.org (Postfix) with ESMTP id 34AFFB66 for ; Mon, 19 Jan 2015 23:41:09 +0000 (UTC) X-tst: NONE (10.1.1.21) Received: from mailstore.starion.info (unknown [10.1.1.21]) by mx0.starion.dk (Postfix) with SMTP id 4634D2BD943 for ; Tue, 20 Jan 2015 00:34:06 +0100 (CET) Received: (nullmailer pid 47180 invoked by uid 1004); Mon, 19 Jan 2015 23:34:06 -0000 Message-ID: <54BD9460.90607@uffe.org> Date: Tue, 20 Jan 2015 00:33:52 +0100 From: Uffe Jakobsen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: freebsd-usb@freebsd.org Subject: Problem with libusb20_dev_get_port_path() 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: Mon, 19 Jan 2015 23:41:10 -0000 Hi, I seem to be having a problem with libusb20_dev_get_port_path() I iterate through all usb devices in the system. libusb20_dev_get_port_path() returns 0 for all my usb devices. Any hints ? Seen on FreeBSD 10.1 (amd64) with latest patches /Uffe From owner-freebsd-usb@FreeBSD.ORG Tue Jan 20 04:34:41 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 5A6DB9DC for ; Tue, 20 Jan 2015 04:34:41 +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 1E8FDD85 for ; Tue, 20 Jan 2015 04:34:41 +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 3F4D01FE023; Tue, 20 Jan 2015 05:34:39 +0100 (CET) Message-ID: <54BDDB11.3070800@selasky.org> Date: Tue, 20 Jan 2015 05:35:29 +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: Uffe Jakobsen , freebsd-usb@freebsd.org Subject: Re: Problem with libusb20_dev_get_port_path() References: <54BD9460.90607@uffe.org> In-Reply-To: <54BD9460.90607@uffe.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: Tue, 20 Jan 2015 04:34:41 -0000 On 01/20/15 00:33, Uffe Jakobsen wrote: > > > Hi, > > I seem to be having a problem with libusb20_dev_get_port_path() > > I iterate through all usb devices in the system. > libusb20_dev_get_port_path() returns 0 for all my usb devices. > > Any hints ? > > Seen on FreeBSD 10.1 (amd64) with latest patches > > /Uffe Hi, Did you do a: libusb20_dev_open() first? --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Jan 20 11:06:26 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 6B55866B for ; Tue, 20 Jan 2015 11:06:26 +0000 (UTC) Received: from mx0.starion.dk (mx0.starion.dk [93.162.70.34]) by mx1.freebsd.org (Postfix) with ESMTP id 23CC4CD8 for ; Tue, 20 Jan 2015 11:06:25 +0000 (UTC) X-tst: NONE (10.1.1.21) X-tst: NONE (10.1.1.21) Received: from mailstore.starion.info (unknown [10.1.1.21]) by mx0.starion.dk (Postfix) with SMTP id 33ABF2BD9B1; Tue, 20 Jan 2015 12:06:32 +0100 (CET) Received: (nullmailer pid 56208 invoked by uid 1004); Tue, 20 Jan 2015 11:06:32 -0000 Message-ID: <54BE36AC.9050904@uffe.org> Date: Tue, 20 Jan 2015 12:06:20 +0100 From: Uffe Jakobsen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Hans Petter Selasky , freebsd-usb@freebsd.org Subject: Re: Problem with libusb20_dev_get_port_path() References: <54BD9460.90607@uffe.org> <54BDDB11.3070800@selasky.org> In-Reply-To: <54BDDB11.3070800@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: Tue, 20 Jan 2015 11:06:26 -0000 On 2015-01-20 05:35, Hans Petter Selasky wrote: > On 01/20/15 00:33, Uffe Jakobsen wrote: >> >> I seem to be having a problem with libusb20_dev_get_port_path() >> >> I iterate through all usb devices in the system. >> libusb20_dev_get_port_path() returns 0 for all my usb devices. >> >> Any hints ? >> >> Seen on FreeBSD 10.1 (amd64) with latest patches > > Did you do a: > > libusb20_dev_open() > > first? > yes - without that I get an error (negative return code) Running as root does not change anything (I didn't expect that - but I had to try) Stripped sample code below produces the following output: # ./a.out BEGIN device descriptor: 'ugen0.1: at usbus0' get_port_path: 0 device descriptor: 'ugen2.1: at usbus2' get_port_path: 0 device descriptor: 'ugen1.1: at usbus1' get_port_path: 0 device descriptor: 'ugen4.1: at usbus4' get_port_path: 0 device descriptor: 'ugen3.1: at usbus3' get_port_path: 0 device descriptor: 'ugen3.2: at usbus3' get_port_path: 0 END // // Compile: cc tst.c -lusb // #include #include #include #include #include #include int main(int argc, char** argv) { int rc; struct libusb20_backend* pbe; struct libusb20_device* pdev_curr; struct libusb20_device* pdev_last; uint8_t usb_ports[UINT8_MAX]; char sbuf[FILENAME_MAX]; char *p_str; printf("BEGIN\n"); pbe = libusb20_be_alloc_default(); pdev_curr = pdev_last = NULL; do { pdev_curr = libusb20_be_device_foreach(pbe, pdev_last); if (pdev_curr == NULL) { break; } libusb20_dev_open(pdev_curr, 0); p_str = (char*)libusb20_dev_get_desc(pdev_curr); printf("device descriptor: '%s'\n", p_str); rc = libusb20_dev_get_port_path(pdev_curr, (uint8_t*)&usb_ports, UINT8_MAX); printf("get_port_path: %d\n", rc); printf("\n"); libusb20_dev_close(pdev_curr); pdev_last = pdev_curr; } while (pdev_curr != NULL); libusb20_be_free(pbe); printf("END\n"); return 0; } // // EOF // /Uffe From owner-freebsd-usb@FreeBSD.ORG Tue Jan 20 11:44:53 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 5C04E92 for ; Tue, 20 Jan 2015 11:44:53 +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 1B0D3121 for ; Tue, 20 Jan 2015 11:44:52 +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 29CDC1FE023; Tue, 20 Jan 2015 12:44:50 +0100 (CET) Message-ID: <54BE3FE4.2000206@selasky.org> Date: Tue, 20 Jan 2015 12:45:40 +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: Uffe Jakobsen , freebsd-usb@freebsd.org Subject: Re: Problem with libusb20_dev_get_port_path() References: <54BD9460.90607@uffe.org> <54BDDB11.3070800@selasky.org> <54BE36AC.9050904@uffe.org> In-Reply-To: <54BE36AC.9050904@uffe.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: Tue, 20 Jan 2015 11:44:53 -0000 Hi Uffe, It appears there is a minor bug in the kernel regarding this field. See below: https://svnweb.freebsd.org/changeset/base/277417 Should work now. Thank you! --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Jan 20 19:48:48 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 3915B7CC for ; Tue, 20 Jan 2015 19:48:48 +0000 (UTC) Received: from mx0.starion.dk (mx0.starion.dk [93.162.70.34]) by mx1.freebsd.org (Postfix) with ESMTP id E9B77FC for ; Tue, 20 Jan 2015 19:48:47 +0000 (UTC) X-tst: NONE (10.1.1.21) X-tst: NONE (10.1.1.21) Received: from mailstore.starion.info (unknown [10.1.1.21]) by mx0.starion.dk (Postfix) with SMTP id 40ED52BD9B1; Tue, 20 Jan 2015 20:48:54 +0100 (CET) Received: (nullmailer pid 61527 invoked by uid 1004); Tue, 20 Jan 2015 19:48:54 -0000 Message-ID: <54BEB110.4070105@uffe.org> Date: Tue, 20 Jan 2015 20:48:32 +0100 From: Uffe Jakobsen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Hans Petter Selasky , freebsd-usb@freebsd.org Subject: Re: Problem with libusb20_dev_get_port_path() References: <54BD9460.90607@uffe.org> <54BDDB11.3070800@selasky.org> <54BE36AC.9050904@uffe.org> <54BE3FE4.2000206@selasky.org> In-Reply-To: <54BE3FE4.2000206@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: Tue, 20 Jan 2015 19:48:48 -0000 Hello, On 2015-01-20 12:45, Hans Petter Selasky wrote: > > It appears there is a minor bug in the kernel regarding this field. See > below: > > https://svnweb.freebsd.org/changeset/base/277417 > > Should work now. > Thanks for the quick response and fix How far back does the problem reach ? Kind regards Uffe Jakobsen From owner-freebsd-usb@FreeBSD.ORG Tue Jan 20 21:43:44 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 A56D7F4F for ; Tue, 20 Jan 2015 21:43:44 +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 66DABFC7 for ; Tue, 20 Jan 2015 21:43:44 +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 4A0561FE023; Tue, 20 Jan 2015 22:43:42 +0100 (CET) Message-ID: <54BECC3F.5050402@selasky.org> Date: Tue, 20 Jan 2015 22:44:31 +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: Uffe Jakobsen , freebsd-usb@freebsd.org Subject: Re: Problem with libusb20_dev_get_port_path() References: <54BD9460.90607@uffe.org> <54BDDB11.3070800@selasky.org> <54BE36AC.9050904@uffe.org> <54BE3FE4.2000206@selasky.org> <54BEB110.4070105@uffe.org> In-Reply-To: <54BEB110.4070105@uffe.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: Tue, 20 Jan 2015 21:43:44 -0000 On 01/20/15 20:48, Uffe Jakobsen wrote: > > > Hello, > > On 2015-01-20 12:45, Hans Petter Selasky wrote: >> >> It appears there is a minor bug in the kernel regarding this field. See >> below: >> >> https://svnweb.freebsd.org/changeset/base/277417 >> >> Should work now. >> > > Thanks for the quick response and fix > > How far back does the problem reach ? > > Kind regards Uffe Jakobsen > Hi, I think the IOCTL never worked except returning no path (0) like you observed. --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Jan 21 16:55:24 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 690F71F2 for ; Wed, 21 Jan 2015 16:55:24 +0000 (UTC) Received: from mail.ignoranthack.me (ignoranthack.me [199.102.79.106]) (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 46600D05 for ; Wed, 21 Jan 2015 16:55:24 +0000 (UTC) Received: from [192.168.200.212] (unknown [50.136.155.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sbruno@ignoranthack.me) by mail.ignoranthack.me (Postfix) with ESMTPSA id 93766192A3B for ; Wed, 21 Jan 2015 16:55:22 +0000 (UTC) Message-ID: <54BFD9F9.3080702@ignoranthack.me> Date: Wed, 21 Jan 2015 08:55:21 -0800 From: Sean Bruno Reply-To: sbruno@freebsd.org User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: freebsd-usb@freebsd.org Subject: Re: USB 3 strange behavior, lenovo x240 References: <54B951AB.2000102@ignoranthack.me> <54B96B12.3070308@selasky.org> <54B97EA7.4070408@ignoranthack.me> In-Reply-To: <54B97EA7.4070408@ignoranthack.me> Content-Type: text/plain; charset=windows-1252 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, 21 Jan 2015 16:55:24 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 01/16/15 13:12, Sean Bruno wrote: > On 01/16/15 11:48, Hans Petter Selasky wrote: >> On 01/16/15 19:00, Sean Bruno wrote: >>> >>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 >>> >>> I'm seeing strange behavior when I enable USB 3 support on my >>> laptop. Running head @r276878: >>> >>> Disabling USB 3 makes things behave "better" in that my >>> wireless device will actually serve traffic and /dev/video0 >>> will really exist when I switch over. Using USB 3 makes things >>> behave erratically if at all. >>> >>> Devices don't appear after a reboot and I'm seeing issues >>> using my USB 2 devices. >>> > >> Hi, > >> Does setting: > >> hw.usb.xhci.xhci_port_route=-1 > >> In /boot/loader.conf > >> Help? > >> --HPS > > > > > It does seem to help somewhat. Devices are available: > > % usbconfig ugen0.1: at usbus0, cfg=0 > md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) ugen1.1: Intel> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) > ugen1.2: at usbus1, cfg=0 md=HOST > spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen1.3: <802.11n NIC Realtek> at > usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) ugen1.4: > at usbus1, cfg=0 md=HOST > spd=HIGH (480Mbps) pwr=ON (500mA) > > > sean _____________ Hrm ... yeah. devices like my USB network adapter and USB camera (integrated) are definitely not working. The camera doesn't work in USB2 nor USB3 mode. The USB wireless device only works reliably if I disable USB3. sean -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJUv9n0XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5krCkH/2Cihq1EhBv52UZgTQ8L297W HG/fyMVKPZ7vFkijUEwDWuSIAb4N0G0gB6SIYSL5fmlVRxzsSFRQD24qxYfsr0p6 Tdx2C0YHM22bjYqcnjGN9U0aN1BzauQbImt6jDQbtP3uBcxlRavX+next16q5aV5 2+rbBIMUJSDM/kgM/8aSaHg4WYWvOP/vbK7uyyLmukNsbjO8VauJ4raVPsi0pBcQ pltJRkHYRIuJ9mWYu1mfthrcLYALSXEjbRIujQj2aymIc+zjKhzSDCSI1ic2k8NS rxr0/IOklgz1cGiiZZv0MLEf0jBQmDpz7mmSIRIqMm70Sa+gqLP8qnfJwrggPEw= =+DXZ -----END PGP SIGNATURE----- From owner-freebsd-usb@FreeBSD.ORG Wed Jan 21 23:29:33 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 1B3A267C for ; Wed, 21 Jan 2015 23:29:33 +0000 (UTC) Received: from mx0.starion.dk (mx0.starion.dk [93.162.70.34]) by mx1.freebsd.org (Postfix) with ESMTP id C73F4ECE for ; Wed, 21 Jan 2015 23:29:32 +0000 (UTC) X-tst: NONE (10.1.1.21) X-tst: NONE (10.1.1.21) Received: from mailstore.starion.info (unknown [10.1.1.21]) by mx0.starion.dk (Postfix) with SMTP id BFE3F2BD833; Thu, 22 Jan 2015 00:29:33 +0100 (CET) Received: (nullmailer pid 83947 invoked by uid 1004); Wed, 21 Jan 2015 23:29:33 -0000 Message-ID: <54C0364F.9070904@uffe.org> Date: Thu, 22 Jan 2015 00:29:19 +0100 From: Uffe Jakobsen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Hans Petter Selasky , freebsd-usb@freebsd.org Subject: Re: Problem with libusb20_dev_get_port_path() References: <54BD9460.90607@uffe.org> <54BDDB11.3070800@selasky.org> <54BE36AC.9050904@uffe.org> <54BE3FE4.2000206@selasky.org> <54BEB110.4070105@uffe.org> <54BECC3F.5050402@selasky.org> In-Reply-To: <54BECC3F.5050402@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, 21 Jan 2015 23:29:33 -0000 On 2015-01-20 22:44, Hans Petter Selasky wrote: > On 01/20/15 20:48, Uffe Jakobsen wrote: >> >> On 2015-01-20 12:45, Hans Petter Selasky wrote: >>> >>> It appears there is a minor bug in the kernel regarding this field. See >>> below: >>> >>> https://svnweb.freebsd.org/changeset/base/277417 >>> >>> Should work now. >>> >> >> Thanks for the quick response and fix >> >> How far back does the problem reach ? >> >> > > > I think the IOCTL never worked except returning no path (0) like you > observed. > Ok, thanks Another observation around the cross-platform use of libusb20_dev_get_port_path() and libusb_get_port_numbers(): On FreeBSD it seems that one needs to perform the respective usb open calls for the device before the two calls above succeeds without an negative error code. Whereas the usb open calls does not seem to be needed with the linux impl of libusb. Different behaviour between libusb on FreeBSD and linux creates a compatibility problems where linux-maintained programs accessing libusb20_dev_get_port_path() and libusb_get_port_numbers() will fail on FreeBSD but works on linux. (I've just spent some hours with such program) :-) I've looked through the available documentation without finding anything substantial - and hence I do not know which one is "right". /Uffe From owner-freebsd-usb@FreeBSD.ORG Wed Jan 21 23:33:29 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 612F47C1 for ; Wed, 21 Jan 2015 23:33:29 +0000 (UTC) Received: from mx0.starion.dk (mx0.starion.dk [93.162.70.34]) by mx1.freebsd.org (Postfix) with ESMTP id 13E45F8F for ; Wed, 21 Jan 2015 23:33:28 +0000 (UTC) X-tst: NONE (10.1.1.21) X-tst: NONE (10.1.1.21) Received: from mailstore.starion.info (unknown [10.1.1.21]) by mx0.starion.dk (Postfix) with SMTP id 6437D2BD833; Thu, 22 Jan 2015 00:33:37 +0100 (CET) Received: (nullmailer pid 84232 invoked by uid 1004); Wed, 21 Jan 2015 23:33:37 -0000 Message-ID: <54C03740.4020704@uffe.org> Date: Thu, 22 Jan 2015 00:33:20 +0100 From: Uffe Jakobsen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Hans Petter Selasky , freebsd-usb@freebsd.org Subject: Re: Problem with libusb20_dev_get_port_path() References: <54BD9460.90607@uffe.org> <54BDDB11.3070800@selasky.org> <54BE36AC.9050904@uffe.org> <54BE3FE4.2000206@selasky.org> <54BEB110.4070105@uffe.org> <54BECC3F.5050402@selasky.org> <54C0364F.9070904@uffe.org> In-Reply-To: <54C0364F.9070904@uffe.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, 21 Jan 2015 23:33:29 -0000 On 2015-01-22 00:29, Uffe Jakobsen wrote: > > > On 2015-01-20 22:44, Hans Petter Selasky wrote: >> On 01/20/15 20:48, Uffe Jakobsen wrote: >>> >>> On 2015-01-20 12:45, Hans Petter Selasky wrote: >>>> >>>> It appears there is a minor bug in the kernel regarding this field. See >>>> below: >>>> >>>> https://svnweb.freebsd.org/changeset/base/277417 >>>> >>>> Should work now. >>>> >>> >>> Thanks for the quick response and fix >>> >>> How far back does the problem reach ? >>> >>> >> >> >> I think the IOCTL never worked except returning no path (0) like you >> observed. >> > > Ok, thanks > > Another observation around the cross-platform use of > libusb20_dev_get_port_path() and libusb_get_port_numbers(): > > On FreeBSD it seems that one needs to perform the respective usb open > calls for the device before the two calls above succeeds without an > negative error code. > > Whereas the usb open calls does not seem to be needed with the linux > impl of libusb. > > Different behaviour between libusb on FreeBSD and linux creates a > compatibility problems where linux-maintained programs accessing > libusb20_dev_get_port_path() and libusb_get_port_numbers() will fail on > FreeBSD but works on linux. (I've just spent some hours with such > program) :-) > > I've looked through the available documentation without finding anything > substantial - and hence I do not know which one is "right". > My previous post stated that libusb20_dev_get_port_path() is available on linux - it is not - libusb_get_port_numbers() is Sorry about that /Uffe From owner-freebsd-usb@FreeBSD.ORG Fri Jan 23 02:12:38 2015 Return-Path: Delivered-To: freebsd-usb@hub.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 97834E82 for ; Fri, 23 Jan 2015 02:12:38 +0000 (UTC) Received: from mx.arpin.com (mx.arpin.com [65.202.156.147]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "Cisco Appliance Demo Certificate", Issuer "Cisco Appliance Demo Certificate" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0F5918E9 for ; Fri, 23 Jan 2015 02:12:37 +0000 (UTC) Received: from localhost by mx.arpin.com; 22 Jan 2015 21:11:25 -0500 Message-Id: From: ironport@arpinintl.com Sender: ironport@arpinintl.com To: freebsd-usb@hub.freebsd.org Date: 22 Jan 2015 21:11:25 -0500 Subject: Spam Quarantine Notification MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 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, 23 Jan 2015 02:12:38 -0000 Spam Quarantine Notification The message(s) below have been blocked by your administrator as suspected spam. There are 1 new messages in your Email Quarantine since you received your last Spam Quarantine Notification. If the messages below are spam, you do not need to take any action. Messages will be automatically removed from the quarantine after 14 day(s). To see all quarantined messages view [1]your email quarantine. Quarantined Email From Subject Date [2]Release Mrs Leah Mitchell [3]Please confirm receipt of mail 22 Jan 2015 [4]View All Quarantined Messages(1) Note: This message has been sent by a notification only system. Please do not reply If the above links do not work, please copy and paste the following URL into a Web browser: https://mx.arpin.com:83/Search?h=86c32261c1e4d22cc84e3d48060f5a59&email =freebsd-usb%40hub.freebsd.org References 1. https://mx.arpin.com:83/Search?h=86c32261c1e4d22cc84e3d48060f5a59&email=freebsd-usb%40hub.freebsd.org 2. https://mx.arpin.com:83/Message?action=Release&mid=14651220&h=ed85878ba37c24510018fc1fc20bfac2&email=freebsd-usb%40hub.freebsd.org 3. https://mx.arpin.com:83/Message?action=Detail&mid=14651220&h=ed85878ba37c24510018fc1fc20bfac2&email=freebsd-usb%40hub.freebsd.org 4. https://mx.arpin.com:83/Search?h=86c32261c1e4d22cc84e3d48060f5a59&email=freebsd-usb%40hub.freebsd.org